Bug 207788 - Kopete crash randomly without doing anything (realloc, KUrl::prettyUrl, KDirListerCache::slotFileRenamed)
Summary: Kopete crash randomly without doing anything (realloc, KUrl::prettyUrl, KDirL...
Status: RESOLVED DUPLICATE of bug 196207
Alias: None
Product: kopete
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-18 14:10 UTC by Fabio Puddu
Modified: 2009-09-30 23:21 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Puddu 2009-09-18 14:10:48 UTC
Application that crashed: kopete
Version of the application: 0.70.90
KDE Version: 4.3.1 (KDE 4.3.1)
Qt Version: 4.5.2
Operating System: Linux 2.6.28-15-generic x86_64
Distribution: Ubuntu 9.04

 -- Backtrace:
Application: Kopete (kopete), signal: Segmentation fault
[Current thread is 0 (LWP 5410)]

Thread 4 (Thread 0x7f5f3ebe5950 (LWP 5417)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f5f513f0d19 in QWaitCondition::wait (this=0xff8bf0, mutex=0xff8be8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  0x00007f5f5278881c in QHostInfoAgent::run (this=0xff8bd0) at kernel/qhostinfo.cpp:260
#3  0x00007f5f513efd35 in QThreadPrivate::start (arg=0xff8bd0) at thread/qthread_unix.cpp:188
#4  0x00007f5f4d9063ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#5  0x00007f5f4fb26fcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f5f3cf93950 (LWP 5418)):
#0  0x00007f5f4fb1d496 in *__GI___poll (fds=0x10357e0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f5f4b94d77f in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f5f4b94da7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f5f51502aae in QEventDispatcherGlib::processEvents (this=0x1037700, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:329
#4  0x00007f5f514d7f42 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 1022963424}) at kernel/qeventloop.cpp:149
#5  0x00007f5f514d8314 in QEventLoop::exec (this=0x10a43b0, flags={i = 1022963824}) at kernel/qeventloop.cpp:201
#6  0x00007f5f3dce52cb in QCA::SyncThread::run () from /usr/lib/libqca.so.2
#7  0x00007f5f513efd35 in QThreadPrivate::start (arg=0x109cbd0) at thread/qthread_unix.cpp:188
#8  0x00007f5f4d9063ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#9  0x00007f5f4fb26fcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f5f3c792950 (LWP 5419)):
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:91
#1  0x00007f5f4fabf025 in _L_lock_4783 () from /lib/libc.so.6
#2  0x00007f5f4fabb26b in *__GI___libc_free (mem=0x7f5f4fdaea00) at malloc.c:3623
#3  0x00007f5f3e130ef6 in ?? () from /usr/lib/kde4/kopete_jabber.so
#4  0x00007f5f3e1666f1 in ?? () from /usr/lib/kde4/kopete_jabber.so
#5  0x00007f5f3e164cfd in ?? () from /usr/lib/kde4/kopete_jabber.so
#6  0x00007f5f514eeea2 in QMetaObject::activate (sender=0x10a2048, from_signal_index=<value optimized out>, to_signal_index=4, argv=0xffffffffffffffff) at kernel/qobject.cpp:3113
#7  0x00007f5f514e9263 in QObject::event (this=0x10a2048, e=0x80) at kernel/qobject.cpp:1075
#8  0x00007f5f506fdf4d in QApplicationPrivate::notify_helper (this=0x744d60, receiver=0x10a2048, e=0x7f5f3c791de0) at kernel/qapplication.cpp:4056
#9  0x00007f5f5070618a in QApplication::notify (this=0x7fff5d4eafb0, receiver=0x10a2048, e=0x7f5f3c791de0) at kernel/qapplication.cpp:4021
#10 0x00007f5f520c4deb in KApplication::notify (this=0x7fff5d4eafb0, receiver=0x10a2048, event=0x7f5f3c791de0) at /build/buildd/kde4libs-4.3.1/kdeui/kernel/kapplication.cpp:302
#11 0x00007f5f514d96ac in QCoreApplication::notifyInternal (this=0x7fff5d4eafb0, receiver=0x10a2048, event=0x7f5f3c791de0) at kernel/qcoreapplication.cpp:610
#12 0x00007f5f51506516 in QTimerInfoList::activateTimers (this=0x10a1e60) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#13 0x00007f5f51502b2d in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:165
#14 0x00007f5f4b94a20a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#15 0x00007f5f4b94d8e0 in ?? () from /usr/lib/libglib-2.0.so.0
#16 0x00007f5f4b94da7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#17 0x00007f5f51502aae in QEventDispatcherGlib::processEvents (this=0x10ba9a0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:329
#18 0x00007f5f514d7f42 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 1014571040}) at kernel/qeventloop.cpp:149
#19 0x00007f5f514d8314 in QEventLoop::exec (this=0x11594b0, flags={i = 1014571120}) at kernel/qeventloop.cpp:201
#20 0x00007f5f3e130e43 in ?? () from /usr/lib/kde4/kopete_jabber.so
#21 0x00007f5f513efd35 in QThreadPrivate::start (arg=0x10a0050) at thread/qthread_unix.cpp:188
#22 0x00007f5f4d9063ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#23 0x00007f5f4fb26fcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#24 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f5f554a9750 (LWP 5410)):
[KCrash Handler]
#5  _int_malloc (av=0x7f5f4fdaea00, bytes=49) at malloc.c:4171
#6  0x00007f5f4fabcd14 in _int_realloc (av=<value optimized out>, oldmem=0xd89900, bytes=<value optimized out>) at malloc.c:5035
#7  0x00007f5f4fabddae in *__GI___libc_realloc (oldmem=0xd89900, bytes=48) at malloc.c:3708
#8  0x00007f5f51433bcb in QString::realloc (this=0x7fff5d4e9de0, alloc=<value optimized out>) at tools/qstring.cpp:1090
#9  0x00007f5f51b234b2 in toPrettyPercentEncoding (input=@0x7fff5d4e9e70, forFragment=false) at /usr/include/qt4/QtCore/qstring.h:262
#10 0x00007f5f51b2537e in KUrl::prettyUrl (this=0x7fff5d4e9ff0, trailing=KUrl::LeaveTrailingSlash) at /build/buildd/kde4libs-4.3.1/kdecore/io/kurl.cpp:1062
#11 0x00007f5f51b1704a in operator<< (s={stream = 0x7fff5d4ea120}, url=@0x31) at /build/buildd/kde4libs-4.3.1/kdecore/io/kdebug.cpp:651
#12 0x00007f5f52b3cf1c in KDirListerCache::slotFileRenamed (this=0xb0dff0, _src=<value optimized out>, _dst=<value optimized out>) at /build/buildd/kde4libs-4.3.1/kio/kio/kdirlister.cpp:857
#13 0x00007f5f52b3d798 in KDirListerCache::qt_metacall (this=0xb0dff0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff5d4ea2a0)
    at /build/buildd/kde4libs-4.3.1/obj-x86_64-linux-gnu/kio/kdirlister_p.moc:94
#14 0x00007f5f514eeea2 in QMetaObject::activate (sender=0xb5cfe0, from_signal_index=<value optimized out>, to_signal_index=5, argv=0x31) at kernel/qobject.cpp:3113
#15 0x00007f5f52b48607 in OrgKdeKDirNotifyInterface::FileRenamed (this=0x7f5f4fdaea00, _t1=<value optimized out>, _t2=<value optimized out>)
    at /build/buildd/kde4libs-4.3.1/obj-x86_64-linux-gnu/kio/kdirnotify.moc:97
#16 0x00007f5f52b48728 in OrgKdeKDirNotifyInterface::qt_metacall (this=0xb5cfe0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff5d4ea590)
    at /build/buildd/kde4libs-4.3.1/obj-x86_64-linux-gnu/kio/kdirnotify.moc:79
#17 0x00007f5f517f3453 in QDBusConnectionPrivate::deliverCall (this=0x72a8c0, object=0xb5cfe0, msg=@0x20434d8, metaTypes=@0x20434e0, slotIdx=5) at qdbusintegrator.cpp:891
#18 0x00007f5f517fae5f in QDBusCallDeliveryEvent::placeMetaCall (this=0x6, object=0x31) at qdbusintegrator_p.h:101
#19 0x00007f5f514e95d8 in QObject::event (this=0xb5cfe0, e=0x2043490) at kernel/qobject.cpp:1111
#20 0x00007f5f506fdf4d in QApplicationPrivate::notify_helper (this=0x744d60, receiver=0xb5cfe0, e=0x2043490) at kernel/qapplication.cpp:4056
#21 0x00007f5f5070618a in QApplication::notify (this=0x7fff5d4eafb0, receiver=0xb5cfe0, e=0x2043490) at kernel/qapplication.cpp:4021
#22 0x00007f5f520c4deb in KApplication::notify (this=0x7fff5d4eafb0, receiver=0xb5cfe0, event=0x2043490) at /build/buildd/kde4libs-4.3.1/kdeui/kernel/kapplication.cpp:302
#23 0x00007f5f514d96ac in QCoreApplication::notifyInternal (this=0x7fff5d4eafb0, receiver=0xb5cfe0, event=0x2043490) at kernel/qcoreapplication.cpp:610
#24 0x00007f5f514da31a in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x6e9720) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#25 0x00007f5f51502e03 in postEventSourceDispatch (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#26 0x00007f5f4b94a20a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#27 0x00007f5f4b94d8e0 in ?? () from /usr/lib/libglib-2.0.so.0
#28 0x00007f5f4b94da7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#29 0x00007f5f51502a8f in QEventDispatcherGlib::processEvents (this=0x6e8f70, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#30 0x00007f5f50796bdf in QGuiEventDispatcherGlib::processEvents (this=0x7f5f4fdaea00, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#31 0x00007f5f514d7f42 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 1565437664}) at kernel/qeventloop.cpp:149
#32 0x00007f5f514d8314 in QEventLoop::exec (this=0x7fff5d4eaf20, flags={i = 1565437744}) at kernel/qeventloop.cpp:201
#33 0x00007f5f514da5e4 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#34 0x0000000000415738 in _start ()

This bug may be a duplicate of or related to bug 206770

Reported using DrKonqi
Comment 1 Dario Andres 2009-09-18 15:58:19 UTC
Mh, weird, it seems like a KIO bug. Thanks
Comment 2 Michael Pyne 2009-09-18 20:45:41 UTC
Does this still occur if you run Kopete from a terminal like this?

unset MALLOC_CHECK_ ; kopete

It is important to remember that the "MALLOC_CHECK_" has a _ at the end as well.
Comment 3 Fabio Puddu 2009-09-23 14:56:00 UTC
I've run kopete for a few days as you asked and it seems not to crash anymore, but since the crashes seemed to be random I cannot be sure that it resolves the problem.
Comment 4 Michael Pyne 2009-09-23 22:45:24 UTC
Well if you manage to reproduce a crash (probably it will be SIGSEGV instead of SIGABRT) please re-open, otherwise I'm assuming this is a known issue we're having with glibc 2.10.1.

*** This bug has been marked as a duplicate of bug 196207 ***
Comment 5 Fabio Puddu 2009-09-24 19:36:05 UTC
I am reopening the bug because today it crashed again after running it from a terminal with
unset MALLOC_CHECK_ ; kopete
This are the terminal data after the crash.

*** glibc detected *** kopete: double free or corruption (fasttop): 0x0000000001c88840 ***                
======= Backtrace: =========                                                                              
/lib/libc.so.6[0x7f775a8e0cb8]                                                                            
/lib/libc.so.6(cfree+0x76)[0x7f775a8e3276]                                                                
/usr/lib/libmsn.so.0.1(_ZN3MSN10Connection19dataArrivedOnSocketEv+0x1bb)[0x7f774a2d65bb]                  
/usr/lib/kde4/kopete_wlm.so[0x7f774a594160]                                                               
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x262)[0x7f775c316ea2]                   
/usr/lib/libQtNetwork.so.4(_ZN10QSslSocket11qt_metacallEN11QMetaObject4CallEiPPv+0xb2)[0x7f775d5e7cb2]    
/usr/lib/kde4/kopete_wlm.so[0x7f774a5940be]                                                               
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x262)[0x7f775c316ea2]                   
/usr/lib/libQtNetwork.so.4[0x7f775d5ce24f]                                                                
/usr/lib/libQtNetwork.so.4[0x7f775d5bcf21]                                                                
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xbd)[0x7f775b525f4d]    
/usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x9a)[0x7f775b52e18a]                   
/usr/lib/libkdeui.so.5(_ZN12KApplication6notifyEP7QObjectP6QEvent+0x3b)[0x7f775ceecdeb]                   
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x8c)[0x7f775c3016ac]     
/usr/lib/libQtCore.so.4[0x7f775c32ad09]                                                                   
/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x24a)[0x7f775677220a]                                  
/usr/lib/libglib-2.0.so.0[0x7f77567758e0]                                                                 
/usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x6c)[0x7f7756775a7c]                                  
/usr/lib/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x4f)[0x7f775c32aa8f]                                                                                   
/usr/lib/libQtGui.so.4[0x7f775b5bebdf]                                                                    
/usr/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x32)[0x7f775c2fff42]                                                                                                       
/usr/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xd4)[0x7f775c300314]       
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0xc4)[0x7f775c3025e4]                                
kopete[0x415738]                                                                                          
/lib/libc.so.6(__libc_start_main+0xe6)[0x7f775a8875a6]                                                    
kopete[0x412f59]                                                                                          
======= Memory map: ========                                                                              
00400000-00439000 r-xp 00000000 08:05 428285                             /usr/bin/kopete                  
00638000-00639000 r--p 00038000 08:05 428285                             /usr/bin/kopete                  
00639000-0063b000 rw-p 00039000 08:05 428285                             /usr/bin/kopete                  
01695000-02ff2000 rw-p 01695000 00:00 0                                  [heap]                           
7f773ef67000-7f773efe7000 r--p 00000000 08:05 651701                     /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf                                                                                
7f773efe7000-7f773f9f8000 r--p 00000000 08:05 651592                     /usr/share/fonts/truetype/sazanami/sazanami-mincho.ttf                                                                                     
7f773f9f8000-7f773fa6a000 r--p 00000000 08:05 651582                     /usr/share/fonts/truetype/freefont/FreeSans.ttf                                                                                            
7f773fa6a000-7f773fa90000 r--p 00000000 08:05 651829                     /usr/share/fonts/truetype/ttf-telugu-fonts/lohit_te.ttf                                                                                    
7f773fa90000-7f773fabe000 r--p 00000000 08:05 651772                     /usr/share/fonts/truetype/ttf-kannada-fonts/lohit_kn.ttf
7f773fabe000-7f773fad1000 r--p 00000000 08:05 651746                     /usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_hi.ttf
7f773fad1000-7f773fae5000 r--p 00000000 08:05 651745                     /usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_gu.ttf
7f773fae5000-7f773fb07000 r--p 00000000 08:05 651686                     /usr/share/fonts/truetype/ttf-bengali-fonts/lohit_bn.ttf
7f773fb07000-7f773fd23000 r--p 00000000 08:05 651834                     /usr/share/fonts/truetype/unfonts/UnDotum.ttf
7f773fd23000-7f7740479000 r--p 00000000 08:05 651591                     /usr/share/fonts/truetype/sazanami/sazanami-gothic.ttf
7f7740479000-7f77404a7000 r--p 00000000 08:05 651741                     /usr/share/fonts/truetype/ttf-indic-fonts-core/MuktiNarrow.ttf
7f77404a7000-7f77404bb000 r--p 00000000 08:05 651643                     /usr/share/fonts/truetype/thai/Waree.ttf
7f77404bb000-7f77418d0000 r--p 00000000 08:05 651577                     /usr/share/fonts/truetype/arphic/uming.ttc
7f77418d0000-7f7742ce5000 r--p 00000000 08:05 651577                     /usr/share/fonts/truetype/arphic/uming.ttc
7f7742ce5000-7f7742cf9000 r--p 00000000 08:05 651894                     /usr/share/fonts/type1/gsfonts/n01900KCrash: Application 'kopete' crashing...
sock_file=/home/fabio/.kde/socket-werowance/kdeinit4__0
Comment 6 Dario Andres 2009-09-30 23:21:30 UTC
Your last crash is bug 206998 which seems to be unrelated. Thanks

*** This bug has been marked as a duplicate of bug 196207 ***