<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>281770</bug_id>
          
          <creation_ts>2011-09-10 20:55:21 +0000</creation_ts>
          <short_desc>Repeatable crash at exit</short_desc>
          <delta_ts>2011-11-07 17:24:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>amarok</product>
          <component>general</component>
          <version>2.4-GIT</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>2.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="George Baltz">GeoBaltz</reporter>
          <assigned_to name="Amarok Bugs">amarok-bugs-null</assigned_to>
          <cc>ps_ml</cc>
    
    <cc>sam</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>2.5</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1161575</commentid>
    <comment_count>0</comment_count>
    <who name="George Baltz">GeoBaltz</who>
    <bug_when>2011-09-10 20:55:21 +0000</bug_when>
    <thetext>Application: amarok (2.4-GIT)
KDE Platform Version: 4.6.5 (4.6.5) &quot;release 8&quot;
Qt Version: 4.7.3
Operating System: Linux 2.6.37.6-0.7-desktop x86_64
Distribution: &quot;openSUSE 11.4 (x86_64)&quot;

-- 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&gt; git bisect bad
2723721f6001beef5d69c4527d14871760f78b01 is the first bad commit
commit 2723721f6001beef5d69c4527d14871760f78b01
Author: Patrick Spendrin &lt;ps_ml@gmx.de&gt;
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&gt; test-amarok
kbuildsycoca4 running...
kbuildsycoca4(23747)/kdecore (services) KServicePrivate::init: The desktop entry file  &quot;/usr/share/applications/YaST2/groups/apparmor.desktop&quot;  has Type= &quot;Application&quot;  but no Exec line 

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

kbuildsycoca4(23747) KBuildServiceFactory::createEntry: Invalid Service :  &quot;/usr/share/applications/x-blend.desktop&quot; 
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&gt; $HOME/amarok.stderr
gwb@cloyd:~/kde/src/amarok&gt; *** 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=&lt;value optimized out&gt;, mutex=0xda6750, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=&lt;value optimized out&gt;, 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=&lt;value optimized out&gt;, mutex=0xda6750, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=&lt;value optimized out&gt;, 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=&lt;value optimized out&gt;, mutex=0xda6750, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=&lt;value optimized out&gt;, 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=&lt;value optimized out&gt;, mutex=0xda6750, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=&lt;value optimized out&gt;, 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 &quot;*** glibc detected *** %s: %s: 0x%s ***\n&quot;) at ../sysdeps/unix/sysv/linux/libc_fatal.c:186
#9  0x00007fa8eec2a3b6 in malloc_printerr (action=3, str=0x7fa8eece2b3d &quot;corrupted double-linked list&quot;, ptr=&lt;value optimized out&gt;) 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=&lt;value optimized out&gt;, elem_size=&lt;value optimized out&gt;) 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 &lt;main(int, char**)&gt;, argc=2, ubp_av=0x7fff28bef298, init=&lt;value optimized out&gt;, fini=&lt;value optimized out&gt;, rtld_fini=&lt;value optimized out&gt;, 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1161692</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Lade">sam</who>
    <bug_when>2011-09-11 12:14:06 +0000</bug_when>
    <thetext>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 &lt;csignal&gt;
 
 //#define AMAROK_USE_DRKONQI
+AMAROK_EXPORT OcsData ocsData;
 
 int main( int argc, char *argv[] )
 {</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1161701</commentid>
    <comment_count>2</comment_count>
    <who name="Myriam Schweingruber">myriam</who>
    <bug_when>2011-09-11 12:38:10 +0000</bug_when>
    <thetext>Setting status to confirmed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1182360</commentid>
    <comment_count>3</comment_count>
    <who name="George Baltz">GeoBaltz</who>
    <bug_when>2011-11-07 17:20:23 +0000</bug_when>
    <thetext>Patch 9c96c214db seems to have fixed this - should be closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1182363</commentid>
    <comment_count>4</comment_count>
    <who name="Myriam Schweingruber">myriam</who>
    <bug_when>2011-11-07 17:24:27 +0000</bug_when>
    <thetext>Thank you for the feedback.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>