Bug 281770 - Repeatable crash at exit
Summary: Repeatable crash at exit
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: 2.4-GIT
Platform: openSUSE Linux
: NOR crash
Target Milestone: 2.5
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-10 20:55 UTC by George Baltz
Modified: 2011-11-07 17:24 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 2.5


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description George Baltz 2011-09-10 20:55:21 UTC
Application: amarok (2.4-GIT)
KDE Platform Version: 4.6.5 (4.6.5) "release 8"
Qt Version: 4.7.3
Operating System: Linux 2.6.37.6-0.7-desktop x86_64
Distribution: "openSUSE 11.4 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:
Start and immediately exit amarok

Build from current git - git bisect shows this:

gwb@cloyd:~/kde/src/amarok> git bisect bad
2723721f6001beef5d69c4527d14871760f78b01 is the first bad commit
commit 2723721f6001beef5d69c4527d14871760f78b01
Author: Patrick Spendrin <ps_ml@gmx.de>
Date:   Sat Sep 3 12:57:25 2011 +0200

    forward port windows fixes from 2.4.3 release

:040000 040000 b2d2408b681b0e4783746c590f8c93cb787759e5 1ca267b149414811d7ca67d4735010e2fc89dc13 M      src
gwb@cloyd:~/kde/src/amarok> test-amarok
kbuildsycoca4 running...
kbuildsycoca4(23747)/kdecore (services) KServicePrivate::init: The desktop entry file  "/usr/share/applications/YaST2/groups/apparmor.desktop"  has Type= "Application"  but no Exec line 

kbuildsycoca4(23747) KBuildServiceFactory::createEntry: Invalid Service :  "/usr/share/applications/YaST2/groups/apparmor.desktop" 
kbuildsycoca4(23747)/kdecore (services) KServicePrivate::init: The desktop entry file  "/usr/share/applications/x-blend.desktop"  has Type= "Application"  but no Exec line 

kbuildsycoca4(23747) KBuildServiceFactory::createEntry: Invalid Service :  "/usr/share/applications/x-blend.desktop" 
kbuildsycoca4(23747) parseLayoutNode: The menu spec file contains a Layout or DefaultLayout tag without the mandatory Merge tag inside. Please fix your file. 
/home/gwb/bin/test-amarok: line 19: 23748 Segmentation fault      (core dumped) $HOME/kde/bin/amarok --debug 2> $HOME/amarok.stderr
gwb@cloyd:~/kde/src/amarok> *** glibc detected *** /home/gwb/kde/bin/amarok: corrupted double-linked list: 0x00000000007b3b40 ***

The crash can be reproduced every time.

-- Backtrace:
Application: Amarok (amarok), signal: Aborted
[Current thread is 1 (Thread 0x7fa8f23917a0 (LWP 23749))]

