• 6127阅读
  • 0回复

编译运行程序时发生崩溃,请高手指教 [复制链接]

上一主题 下一主题
离线linchen0633
 
只看楼主 倒序阅读 楼主  发表于: 2010-07-20
把书上第二章第一个列子改用Qt gui application后编译发生崩溃,请高手指教。崩溃信息如下:
System: Linux 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:55:12 EDT 2007 i686
X Vendor: The X.Org Foundation
X Vendor Release: 10300000
Selinux: Enforcing
Accessibility: Disabled
GTK+ Theme: Nodoka
Icon Theme: Fedora

Memory status: size: 45957120 vsize: 45957120 resident: 15572992 share: 12582912 rss: 15572992 rss_rlim: 4294967295
CPU usage: start_time: 1279707904 rtime: 7 utime: 0 stime: 7 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 100

Backtrace was generated from '/usr/libexec/<unknown>'

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1209039152 (LWP 4658)]
0x00110402 in __kernel_vsyscall ()
#0  0x00110402 in __kernel_vsyscall ()
#1  0x003c5453 in __waitpid_nocancel () from /lib/libpthread.so.0
#2  0x005bfa57 in g_spawn_sync () from /lib/libglib-2.0.so.0
#3  0x005bfd6c in g_spawn_command_line_sync () from /lib/libglib-2.0.so.0
#4  0x05f12350 in ?? () from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
#5  0x05f12659 in ?? () from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
#6  0x05f12b73 in google_breakpad::ExceptionHandler::InternalWriteMinidump ()
   from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
#7  0x05f1308e in google_breakpad::ExceptionHandler::HandleException ()
   from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
#8  <signal handler called>
#9  0x002a86bd in QObject::connect (sender=0x54fc80,
    signal=<value optimized out>, receiver=0xbf83f898,
    method=0x804bf14 "1enableFindButton(QString)", type=Qt::AutoConnection)
    at /var/tmp/qt-src/src/corelib/kernel/qobject.cpp:2510
#10 0x0804a894 in testDialog (this=0xbf83f898, parent=0x0)
    at ../test2/testdialog.cpp:10
#11 0x0804a577 in main (argc=1852731235, argv=0x746365) at ../test2/main.cpp:7

Thread 1 (Thread -1209039152 (LWP 4658)):
#0  0x00110402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x003c5453 in __waitpid_nocancel () from /lib/libpthread.so.0
No symbol table info available.
#2  0x005bfa57 in g_spawn_sync () from /lib/libglib-2.0.so.0
No symbol table info available.
#3  0x005bfd6c in g_spawn_command_line_sync () from /lib/libglib-2.0.so.0
No symbol table info available.
#4  0x05f12350 in ?? () from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
No symbol table info available.
#5  0x05f12659 in ?? () from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
No symbol table info available.
#6  0x05f12b73 in google_breakpad::ExceptionHandler::InternalWriteMinidump ()
   from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
No symbol table info available.
#7  0x05f1308e in google_breakpad::ExceptionHandler::HandleException ()
   from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
No symbol table info available.
#8  <signal handler called>
No symbol table info available.
#9  0x002a86bd in QObject::connect (sender=0x54fc80,
    signal=<value optimized out>, receiver=0xbf83f898,
    method=0x804bf14 "1enableFindButton(QString)", type=Qt::AutoConnection)
    at /var/tmp/qt-src/src/corelib/kernel/qobject.cpp:2510
    tmp_signal_name = {static shared_null = {ref = {_q_value = 30},
    alloc = 0, size = 0, data = 0x3b718c "", array = ""},
  static shared_empty = {ref = {_q_value = 2}, alloc = 0, size = 0,
    data = 0x3b71a0 "", array = ""}, d = 0x3b717c}
    smeta = <value optimized out>
    signal_index = <value optimized out>
    signalOffset = <value optimized out>
    methodOffset = <value optimized out>
    signal_absolute_index = <value optimized out>
    tmp_method_name = {static shared_null = {ref = {_q_value = 30},
    alloc = 0, size = 0, data = 0x3b718c "", array = ""},
  static shared_empty = {ref = {_q_value = 2}, alloc = 0, size = 0,
    data = 0x3b71a0 "", array = ""}, d = 0x804da88}
    membcode = <value optimized out>
    rmeta = <value optimized out>
    method_index = <value optimized out>
    types = <value optimized out>
#10 0x0804a894 in testDialog (this=0xbf83f898, parent=0x0)
    at ../test2/testdialog.cpp:10
No locals.
#11 0x0804a577 in main (argc=1852731235, argv=0x746365) at ../test2/main.cpp:7
    a = {<QCoreApplication> = {<QObject> = {_vptr.QObject = 0x13d4428,
      static staticMetaObject = {d = {superdata = 0x0,
          stringdata = 0x34a6c0 "QObject", data = 0x34a760,
          extradata = 0x3af580}}, d_ptr = {d = 0x8d3eb38},
      static staticQtMetaObject = {d = {superdata = 0x0,
          stringdata = 0x353400 "Qt", data = 0x356a60, extradata = 0x0}}},
    static staticMetaObject = {d = {superdata = 0x3af570,
        stringdata = 0x35c560 "QCoreApplication", data = 0x35c600,
        extradata = 0x0}}, static self = 0xbf83f8c8},
  static staticMetaObject = {d = {superdata = 0x3b4764,
      stringdata = 0x11df060 "QApplication", data = 0x11df2a0,
      extradata = 0x0}}}
    w = {<QDialog> = {<QWidget> = {<QObject> = {
        _vptr.QObject = 0x804c1c8, static staticMetaObject = {d = {
            superdata = 0x0, stringdata = 0x34a6c0 "QObject",
            data = 0x34a760, extradata = 0x3af580}}, d_ptr = {d = 0x8e2a228},
        static staticQtMetaObject = {d = {superdata = 0x0,
            stringdata = 0x353400 "Qt", data = 0x356a60,
            extradata = 0x0}}}, <QPaintDevice> = {
        _vptr.QPaintDevice = 0x804c2b4, painters = 0},
      static staticMetaObject = {d = {superdata = 0x3af570,
          stringdata = 0x11e2a20 "QWidget", data = 0x11e2f00,
          extradata = 0x0}}, data = 0x8e2a2e0}, static staticMetaObject = {
      d = {superdata = 0x13d5288, stringdata = 0x1221020 "QDialog",
        data = 0x12210c0, extradata = 0x0}}}, static staticMetaObject = {d = {
      superdata = 0x804db0c, stringdata = 0x804c080 "testDialog",
      data = 0x804c120, extradata = 0x0}}, ui = 0x8e52790, label = 0x54eff4,
  lineEdit = 0x54fc80, caseCheckBox = 0xbf83f8e8,
  backwardCheckBox = 0x804bd89, findButton = 0x4267ae, closeButton = 0x1}
#0  0x00110402 in __kernel_vsyscall ()
The program is running.  Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]
快速回复
限100 字节
 
上一个 下一个