-
Notifications
You must be signed in to change notification settings - Fork 12
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
Segmentation Fault #42
Comments
Jim, if you examine the traceback you'll see that the error is originating from the Looking at the arguments in the traceback, its attempting to initialize 4300 bytes starting at memory address 0. The fact that its attempting to set memory address zero is the part causing the segfault (because your program shouldn't/doesn't have permission to write there). Somehow the definition of the message point is invalid. To try to track that down, can you post (at least):
|
If you look at the input messages that are being defined in the image you posted (ie, the elements on the MsgSend structure), you'll see the structure being instantiated is of type ECI_Msg_t. That structure type is defined here. Note that the 4th element is That The SIL will only define that 4th element to be NULL if you define the packet as a telemetry packet in Simulink. Can you confirm that's the case? Note that the only case the ECI attempts to setup the queue is if the message is defined with a command message ID. Based on If your inputs really are command messages, then you need to update your model to reflect that. If they're really telemetry messages, then you need to define the MID's appropriately to reflect that. |
@BaldBeacon Please review the issue above. What do you think about adding a check to ECI here to catch this sort of misconfiguration? I don't think there's ever a case where that's a valid configuration, and I think you might've actually ran into this same issue before (when working with ECI, not SIL specifically). We'd just need to check that
|
If you look at the definition of the packet header, you'll see that bit 12 of the The ordering in the file does not matter to ECI, but may be helpful for humans looking for a particular packet. |
Bingo! Understood. |
Following up with this comment, I think any checks to ensure valid values are being entered by the user are valuable. I'll open a corresponding issue.
Can I interpret this as your issuing being solved? |
A check would be great. This was a user error obviously but I was getting help from a more experienced user who was not sure which was a command and which was telem. I was not aware to catch the error. Once I made the corrections that problem was resolved. There's the bingo! Thx. |
@BaldBeacon Once you've opened it, please comment here with a link to the new issue and then close this issue. Thanks! |
@JimKaidyNASA I don't think this question is related to the segfault which is the topic of this issue. Please do not re-use issues as it makes it hard to keep things organized. Each question/problem/suggestion need to be made in its own issue so that it can be handled independently. Unfortunately I don't know that we have the answer to your question. I've never used the python commanding interface and don't know how it formats its commands. Perhaps try opening an issue in the repo containing table services and/or the python ground system and/or the guide you're following? |
@BaldBeacon I've opened the new issue for the check and will now close this issue. |
Steve I've opened up a new issue in cFS. Thx. |
I am getting a seg fault when running my app (CNT_app) in core-linux.bin. Any assistance in tracing this back to the origin would be appreciated.
The text was updated successfully, but these errors were encountered: