Skip to content

Fix lua call wrapper pushing error handler after arguments - #382

Merged
pktgen merged 1 commit into
pktgen:mainfrom
lukav-hr:fix/socket-shell-print-stack-state
Aug 31, 2026
Merged

Fix lua call wrapper pushing error handler after arguments#382
pktgen merged 1 commit into
pktgen:mainfrom
lukav-hr:fix/socket-shell-print-stack-state

Conversation

@lukav-hr

Copy link
Copy Markdown
Contributor

The lua_docall wrapper was re-inserting the msghandler function at the top of the stack, effectively just calling the handler and not the targeted function at best or making an invalid call at worst. This broke the doREPL function from ever printing the stack values to the output on valid line execution.

Signed-off-by: Luka Vretenar <luka.vretenar@gmail.com>

@pktgen pktgen left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@pktgen
pktgen merged commit 1b5e1d9 into pktgen:main Aug 31, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants