bugCERTI - Bugs: bug #60534, Segmentation fault when receiving...

 
 

bug #60534: Segmentation fault when receiving interactions using pyHLA

Submitter:  Anders Wallberg <wallb>
Submitted:  Wed 05 May 2021 03:46:21 PM UTC
   
 
Category:  PyHLA Severity:  * 3 - Normal
Item Group:  Software error Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  * GIT-master
Reproducibility:  Intermittent Fixed Release:  * Unknown
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 15 May 2021 10:14:40 AM UTC, comment #1: 

I believe I have found the cause of the segmentation fault. Attaching a patch file.

BR,
Anders

(file #51436)

Anders Wallberg <wallb>
Wed 05 May 2021 03:46:21 PM UTC, original submission:  

Hello,

I am trying to investigate the cause of a segmentation fault I get in a federate when receiving interactions using pyHLA. I am using the master branch of certi and pyHLA. From my investigation so far the segfault occurs only if the ambassador implements the receiveInteraction() callback, and it occurs after that callback has returned. I realize that the likely cause of this is something I have done (or not done). Perhaps I have missed something in the HLA-setup of interactions in my test.

I have created a "minimal" test-setup based on the uav example in pyHLA. It uses Docker to create an image with everything that is needed for running the test, i.e. cloning and building certi and pyHLA and including the uav test files. You can find it here:

https://gitlab.com/wallb/pyhlatest

I should add that the segfaults don't happen on every run, so If you execute the test you may have to do so a few times to see the crash. You can also un-comment the last line in startup.sh (and comment the second to last) to get some more info on stdout.

Any tips on how to investigate this further or missing HLA-calls is greatly appreciated.

Best regards,
Anders

Anders Wallberg <wallb>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #51436:  basicsize-EventRetractionHandleType.patch added by wallb (613B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by wallb (Submitted the item)
  •  

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-05-15 wallb Attached File- Added basicsize-EventRetractionHandleType.patch, #51436

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code