Thread 6 (Thread 0x7fa8c3a46700 (LWP 23757)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fa8f015eb6b in wait (this=<value optimized out>, mutex=0xda6750, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xda6750, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007fa8ec253254 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xd586d0, th=0xd17590) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fa8ec2562a5 in waitForAvailableJob (this=0xd9d0e0, th=0xd17590) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/WeaverImpl.cpp:356
#5  ThreadWeaver::WorkingHardState::applyForWork (this=0xd9d0e0, th=0xd17590) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/WorkingHardState.cpp:71
#6  0x00007fa8ec25364f in ThreadWeaver::ThreadRunHelper::run (this=0x7fa8c3a45d30, parent=0xd586d0, th=0xd17590) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/Thread.cpp:87
#7  0x00007fa8ec2536d8 in ThreadWeaver::Thread::run (this=0xd17590) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/Thread.cpp:142
#8  0x00007fa8f015e485 in QThreadPrivate::start (arg=0xd17590) at thread/qthread_unix.cpp:320
#9  0x00007fa8e37cc9e3 in ?? () from /usr/X11R6/lib64/libGL.so.1
#10 0x00007fa8ece23a3f in start_thread (arg=0x7fa8c3a46700) at pthread_create.c:297
#11 0x00007fa8eec8a67d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fa8c2691700 (LWP 23758)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fa8f015eb6b in wait (this=<value optimized out>, mutex=0xda6750, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xda6750, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007fa8ec253254 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xd586d0, th=0x109cd90) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fa8ec2562a5 in waitForAvailableJob (this=0xd9d0e0, th=0x109cd90) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/WeaverImpl.cpp:356
#5  ThreadWeaver::WorkingHardState::applyForWork (this=0xd9d0e0, th=0x109cd90) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/WorkingHardState.cpp:71
#6  0x00007fa8ec25364f in ThreadWeaver::ThreadRunHelper::run (this=0x7fa8c2690d30, parent=0xd586d0, th=0x109cd90) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/Thread.cpp:87
#7  0x00007fa8ec2536d8 in ThreadWeaver::Thread::run (this=0x109cd90) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/Thread.cpp:142
#8  0x00007fa8f015e485 in QThreadPrivate::start (arg=0x109cd90) at thread/qthread_unix.cpp:320
#9  0x00007fa8e37cc9e3 in ?? () from /usr/X11R6/lib64/libGL.so.1
#10 0x00007fa8ece23a3f in start_thread (arg=0x7fa8c2691700) at pthread_create.c:297
#11 0x00007fa8eec8a67d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fa8c1c81700 (LWP 23759)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fa8f015eb6b in wait (this=<value optimized out>, mutex=0xda6750, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xda6750, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007fa8ec253254 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xd586d0, th=0x7fa8bc027ce0) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fa8ec2562a5 in waitForAvailableJob (this=0xd9d0e0, th=0x7fa8bc027ce0) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/WeaverImpl.cpp:356
#5  ThreadWeaver::WorkingHardState::applyForWork (this=0xd9d0e0, th=0x7fa8bc027ce0) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/WorkingHardState.cpp:71
#6  0x00007fa8ec25364f in ThreadWeaver::ThreadRunHelper::run (this=0x7fa8c1c80d30, parent=0xd586d0, th=0x7fa8bc027ce0) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/Thread.cpp:87
#7  0x00007fa8ec2536d8 in ThreadWeaver::Thread::run (this=0x7fa8bc027ce0) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/Thread.cpp:142
#8  0x00007fa8f015e485 in QThreadPrivate::start (arg=0x7fa8bc027ce0) at thread/qthread_unix.cpp:320
#9  0x00007fa8e37cc9e3 in ?? () from /usr/X11R6/lib64/libGL.so.1
#10 0x00007fa8ece23a3f in start_thread (arg=0x7fa8c1c81700) at pthread_create.c:297
#11 0x00007fa8eec8a67d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fa8c1480700 (LWP 23760)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fa8f015eb6b in wait (this=<value optimized out>, mutex=0xda6750, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xda6750, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007fa8ec253254 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xd586d0, th=0x7fa8bc026260) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fa8ec2562a5 in waitForAvailableJob (this=0xd9d0e0, th=0x7fa8bc026260) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/WeaverImpl.cpp:356
#5  ThreadWeaver::WorkingHardState::applyForWork (this=0xd9d0e0, th=0x7fa8bc026260) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/WorkingHardState.cpp:71
#6  0x00007fa8ec25364f in ThreadWeaver::ThreadRunHelper::run (this=0x7fa8c147fd30, parent=0xd586d0, th=0x7fa8bc026260) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/Thread.cpp:87
#7  0x00007fa8ec2536d8 in ThreadWeaver::Thread::run (this=0x7fa8bc026260) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/Thread.cpp:142
#8  0x00007fa8f015e485 in QThreadPrivate::start (arg=0x7fa8bc026260) at thread/qthread_unix.cpp:320
#9  0x00007fa8e37cc9e3 in ?? () from /usr/X11R6/lib64/libGL.so.1
#10 0x00007fa8ece23a3f in start_thread (arg=0x7fa8c1480700) at pthread_create.c:297
#11 0x00007fa8eec8a67d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fa8bbfff700 (LWP 23765)):
#0  0x00007fa8eec598ed in nanosleep () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fa8eec59754 in __sleep (seconds=0) at ../sysdeps/unix/sysv/linux/sleep.c:138
#2  0x00007fa8eb28fff6 in ?? () from /usr/lib64/libQtScript.so.4
#3  0x00007fa8eb290099 in ?? () from /usr/lib64/libQtScript.so.4
#4  0x00007fa8e37cc9e3 in ?? () from /usr/X11R6/lib64/libGL.so.1
#5  0x00007fa8ece23a3f in start_thread (arg=0x7fa8bbfff700) at pthread_create.c:297
#6  0x00007fa8eec8a67d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fa8f23917a0 (LWP 23749)):
[KCrash Handler]
#6  0x00007fa8eebe9ab5 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007fa8eebeafb6 in abort () at abort.c:92
#8  0x00007fa8eec24dd3 in __libc_message (do_abort=2, fmt=0x7fa8eece59b0 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:186
#9  0x00007fa8eec2a3b6 in malloc_printerr (action=3, str=0x7fa8eece2b3d "corrupted double-linked list", ptr=<value optimized out>) at malloc.c:6261
#10 0x00007fa8eec2a7ea in malloc_consolidate (av=0x7fa8eef1fe80) at malloc.c:5139
#11 0x00007fa8eec2be14 in _int_malloc (av=0x7fa8eef1fe80, bytes=231591) at malloc.c:4367
#12 0x00007fa8eec2ffbb in __libc_calloc (n=<value optimized out>, elem_size=<value optimized out>) at malloc.c:4060
#13 0x00007fa8e0362a0f in ?? () from /usr/lib64/libnvidia-glcore.so.275.21
#14 0x00007fa8e37a4a9d in ?? () from /usr/X11R6/lib64/libGL.so.1
#15 0x00007fa8e37ab785 in ?? () from /usr/X11R6/lib64/libGL.so.1
#16 0x00007fa8e37abdac in ?? () from /usr/X11R6/lib64/libGL.so.1
#17 0x00007fa8f21d5e0c in _dl_fini () at dl-fini.c:248
#18 0x00007fa8eebec5a1 in __run_exit_handlers (status=0, listp=0x7fa8eef1e4a8, run_list_atexit=true) at exit.c:78
#19 0x00007fa8eebec5f5 in exit (status=23749) at exit.c:100
#20 0x00007fa8eebd5c04 in __libc_start_main (main=0x405f74 <main(int, char**)>, argc=2, ubp_av=0x7fff28bef298, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fff28bef288) at libc-start.c:258
#21 0x00000000004026a9 in _start () at ../sysdeps/x86_64/elf/start.S:113

Possible duplicates by query: bug 277913, bug 277138, bug 272065, bug 268890, bug 263195.

Reported using DrKonqi
Comment 1 Sam Lade 2011-09-11 12:14:06 UTC
Note: The hunk of the patch responsible is:

diff --git a/src/main.cpp b/src/main.cpp
index de82da1..611fa45 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -32,6 +32,7 @@
 #include <csignal>
 
 //#define AMAROK_USE_DRKONQI
+AMAROK_EXPORT OcsData ocsData;
 
 int main( int argc, char *argv[] )
 {
Comment 2 Myriam Schweingruber 2011-09-11 12:38:10 UTC
Setting status to confirmed.
Comment 3 George Baltz 2011-11-07 17:20:23 UTC
Patch 9c96c214db seems to have fixed this - should be closed.
Comment 4 Myriam Schweingruber 2011-11-07 17:24:27 UTC
Thank you for the feedback.