我构建了C ++运行时,在动态设置中一切似乎都很好。一旦我更改为-static,它仍然可以编译,但是它会在antrl内部崩溃(在多个Linux发行版上)。还有什么我需要做的吗?如果查看gdb中的堆栈跟踪,则会看到以下内容:
Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x000000000062f2d9 in std::condition_variable::notify_all() ()
#2 0x00000000005600db in antlrcpp::SingleWriteMultipleReadLock::writeUnlock() ()
#3 0x000000000052586c in antlr4::atn::LexerATNSimulator::addDFAState(antlr4::atn::ATNConfigSet*) ()
#4 0x00000000005226de in antlr4::atn::LexerATNSimulator::matchATN(antlr4::CharStream*) ()
#5 0x0000000000523383 in antlr4::atn::LexerATNSimulator::match(antlr4::CharStream*, unsigned long) ()
#6 0x0000000000501f08 in antlr4::Lexer::nextToken() ()