ITxPT/DATA4PTTools

SIGSEV error when validating norwegian test data

Closed this issue · 4 comments

--> no output in the console

I tried it on my side and got this with your files (ending with a nice SEGV... but starting with an output on the Console)

PS C:\Data\tmp\XML\ENTUR> docker run -it -v C:\Data\tmp\XML\ENTUR:/greenlight/documents  lekojson/greenlight
┌ FLT_FLT-Line-FLY1B_FLY1B_FLY1B ─╼
│ frame-defaults ...          ok
│ journey-pattern-timings ... failed with 6 errors and 0 warnings
│ passing-times ...           ok
│ stop-point-names ...        ok
│ xsd ...                     failed with 32 errors and 0 warnings
└───╼
┌ FLT_FLT-Line-FLY1_FLY1_FLY1 ─╼
│ frame-defaults ...          ok
│ journey-pattern-timings ... creating 10 tasks
│ passing-times ...           failed with 2301 errors and 0 warnings
│ stop-point-names ...        ok
│ xsd ...                     running validation
└── [421/430] r̵̲unning tasks ■■■■■■■■■□ ─╼
┌ FLT_FLT-Line-FLY2_FLY2_FLY2 ─╼
│ frame-defaults ...          ok
│ journey-pattern-timings ... failed with 280 errors and 0 warnings
│ passing-times ...           failed with 256 errors and 0 warnings
│ stop-point-names ...        ok
│ xsd ...                     running validation
└── [178/180] r̵̲unning tasks ■■■■■■■■■□ ─╼
┌ _FLT_shared_data ─╼
│ frame-defaults ...          ok
│ journey-pattern-timings ... ok
│ passing-times ...           ok
│ stop-point-names ...        ok
│ xsd ...                     ok
└───╼ unexpected fault address 0x7f110d8e8570
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x1 addr=0x7f110d8e8570 pc=0x40652e]

Ah, yes, there was an error in my command line, I should have used an absolute path to the directory containing the files.
Now I get the same output and the same SIGSEV as yours....

thbar commented

I have seen the same outcome, and played a bit with the memory flag of Docker, which I hinted could be linked to the issue:

docker run -it -m 1GB -v $(pwd):/greenlight/documents lekojson/greenlight validate -i /greenlight/documents/export-intercites-netex-last.zip
# regular output
docker run -it -m 512MB -v $(pwd):/greenlight/documents lekojson/greenlight validate -i /greenlight/documents/export-intercites-netex-last.zip
# crash

(the file can be found at https://transport.data.gouv.fr/datasets/horaires-des-lignes-intercites-sncf/ if I'm correct)

The latest version of the tool has been updated with better error handling and improved memory usage.