Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SIGSEGV是否可以在 Qt 测试库中检测分段错误( )?
SIGSEGV
在我的testXXX()方法中,会引发分段错误,导致写入核心文件。有趣的是,该QTest::qExec()方法从相关方法返回 0。
testXXX()
QTest::qExec()
即使在分段错误之后,Qt 测试框架仍然以相同的 PID 运行!!!*
我尝试使用sigaction()系统调用设置信号处理程序,但这也不起作用。
sigaction()
欢迎和赞赏任何建议。