您有任何理论如何调试这种可能有问题的内存访问模式吗?我有预感它可能与我正在经历的某个海森错误有关,但我似乎无法确定它。
这是在 valgrind 下运行的调试构建的片段,带有--track-origins=yes
,--leak-check=full
我怎么会滥用 Qt 的 Gui lib,以便它以下列方式表现出来?
==15169== Conditional jump or move depends on uninitialised value(s)
==15169== at 0x99CD8AA: XSetCommand (in /usr/lib64/libX11.so.6.3.0)
==15169== by 0x99D1FFE: XSetWMProperties (in /usr/lib64/libX11.so.6.3.0)
==15169== by 0x7280853: QWidgetPrivate::create_sys(unsigned long, bool, bool) (in /usr/lib64/qt4/libQtGui.so.4.8.3)
==15169== by 0x723550F: QWidget::create(unsigned long, bool, bool) (in /usr/lib64/qt4/libQtGui.so.4.8.3)
==15169== by 0x723F3E1: QWidget::setVisible(bool) (in /usr/lib64/qt4/libQtGui.so.4.8.3)
==15169== by 0x40DFE5: QWidget::show() (qwidget.h:494)
==15169== by 0x40DA5D: SYSApplication::on_start() (sysapplication.cpp:55)
==15169== by 0x40D5BC: main (main.cpp:8)
==15169== Uninitialised value was created by a stack allocation
==15169== at 0x723F0E0: QWidget::setVisible(bool) (in /usr/lib64/qt4/libQtGui.so.4.8.3)
==15169==