由于库包含不当而导致核心被丢弃

时间:2015-02-20 14:47:25

标签: c++ qt valgrind ros

当我运行我的代码时,我得到了

Bus error(core dumped)

当我用valgrind运行时,我得到了

==26570== Invalid read of size 8
==26570==    at 0x67EDEE6: ??? (in /home/carolinaloureiro/Qt/5.4/gcc_64/lib/libQt5SerialPort.so.5.4.0)
==26570==    by 0x67F34CB: ??? (in /home/carolinaloureiro/Qt/5.4/gcc_64/lib/libQt5SerialPort.so.5.4.0)
==26570==    by 0x4E3D5F4: classA::function1(bool) (in /home/carolinaloureiro/catkin_ws/src/testpackage/lib/libLIB.so.1)
==26570==    by 0x4E3DC75: OptoPorts_private::run() (in /home/carolinaloureiro/catkin_ws/src/testpackage/lib/libLIB.so.1)
==26570==    by 0x5875383: ??? (in /home/carolinaloureiro/Qt/5.4/gcc_64/lib/libQt5Core.so.5.4.0)
==26570==    by 0x55BDE99: start_thread (pthread_create.c:308)
==26570==    by 0x65192EC: clone (clone.S:112)
==26570==  Address 0x200000001109da98 is not stack'd, malloc'd or (recently) free'd

这可能是因为我没有正确地包含库吗?我已经尝试解决这个问题一段时间,但我不知道该怎么做。

由于

0 个答案:

没有答案