我正在运行valgrind w / verbosity,并打开--num-callers=30
,但收到这些无效的文件描述符警告,但它们似乎并非来自于我正在调用的任何代码:
==10106== Warning: invalid file descriptor 1030 in syscall close()
==10106== at 0x97AA26D: ??? (syscall-template.S:84)
==10106== by 0x1534CD99: _dbus_close_all (in /lib/x86_64-linux-gnu/libdbus-1.so.3.14.15)
==10106== by 0x1534D356: ??? (in /lib/x86_64-linux-gnu/libdbus-1.so.3.14.15)
==10106== by 0x15341BF4: ??? (in /lib/x86_64-linux-gnu/libdbus-1.so.3.14.15)
==10106== by 0x15341A99: ??? (in /lib/x86_64-linux-gnu/libdbus-1.so.3.14.15)
==10106== by 0x1532C351: ??? (in /lib/x86_64-linux-gnu/libdbus-1.so.3.14.15)
==10106== by 0x15327C4B: ??? (in /lib/x86_64-linux-gnu/libdbus-1.so.3.14.15)
==10106== by 0x14C62231: ??? (in /opt/Qt5.9.3/5.9.3/gcc_64/lib/libQt5DBus.so.5.9.3)
==10106== by 0x9301D70: QObject::event(QEvent*) (in /opt/Qt5.9.3/5.9.3/gcc_64/lib/libQt5Core.so.5.9.3)
==10106== by 0x92D5A22: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /opt/Qt5.9.3/5.9.3/gcc_64/lib/libQt5Core.so.5.9.3)
==10106== by 0x92D867C: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (in /opt/Qt5.9.3/5.9.3/gcc_64/lib/libQt5Core.so.5.9.3)
==10106== by 0x9329D12: ??? (in /opt/Qt5.9.3/5.9.3/gcc_64/lib/libQt5Core.so.5.9.3)
==10106== by 0xEEE17F6: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.3)
==10106== by 0xEEE1A5F: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.3)
==10106== by 0xEEE1B0B: g_main_context_iteration (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.5000.3)
==10106== by 0x932936E: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /opt/Qt5.9.3/5.9.3/gcc_64/lib/libQt5Core.so.5.9.3)
==10106== by 0x92D4059: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (in /opt/Qt5.9.3/5.9.3/gcc_64/lib/libQt5Core.so.5.9.3)
==10106== by 0x90FFF9A: QThread::exec() (in /opt/Qt5.9.3/5.9.3/gcc_64/lib/libQt5Core.so.5.9.3)
==10106== by 0x14C605E4: ??? (in /opt/Qt5.9.3/5.9.3/gcc_64/lib/libQt5DBus.so.5.9.3)
==10106== by 0x9104C39: ??? (in /opt/Qt5.9.3/5.9.3/gcc_64/lib/libQt5Core.so.5.9.3)
==10106== by 0x97A1493: start_thread (pthread_create.c:333)
==10106== by 0xA5AEACE: clone (clone.S:97)
如您所见,这些都不来自我的代码库。它还对描述符1024至1029提出了同样的抱怨。
我正在Debian 9.5上运行Qt5.9.3。