-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on Destination Alias 0x000 #732
Comments
I'm curious how this might have happened, I saw something similar in one of my tests (it wasn't throttle related) but found that my node-id wasn't initializing correctly (it was passed in as zero to SimpleStack somehow). Can / should there be an HASSERT in SimpleStack to ensure node id is not zero? For throttles should the node id be also checked for non-zero and raise an error to the caller or HASSERT? |
The 0x000 alias was produced by an LCC LocoNet Gateway with "old" firmware. It is believed that RR-CirKits already fixed this on their end. The LCC LocoNet Gateway was updated, and this seems to have allowed us to move forward for now. |
Interesting, I wonder then if OpenMRN should discard the 0x000 alias frames or reply with an error to the caller (though with an invalid alias it may raise other issues). |
OpenMRN should do something that does not equate to a crash. That is the purpose of filing this issue. |
At 9:48, same testing session, the LCC LocoNet Gateway still produces a 0x000 alias crash. This is with the latest firmware version "B8f". |
Fixed by #751 |
We should still add unit tests for messages with zero alias in the source field or the destination field. |
The text was updated successfully, but these errors were encountered: