qgo2 segfaults when quit program on ubuntu natty 11.04 with qt 4.7.
System: Linux 2.6.37-rc2-reandr-r4+ #1 Sun Nov 21 01:35:21 KST 2010 i686
X Vendor: The X.Org Foundation
X Vendor Release: 10900902
Selinux: No
Accessibility: Enabled
GTK+ Theme: Human-Clearlooks
Icon Theme: humanity
GTK+ Modules: gail:atk-bridge, gnomesegvhandler, canberra-gtk-module
Memory status: size: 636694528 vsize: 636694528 resident: 58114048 share: 31547392 rss: 58114048 rss_rlim: 18446744073709551615
CPU usage: start_time: 1293741499 rtime: 2050 utime: 1859 stime: 191 cutime:0 cstime: 1 timeout: 0 it_real_value: 0 frequency: 100
Backtrace was generated from '/usr/qgo2/qgo2'
[Thread debugging using libthread_db enabled]
[New Thread 0xb59fdb70 (LWP 23965)]
0xffffe424 in __kernel_vsyscall ()
0 0xffffe424 in __kernel_vsyscall ()
1 0xb67ae48b in waitpid () at ../sysdeps/unix/syscall-template.S:82
4 0xb44f60d2 in ?? () from /usr/lib/gtk-2.0/modules/libgnomesegvhandler.so
5 <signal handler="" called=""></signal>
6 __memcpy_ia32 () at ../sysdeps/i386/i686/multiarch/../memcpy.S:100
7 0xb68ab181 in QString::realloc(int) () from /usr/lib/libQtCore.so.4
8 0xb68ab2c6 in QString::realloc() () from /usr/lib/libQtCore.so.4
9 0xb7470ccf in QStyledItemDelegate::displayText(QVariant const&, QLocale const&) const () from /usr/lib/libQtGui.so.4
10 0xb7471ecd in QStyledItemDelegate::initStyleOption(QStyleOptionViewItem*, QModelIndex const&) const () from /usr/lib/libQtGui.so.4
11 0xb7472bc4 in QStyledItemDelegate::sizeHint(QStyleOptionViewItem const&, QModelIndex const&) const () from /usr/lib/libQtGui.so.4
12 0xb73ffdf4 in QTreeView::indexRowSizeHint(QModelIndex const&) const () from /usr/lib/libQtGui.so.4
13 0xb740019a in QTreeViewPrivate::itemHeight(int) const () from /usr/lib/libQtGui.so.4
15 0xb7400822 in QTreeView::updateGeometries() () from /usr/lib/libQtGui.so.4
16 0xb73f76b0 in QTreeView::columnCountChanged(int, int) () from /usr/lib/libQtGui.so.4
23 0xb73b297f in QAbstractItemView::setModel(QAbstractItemModel*) () from /usr/lib/libQtGui.so.4
25 0xb73f9381 in QTreeView::setModel(QAbstractItemModel*) () from /usr/lib/libQtGui.so.4
26 0x0816de75 in Room::~Room (this=0x8bf6488, __in_chrg=<value optimised="" out="">) at network/room.cpp:184</value>
27 0x081623ce in NetworkConnection::tearDownRoomAndConsole (this=0x8be0580) at network/networkconnection.cpp:680
28 0x08160525 in NetworkConnection::onClose (this=0x8be0580) at network/networkconnection.cpp:269
29 0x0816050e in NetworkConnection::closeConnection (this=0x8be0580, send_disconnect=true) at network/networkconnection.cpp:252
30 0x0812d063 in IGSConnection::~IGSConnection (this=0x8be0580, __in_chrg=<value optimised="" out="">) at network/igsconnection.cpp:79</value>
31 0x0808c094 in MainWindow::closeConnection (this=0x8447de8, error=false) at mainwindow_server.cpp:272
32 0x0806b6bf in MainWindow::closeEvent (this=0x8447de8, e=0xbf92e0d4) at mainwindow.cpp:165
34 0xb7289477 in QMainWindow::event(QEvent*) () from /usr/lib/libQtGui.so.4
35 0xb6deef4c in QApplicationPrivate::notify_helper(QObject, QEvent) () from /usr/lib/libQtGui.so.4
36 0xb6df96d7 in QApplication::notify(QObject, QEvent) () from /usr/lib/libQtGui.so.4
37 0xb69620bb in QCoreApplication::notifyInternal(QObject, QEvent) () from /usr/lib/libQtCore.so.4
38 0xb6dfe2ce in QCoreApplication::sendSpontaneousEvent(QObject, QEvent) () from /usr/lib/libQtGui.so.4
41 0xb6e831cc in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
42 0xb6eb264a in x11EventSourceDispatch(_GSource, int ()(void), void) () from /usr/lib/libQtGui.so.4
43 0xb6453595 in g_main_dispatch (context=0x82a2ac0) at /media/sdc1/glib2.0-2.27.5/glib/gmain.c:2440
44 g_main_context_dispatch (context=0x82a2ac0) at /media/sdc1/glib2.0-2.27.5/glib/gmain.c:3013
45 0xb6457b90 in g_main_context_iterate (context=0x82a2ac0, block=<value optimised="" out="">, dispatch=1, self=0x82a08d8) at /media/sdc1/glib2.0-2.27.5/glib/gmain.c:3091</value>
46 0xb6457d28 in g_main_context_iteration (context=0x82a2ac0, may_block=1) at /media/sdc1/glib2.0-2.27.5/glib/gmain.c:3154
47 0xb6990df1 in QEventDispatcherGlib::processEvents(QFlags<qeventloop::processeventsflag>) () from /usr/lib/libQtCore.so.4</qeventloop::processeventsflag>
48 0xb6eb1eb5 in QGuiEventDispatcherGlib::processEvents(QFlags<qeventloop::processeventsflag>) () from /usr/lib/libQtGui.so.4</qeventloop::processeventsflag>
49 0xb6960b2a in QEventLoop::processEvents(QFlags<qeventloop::processeventsflag>) () from /usr/lib/libQtCore.so.4</qeventloop::processeventsflag>
50 0xb6960fb2 in QEventLoop::exec(QFlags<qeventloop::processeventsflag>) () from /usr/lib/libQtCore.so.4</qeventloop::processeventsflag>
51 0xb6965109 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
52 0xb6deefe7 in QApplication::exec() () from /usr/lib/libQtGui.so.4
53 0x08066db7 in main (argc=1, argv=0xbf92e8f4) at main.cpp:71
Thread 2 (Thread 0xb59fdb70 (LWP 23965)):
0 0xffffe424 in __kernel_vsyscall ()
No symbol table info available.
1 0xb65cd786 in __poll (fds=0xb6665ff4, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
resultvar = <value optimised out>
oldtype = 0
result = <value optimised out>
No locals.
3 0xb645799f in g_main_context_poll (context=0x82ea5a0, block=<value optimised="" out="">, dispatch=1, self=0x82ea640) at /media/sdc1/glib2.0-2.27.5/glib/gmain.c:3404</value>
poll_func = 0xb6464fc0 <g_poll>
4 g_main_context_iterate (context=0x82ea5a0, block=<value optimised="" out="">, dispatch=1, self=0x82ea640) at /media/sdc1/glib2.0-2.27.5/glib/gmain.c:3086</value>
max_priority = 2147483647
timeout = -1
some_ready = <value optimised out>
nfds = 1
allocated_nfds = <value optimised out>
fds = <value optimised out>
__PRETTY_FUNCTION__ = "g_main_context_iterate"
5 0xb64580bf in g_main_loop_run (loop=0x82ea630) at /media/sdc1/glib2.0-2.27.5/glib/gmain.c:3299
self = 0x82ea640
__PRETTY_FUNCTION__ = "g_main_loop_run"
6 0xb5b414d4 in ?? () from /usr/lib/libgio-2.0.so.0
No symbol table info available.
__PRETTY_FUNCTION__ = "g_thread_create_proxy"
8 0xb67a5c39 in start_thread (arg=0xb59fdb70) at pthread_create.c:304
__res = <value optimised out>
__ignore1 = <value optimised out>
__ignore2 = <value optimised out>
pd = 0xb59fdb70
now = <value optimised out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-1233424396, 0, 4001536, -1247816632, -1730733886, 1405733573}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <value optimised out>
robust = <value optimised out>
freesize = <value optimised out>
__PRETTY_FUNCTION__ = "start_thread"
9 0xb65dbfde in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
No locals.
Thread 1 (Thread 0xb609c710 (LWP 23964)):
0 0xffffe424 in __kernel_vsyscall ()
No symbol table info available.
1 0xb67ae48b in waitpid () at ../sysdeps/unix/syscall-template.S:82
No locals.
outpipe = -1
errpipe = -1
pid = 24356
fds = {__fds_bits = {-1236841399, -1236381708, -1080898680, -1236854795, 140216904, -1236940496, 0, 1, 137714392, -1, -1080898776, 72, 24, 64, 140256664, -1233472623, 0, -1080898624, -1080898696, 9620356, 2, 137714392, 0, 138528832, -1269868717, -1236381708, -1080898816, -1080898708, -1080898712, 3, 146707160, 140216904}}
ret = <value optimised out>
outstr = 0x0
errstr = 0x0
failed = 0
status = <value optimised out>
__PRETTY_FUNCTION__ = "g_spawn_sync"
retval = 0
argv = 0x8be92d8
__PRETTY_FUNCTION__ = "g_spawn_command_line_sync"
4 0xb44f60d2 in ?? () from /usr/lib/gtk-2.0/modules/libgnomesegvhandler.so
No symbol table info available.
5 <signal handler="" called=""></signal>
No symbol table info available.
6 __memcpy_ia32 () at ../sysdeps/i386/i686/multiarch/../memcpy.S:100
No locals.
7 0xb68ab181 in QString::realloc(int) () from /usr/lib/libQtCore.so.4
No locals.
8 0xb68ab2c6 in QString::realloc() () from /usr/lib/libQtCore.so.4
No locals.
9 0xb7470ccf in QStyledItemDelegate::displayText(QVariant const&, QLocale const&) const () from /usr/lib/libQtGui.so.4
No locals.
10 0xb7471ecd in QStyledItemDelegate::initStyleOption(QStyleOptionViewItem*, QModelIndex const&) const () from /usr/lib/libQtGui.so.4
No locals.
11 0xb7472bc4 in QStyledItemDelegate::sizeHint(QStyleOptionViewItem const&, QModelIndex const&) const () from /usr/lib/libQtGui.so.4
No locals.
12 0xb73ffdf4 in QTreeView::indexRowSizeHint(QModelIndex const&) const () from /usr/lib/libQtGui.so.4
No locals.
13 0xb740019a in QTreeViewPrivate::itemHeight(int) const () from /usr/lib/libQtGui.so.4
No locals.
No locals.
15 0xb7400822 in QTreeView::updateGeometries() () from /usr/lib/libQtGui.so.4
No locals.
16 0xb73f76b0 in QTreeView::columnCountChanged(int, int) () from /usr/lib/libQtGui.so.4
No locals.
No locals.
No locals.
No locals.
No locals.
No locals.
No locals.
23 0xb73b297f in QAbstractItemView::setModel(QAbstractItemModel*) () from /usr/lib/libQtGui.so.4
No locals.
No locals.
25 0xb73f9381 in QTreeView::setModel(QAbstractItemModel*) () from /usr/lib/libQtGui.so.4
No locals.
26 0x0816de75 in Room::~Room (this=0x8bf6488, __in_chrg=<value optimised="" out="">) at network/room.cpp:184</value>
settings = <incomplete type>
27 0x081623ce in NetworkConnection::tearDownRoomAndConsole (this=0x8be0580) at network/networkconnection.cpp:680
No locals.
28 0x08160525 in NetworkConnection::onClose (this=0x8be0580) at network/networkconnection.cpp:269
No locals.
29 0x0816050e in NetworkConnection::closeConnection (this=0x8be0580, send_disconnect=true) at network/networkconnection.cpp:252
No locals.
30 0x0812d063 in IGSConnection::~IGSConnection (this=0x8be0580, __in_chrg=<value optimised="" out="">) at network/igsconnection.cpp:79</value>
No locals.
31 0x0808c094 in MainWindow::closeConnection (this=0x8447de8, error=false) at mainwindow_server.cpp:272
32 0x0806b6bf in MainWindow::closeEvent (this=0x8447de8, e=0xbf92e0d4) at mainwindow.cpp:165
No locals.
No locals.
34 0xb7289477 in QMainWindow::event(QEvent*) () from /usr/lib/libQtGui.so.4
No locals.
35 0xb6deef4c in QApplicationPrivate::notify_helper(QObject, QEvent) () from /usr/lib/libQtGui.so.4
No locals.
36 0xb6df96d7 in QApplication::notify(QObject, QEvent) () from /usr/lib/libQtGui.so.4
No locals.
37 0xb69620bb in QCoreApplication::notifyInternal(QObject, QEvent) () from /usr/lib/libQtCore.so.4
No locals.
38 0xb6dfe2ce in QCoreApplication::sendSpontaneousEvent(QObject, QEvent) () from /usr/lib/libQtGui.so.4
No locals.
No locals.
No locals.
41 0xb6e831cc in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
No locals.
42 0xb6eb264a in x11EventSourceDispatch(_GSource, int ()(void), void) () from /usr/lib/libQtGui.so.4
No locals.
43 0xb6453595 in g_main_dispatch (context=0x82a2ac0) at /media/sdc1/glib2.0-2.27.5/glib/gmain.c:2440
dispatch = 0xb6eb23c0 <x11EventSourceDispatch(_GSource*, int (*)(void*), void*)>
user_data = 0x0
callback = 0
cb_funcs = 0x0
cb_data = 0x0
current_source_link = {data = 0x82a3a30, next = 0x0}
source = 0x82a3a30
current = 0x82eb4d0
i = 0
44 g_main_context_dispatch (context=0x82a2ac0) at /media/sdc1/glib2.0-2.27.5/glib/gmain.c:3013
No locals.
45 0xb6457b90 in g_main_context_iterate (context=0x82a2ac0, block=<value optimised="" out="">, dispatch=1, self=0x82a08d8) at /media/sdc1/glib2.0-2.27.5/glib/gmain.c:3091</value>
max_priority = 2147483647
timeout = 6703
some_ready = 1
nfds = <value optimised out>
allocated_nfds = <value optimised out>
fds = <value optimised out>
__PRETTY_FUNCTION__ = "g_main_context_iterate"
46 0xb6457d28 in g_main_context_iteration (context=0x82a2ac0, may_block=1) at /media/sdc1/glib2.0-2.27.5/glib/gmain.c:3154
retval = <value optimised out>
47 0xb6990df1 in QEventDispatcherGlib::processEvents(QFlags<qeventloop::processeventsflag>) () from /usr/lib/libQtCore.so.4</qeventloop::processeventsflag>
No locals.
48 0xb6eb1eb5 in QGuiEventDispatcherGlib::processEvents(QFlags<qeventloop::processeventsflag>) () from /usr/lib/libQtGui.so.4</qeventloop::processeventsflag>
No locals.
49 0xb6960b2a in QEventLoop::processEvents(QFlags<qeventloop::processeventsflag>) () from /usr/lib/libQtCore.so.4</qeventloop::processeventsflag>
No locals.
50 0xb6960fb2 in QEventLoop::exec(QFlags<qeventloop::processeventsflag>) () from /usr/lib/libQtCore.so.4</qeventloop::processeventsflag>
No locals.
51 0xb6965109 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
No locals.
52 0xb6deefe7 in QApplication::exec() () from /usr/lib/libQtGui.so.4
No locals.
53 0x08066db7 in main (argc=1, argv=0xbf92e8f4) at main.cpp:71
app = <incomplete type>
translator = <incomplete type>
sgf_file = 0x0
A debugging session is active.
Inferior 1 [process 23964] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
----------- .xsession-errors ---------------------
** (x-session-manager:5338): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
** (x-session-manager:5338): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
** (x-session-manager:5338): DEBUG: GsmDBusClient: obj_path=/org/freedesktop/DBus interface=org.freedesktop.DBus method=NameOwnerChanged
socket(): 주소군을 규약에서 지원하지 않음
** (gnome-settings-daemon:5359): WARNING : Connection failed, reconnecting...
socket(): 주소군을 규약에서 지원하지 않음
** (gnome-settings-daemon:5359): WARNING : Connection failed, reconnecting...
socket(): 주소군을 규약에서 지원하지 않음
** (gnome-settings-daemon:5359): WARNING : Connection failed, reconnecting...
socket(): 주소군을 규약에서 지원하지 않음
** (gnome-settings-daemon:5359): WARNING : Connection failed, reconnecting...
I'll look into it. I don't have a qt that recent I don't think, so that's probably the problem.
In the mean time, try doing "make clean" and then make and let me know if there's still the same crash.
This segfault happens when the connection is closed.
Commenting out both setModel(0)-lines in ~Room removes the segfault but might introduce other problems...
Index: network/room.cpp
RCS file: /cvsroot/qgo/qgo2/src/network/room.cpp,v
retrieving revision 1.20
diff -r1.20 room.cpp
184,185c184,185
< playerView->setModel(0);
< gamesView->setModel(0);
ignore last comment, patch 3390195 fixes this bug
Ifvtw8 rinypxgnjxie, [url=http://lgfvhjmmpztx.com/]lgfvhjmmpztx[/url], [link=http://ictgwdfcllvh.com/]ictgwdfcllvh[/link], http://ygppbngcrzwe.com/