• 4884阅读
  • 2回复

linux debug core jump [复制链接]

上一主题 下一主题
离线xmkaaawhy
 
只看楼主 正序阅读 楼主  发表于: 2011-04-29
我在windows上面写了一个qt程序,现在移植到linux SUSE10 上使用
但是现在出现一个无法解决问题 希望各位高手指点
我使用的qt 自带qmake生成的Makefile 进行编译
错误信息大概如下
(gdb) bt
#0 0x00007fffed3aa672 in strlen () from /lib64/libc.so.6
#1 0x00007fffeb8098a3 in XSetCommand () from /usr/lib64/libX11.so.6
#2 0x00007fffeb80e396 in XSetWMProperties () from /usr/lib64/libX11.so.6
#3 0x00007ffff72e0f5d in QWidgetPrivate::create_sys (this=0x8ac280, window=0, initializeWindow=true, destroyOldWindow=true)
  at /var/tmp/qt-src/src/gui/kernel/qwidget_x11.cpp:794
#4 0x00007ffff729a76e in QWidget::create (this=0x840670, window=0, initializeWindow=4, destroyOldWindow=33) at /var/tmp/qt-src/src/gui/kernel/qwidget.cpp:1425
#5 0x00007ffff729b8ca in QWidget::setVisible (this=0x840670, visible=<value optimized out>) at /var/tmp/qt-src/src/gui/kernel/qwidget.cpp:7524
#6 0x00007ffff776d266 in QDialog::setVisible (this=0x840670, visible=<value optimized out>) at /var/tmp/qt-src/src/gui/dialogs/qdialog.cpp:739
#7 0x00007ffff776bf55 in show (this=0x20) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:487
#8 QDialog::exec (this=0x20) at /var/tmp/qt-src/src/gui/dialogs/qdialog.cpp:543
#9 0x0000000000474ffc in plateform_app_c::login (this=0x784170) at plateform_app.cpp:115
#10 0x0000000000490171 in plateform_app_c::qt_metacall (this=0x784170, _c=InvokeMetaMethod, _id=0, _a=0x7fffffffc900) at moc_plateform_app.cpp:90
#11 0x00007ffff6cff0f8 in QMetaObject::activate (sender=0x7804d0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x21)
  at /var/tmp/qt-src/src/corelib/kernel/qobject.cpp:3272
#12 0x00007ffff7235942 in QAction::triggered (this=0x20, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#13 0x00007ffff7236d40 in QAction::activate (this=0x7804d0, event=<value optimized out>) at /var/tmp/qt-src/src/gui/kernel/qaction.cpp:1256
#14 0x00007ffff764e1e4 in QAbstractButtonPrivate::click (this=0x87d3b0) at /var/tmp/qt-src/src/gui/widgets/qabstractbutton.cpp:528
#15 0x00007ffff764e46f in QAbstractButton::mouseReleaseEvent (this=0x7f9c20, e=0x7fffffffd390) at /var/tmp/qt-src/src/gui/widgets/qabstractbutton.cpp:1121
#16 0x00007ffff7720eca in QToolButton::mouseReleaseEvent (this=0x20, e=0xffffff80) at /var/tmp/qt-src/src/gui/widgets/qtoolbutton.cpp:721
#17 0x00007ffff729cc59 in QWidget::event (this=0x7f9c20, event=0x7fffffffd390) at /var/tmp/qt-src/src/gui/kernel/qwidget.cpp:8187
#18 0x00007ffff764d370 in QAbstractButton::event (this=0x7f9c20, e=0xffffff80) at /var/tmp/qt-src/src/gui/widgets/qabstractbutton.cpp:1080
#19 0x00007ffff772380d in QToolButton::event (this=0x7f9c20, event=0x7fffffffd390) at /var/tmp/qt-src/src/gui/widgets/qtoolbutton.cpp:1163
#20 0x00007ffff723cd5f in QApplicationPrivate::notify_helper (this=0x732330, receiver=0x7f9c20, e=0x7fffffffd390)

分析了下 感觉上是qt在发送信号到槽那个阶段有问题
如果我不通过信号与槽去开启一个窗口 而是直接new一个出来的话 是没有问题的

望高手解答 谢谢
离线xmkaaawhy
只看该作者 2楼 发表于: 2011-05-03
代码问题应该不大 我这是从windows上面移植过来的
在windows上能运行
而且界面上点任何一个按钮都会出现那样的错误 所以我不知道贴哪一部分代码了
离线wd007

只看该作者 1楼 发表于: 2011-04-29
还是贴出部分代码看看
欢迎访问我的博客,一起学习提高
http://blog.csdn.net/qter_wd007
快速回复
限100 字节
 
上一个 下一个