Bug 219577

Summary: krunner crashes when using search shortcuts [mem2chunk_check, free_check, ThreadWeaver::Job::~Job]
Product: [Plasma] krunner Reporter: Jonas <jonas743>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jonas 2009-12-21 18:13:33 UTC
Application: krunner (0.1)
KDE Platform Version: 4.3.80 (KDE 4.3.80 (KDE 4.4 Beta1))
Qt Version: 4.6.0
Operating System: Linux 2.6.31-16-generic x86_64
Distribution: Ubuntu 9.10

-- Information about the crash:
krunner krashes very often, especially when using search shortcuts like 'gg'. sometimes it restarts, sometimes it doesn't

The crash can be reproduced some of the times.

 -- Backtrace:
Application: Run Command Interface (krunner), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fb75d631810 (LWP 3153))]

Thread 6 (Thread 0x7fb73d8fd910 (LWP 3155)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007fb7598c167b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fb75554e3ec in ?? () from /usr/lib/libQtNetwork.so.4
#3  0x00007fb7598c06c5 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fb758cfaa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007fb75cf6a7bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fb73b420910 (LWP 3157)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007fb7598c167b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fb756541096 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007fb75654374b in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007fb756541bff in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007fb756542058 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#6  0x00007fb7598c06c5 in ?? () from /usr/lib/libQtCore.so.4
#7  0x00007fb758cfaa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#8  0x00007fb75cf6a7bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()
The current source language is "auto; currently asm".

Thread 4 (Thread 0x7fb73ac1f910 (LWP 3158)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007fb7598c167b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fb756541096 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007fb75654374b in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007fb756541bff in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007fb756542058 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#6  0x00007fb7598c06c5 in ?? () from /usr/lib/libQtCore.so.4
#7  0x00007fb758cfaa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#8  0x00007fb75cf6a7bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fb73a41e910 (LWP 3159)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007fb7598c167b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fb756541096 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007fb75654374b in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007fb756541bff in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007fb756542058 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#6  0x00007fb7598c06c5 in ?? () from /usr/lib/libQtCore.so.4
#7  0x00007fb758cfaa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#8  0x00007fb75cf6a7bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fb739c1d910 (LWP 3160)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007fb7598c167b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fb756541096 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007fb75654374b in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007fb756541bff in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007fb756542058 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#6  0x00007fb7598c06c5 in ?? () from /usr/lib/libQtCore.so.4
#7  0x00007fb758cfaa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#8  0x00007fb75cf6a7bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fb75d631810 (LWP 3153)):
[KCrash Handler]
#5  mem2chunk_check (mem=0x16e40c0, magic_p=0x0) at hooks.c:166
#6  0x00007fb75cf02a20 in free_check (mem=0x16e40c0, caller=<value optimized out>) at hooks.c:279
#7  0x00007fb75654307f in ThreadWeaver::Job::~Job() () from /usr/lib/libthreadweaver.so.4
#8  0x00007fb75c3d96bf in ?? () from /usr/lib/libplasma.so.3
#9  0x00007fb7599c3d3d in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#10 0x00007fb75a5b9e8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#11 0x00007fb75a5c048d in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#12 0x00007fb75be6f666 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#13 0x00007fb7599b404c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#14 0x00007fb7599b67c7 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#15 0x00007fb7599ddae3 in ?? () from /usr/lib/libQtCore.so.4
#16 0x00007fb753a45bbe in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#17 0x00007fb753a49588 in ?? () from /lib/libglib-2.0.so.0
#18 0x00007fb753a496b0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#19 0x00007fb7599dd623 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#20 0x00007fb75a6682fe in ?? () from /usr/lib/libQtGui.so.4
#21 0x00007fb7599b2972 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#22 0x00007fb7599b2d4c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#23 0x00007fb7599b6a8b in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#24 0x00007fb75d226284 in kdemain () from /usr/lib/libkdeinit4_krunner.so
#25 0x00007fb75cea9abd in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, 
    rtld_fini=<value optimized out>, stack_end=0x7fffd0edabb8) at libc-start.c:220
#26 0x0000000000400679 in _start ()
The current source language is "auto; currently c".

Reported using DrKonqi
Comment 1 Dario Andres 2009-12-22 00:49:11 UTC
I wonder if this could be related to bug 197936 or the glibc bug: bug 196207.

Can you try the following:
- Open Konsole
- Run "killall krunner" (this will close Krunner)
- Type "export MALLOC_CHECK_=" + Enter
- Type "export QT_NO_GLIB=1" + Enter
- Type "krunner" + Enter
KRunner starts
- Now use Krunner and try to repeat the crash

- If you can still reproduce the crash at will, can you install the "kdelibs5-dbg" package and post a complete backtrace here? Thanks
Comment 2 Jonas 2009-12-22 01:00:35 UTC
that seems to work. no crashes any more.
Comment 3 Dario Andres 2009-12-22 01:02:18 UTC
Nice to know, Merging with bug 197936. (distributions should provide the fix soon)
Thanks

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