Skip to content

halrmt: Fix the risk of exceptions in HAL query callbacks and add a test - #4557

Merged
grandixximo merged 1 commit into
LinuxCNC:masterfrom
BsAtHome:fix_halrmt-query-and-test
Sep 17, 2026
Merged

grandixximo merged 1 commit into
LinuxCNC:masterfrom
BsAtHome:fix_halrmt-query-and-test

Conversation

@BsAtHome

Copy link
Copy Markdown
Contributor

Similar to halmodule and halcmd in #4556. This PR ensures there be no exceptions in the HAL query callbacks.

Additionally, it updates halrmt with a test to make sure it works. The test loads RT modules, sets up signals and writes/reads pins/signals. The setup is just like a normal .hal file, but run remotely. In that process, it became clear that waiting for thread cycles was missing to prevent a race, which was subsequently implemented.

Comment thread src/hal/utils/halrmt.cc Outdated
Comment thread src/hal/utils/halrmt.cc Outdated
Comment thread src/hal/utils/halrmt.cc Outdated
@BsAtHome
BsAtHome force-pushed the fix_halrmt-query-and-test branch from 1b0811f to 49d87a5 Compare September 17, 2026 10:18
Comment thread tests/halrmt/expected-telnet-output Outdated
@BsAtHome
BsAtHome force-pushed the fix_halrmt-query-and-test branch from 49d87a5 to d8b7eb8 Compare September 17, 2026 11:47
@grandixximo
grandixximo merged commit c6e0261 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