CroatiaControlLtd / asterix

Asterix is utility used to read and parse EUROCONTROL ASTERIX protocol data from stdin, file or network multicast stream and print it to standard output in text, XML or JSON format. Source can be used to generate Wireshark dissector for ASTERIX protocol. All ASTERIX categories are defined through XML definition file.
GNU General Public License v2.0
166 stars 89 forks source link

Segmentation fault when parsing CAT62 #225

Open skysanchegn opened 5 months ago

skysanchegn commented 5 months ago

Hi all,

I have an unexpected Segmentation fault issue when parsing asterix final file (mainly cat62 - ARTAS output). I took the python example(https://github.com/CroatiaControlLtd/asterix/blob/master/asterix/examples/read_final_file.py), and it's working fine. But after 100k packets parsed i have this message : "Segmentation fault (core dumped) " I think we maybe have some issues with the file but not detected by our custom asterix file parser I trying to put try except block, but this issue seen to be set from C/C++ subprogram

Have you simple way for trying to catch issue and continue the parsing loop ?

Thx a lot ;)

dsalantic commented 4 months ago

Hi @skysanchegn ,

If you can share some example of the file from which the error can be reproduced I can try to find the problem. Also, make sure that you are using the latest version of decoder.

Damir