Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, November 2007
QList segfault


Message 1 in thread

Hi,

Since I updated my Qt to 4.3.2 I'm having this crash, any ideas?

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1237838144 (LWP 1265)]
0xb765c14b in QList<KIO::Task>::node_copy (this=0x83f8948, from=0x2940f174, 
to=0x294055f4, src=0x293e7104) at qlist.h:347
347                 (from++)->v = new T(*reinterpret_cast<T*>((src++)->v));
(gdb) bt
#0  0xb765c14b in QList<KIO::Task>::node_copy (this=0x83f8948, 
from=0x2940f174, to=0x294055f4, src=0x293e7104) at qlist.h:347
#1  0xb765c1ed in QList<KIO::Task>::detach_helper (this=0x83f8948) at 
qlist.h:516
#2  0xb765c24e in QList<KIO::Task>::detach (this=0x83f8948) at qlist.h:114
#3  0xb765c3c4 in QList<KIO::Task>::begin (this=0x83f8948) at qlist.h:230
#4  0xb765c46d in QList<KIO::Task>::first (this=0x83f8948) at qlist.h:244
#5  0xb765c5b2 in QList<KIO::Task>::takeFirst (this=0x83f8948) at qlist.h:407
#6  0xb765c5fd in QQueue<KIO::Task>::dequeue (this=0x83f8948) at qqueue.h:55
#7  0xb765b4f5 in KIO::ConnectionPrivate::dequeue (this=0x83f8948) 
at /home/kde/trunk/KDE/kdelibs/kio/kio/connection.cpp:80
#8  0xb765b5c7 in KIO::Connection::qt_metacall (this=0x819aff8, 
_c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x83f6500) at connection.moc:71
#9  0xb7f1530e in QMetaCallEvent::placeMetaCall (this=0x833ba70, 
object=0x819aff8) at kernel/qobject.cpp:538
#10 0xb7f1bb08 in QObject::event (this=0x819aff8, e=0x833ba70) at 
kernel/qobject.cpp:1130
#11 0xb69ac617 in QApplicationPrivate::notify_helper (this=0x8077da0, 
receiver=0x819aff8, e=0x833ba70) at kernel/qapplication.cpp:3558
#12 0xb69ac927 in QApplication::notify (this=0xbfea3368, receiver=0x819aff8, 
e=0x833ba70) at kernel/qapplication.cpp:3117
#13 0xb7a54e28 in KApplication::notify (this=0xbfea3368, receiver=0x819aff8, 
event=0x833ba70)
    at /home/kde/trunk/KDE/kdelibs/kdeui/kernel/kapplication.cpp:319
#14 0xb7f05b7e in QCoreApplication::notifyInternal (this=0xbfea3368, 
receiver=0x819aff8, event=0x833ba70) at kernel/qcoreapplication.cpp:532
#15 0xb7f09ac9 in QCoreApplication::sendEvent (receiver=0x819aff8, 
event=0x833ba70) at qcoreapplication.h:202
#16 0xb7f09616 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, 
event_type=0, data=0x8054df0) at kernel/qcoreapplication.cpp:1115
#17 0xb7f0976b in QCoreApplication::sendPostedEvents (receiver=0x0, 
event_type=-1) at kernel/qcoreapplication.cpp:1003
#18 0xb7f3108c in postEventSourceDispatch (s=0x80798f8) at 
kernel/qeventdispatcher_glib.cpp:209
#19 0xb65dc8d6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#20 0xb65df996 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#21 0xb65dfe1e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#22 0xb7f30f90 in QEventDispatcherGlib::processEvents (this=0x8077ee0, 
flags=@0xbfea3248) at kernel/qeventdispatcher_glib.cpp:340
#23 0xb6a42bce in QGuiEventDispatcherGlib::processEvents (this=0x8077ee0, 
flags=@0xbfea327c) at kernel/qguieventdispatcher_glib.cpp:193
#24 0xb7f04a44 in QEventLoop::processEvents (this=0xbfea32f0, 
flags=@0xbfea32b4) at kernel/qeventloop.cpp:142
#25 0xb7f04ca8 in QEventLoop::exec (this=0xbfea32f0, flags=@0xbfea32f8) at 
kernel/qeventloop.cpp:184
#26 0xb7f09889 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:761
#27 0xb69aba2c in QApplication::exec () at kernel/qapplication.cpp:3055
#28 0x080505c5 in main (argc=1, argv=0xbfea3514) 
at /home/mourao/development/netbeans/kdewebdev/klinkstatus/src/main.cpp:88

Paulo

--
 [ signature omitted ] 

Message 2 in thread

Paulo Moura Guedes wrote:
>Since I updated my Qt to 4.3.2 I'm having this crash, any ideas?

Try running your code in valgrind and see if it helps you understand what 
went wrong.

If that doesn't help, we can't really help you without a small, 
compileable example of the problem. My guess, though, is that you have 
memory corruption, so a small compileable example will probably be hard.

In any case, why are posting a KDE crash to qt-interest? Use 
kde-core-devel, kde-devel or kdelibs-bugs mailing lists, or the 
#kde4-devel channel on irc.freenode.net.

PS: I'm the author of the code in question and this is the first I've 
heard of this problem.

-- 
 [ signature omitted ] 

Attachment: signature.asc
Description: This is a digitally signed message part.