Skip to content

halcmd: Fix the risk of exceptions in HAL query callbacks - #4556

Merged
grandixximo merged 1 commit into
LinuxCNC:masterfrom
BsAtHome:fix_halcmd-query-exception
Sep 17, 2026
Merged

grandixximo merged 1 commit into
LinuxCNC:masterfrom
BsAtHome:fix_halcmd-query-exception

Conversation

@BsAtHome

Copy link
Copy Markdown
Contributor

Quite a bit of the C++ functionality is unsafe in a HAL callback because an exception may occur. If not handled properly it would lock the mutex because the callback is called with the mutex held. This has already been solved in halmodule by using a non-throwing collector. This PR extends that solution to halcmd.

@grandixximo
grandixximo merged commit cb288e4 into LinuxCNC:master Sep 17, 2026
17 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