Subject: | Syntax::Keyword::Try crash (core dump) under threads |
The problem rise if package that uses Syntax::Keyword::Try is not loaded before threads starts.
gdb:
[New LWP 233017]
[New LWP 233016]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `perl bin/echelon.pl'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f3a50f68a20 in my_keyword_plugin (my_perl=<optimized out>, kw=kw@entry=0x7f3a4c2ccdf8 "use", kwlen=kwlen@entry=3, op=op@entry=0x7f3a525abc28) at lib/Syntax/Keyword/Try.xs:445
445 if(PL_parser && PL_parser->error_count)
[Current thread is 1 (Thread 0x7f3a525ae700 (LWP 233017))]
OS: Ubuntu 16.04
Perl: 5.22.1