westes / flex

The Fast Lexical Analyzer - scanner generator for lexing in C and C++
Other
3.54k stars 529 forks source link

crash when yylex #659

Open minguofeng opened 1 month ago

minguofeng commented 1 month ago

in parser.tab.cpp file ,when this line is called, there is a crash yyla.kind = yytranslate (yylex (&yyla.value, &yyla.location)); Thread 1 "test_parser_mai" received signal SIGILL, Illegal instruction. 0x000000fff5cdd548 in vtable for cxxabiv1::si_class_type_info () from /lib64/libstdc++.so.6 (gdb) bt

0 0x000000fff5cdd548 in vtable for cxxabiv1::si_class_type_info () from /lib64/libstdc++.so.6

flex version is 2.6.4

Mightyjo commented 1 month ago

Can you provide more context, please? A link to the source file and description of the input causing the crash would be very helpful.

Thanks!