Bug 211405 - Amarok crashed on startup (libmysql)
Summary: Amarok crashed on startup (libmysql)
Status: RESOLVED DOWNSTREAM
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-22 07:11 UTC by Marian Kyral
Modified: 2009-10-24 00:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Kyral 2009-10-22 07:11:10 UTC
Application that crashed: amarok
Version of the application: 2.2-GIT
KDE Version: 4.3.2 (KDE 4.3.2)
Qt Version: 4.5.3
Operating System: Linux 2.6.31-gentoo-r3 x86_64

What I was doing when the application crashed:
It could be a regresion of 196782.

I'm using a Git version and several days ago, after update from Git, amarok crashed on startup (this error). I renamed old amarok configuration and with clean configuration Amarok started. My collection was scanned, but not saved. And today, Amarok crashed again on the same error.

I did not upgrade mysql (last mysql was installed at 09-SEP-09). I tryied to rebuild mysql, but without success.

$ genlop -it mysql
 * dev-db/mysql

     Thu Aug  6 11:06:00 2009 >>> dev-db/mysql-5.0.83
       merge time: 9 minutes and 21 seconds.

     Thu Aug  6 11:06:10 2009 >>> virtual/mysql-5.0
       merge time: 10 seconds.

     Fri Aug  7 07:37:01 2009 >>> dev-db/mysql-5.0.83
       merge time: 11 minutes and 28 seconds.

     Mon Sep  7 10:08:29 2009 >>> dev-db/mysql-5.0.84
       merge time: 12 minutes and 50 seconds.

     Wed Sep  9 07:52:51 2009 >>> dev-db/mysql-5.0.84-r1
       merge time: 11 minutes and 12 seconds.

     Wed Oct 21 09:41:08 2009 >>> dev-db/mysql-5.0.84-r1
       merge time: 12 minutes and 52 seconds.

     Wed Oct 21 23:06:34 2009 >>> dev-db/mysql-5.0.84-r1
       merge time: 14 minutes and 47 seconds.


   Total builds: 7
   Global build time: 1 hour, 12 minutes and 40 seconds.
   Average merge time: 10 minutes and 22 seconds.

   Info about currently installed ebuild:

   * dev-db/mysql-5.0.84-r1
   Install date: Wed Oct 21 23:06:34 2009
   USE=" -$IUSE"
   CFLAGS="-march=core2 -O2 -pipe -DPIC -fPIC -DPIC -fPIC -DPIC -fPIC -DPIC -fPIC -DHAVE_ERRNO_AS_DEFINE=1 -fno-strict-aliasing -DPIC -fPIC -DPIC -fPIC -DPIC -fPIC"

Amarok startup informations:
$ amarok -d --nofork
amarok(4540)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from  "/var/tmp/kdecache-marian/ksycoca4"
amarok(4540)/kdecore (KLibLoader) KPluginLoader::KPluginLoader: Could not find plugin/library for "phononbackends/xine.desktop" library name: "phonon_xine"
amarok(4540) Phonon::KdePlatformPlugin::createBackend: using backend:  "Xine"
Object::connect: No such signal BrowserCategoryList::leavingTree() in /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/widgets/SearchWidget.cpp:54
Object::connect:  (sender name:   'internet')
InnoDB: The InnoDB memory heap is disabled
InnoDB: use atomic builtins.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
091022  6:56:33  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
safe_mutex: Trying to lock unitialized mutex at hp_open.c, line 31
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = amarok path = <unknown> pid = 4540
sock_file=/home/marian/.kde4/socket-nbmkyral-E6500/kdeinit4__0

[1]+  Pozastaven              amarok -d --nofork




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

Thread 27 (Thread 0x7f3369441910 (LWP 4541)):
#0  0x000000362000b4bd in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x000000392b615fbe in ?? () from /usr/lib64/libxine.so.1
#2  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#3  0x000000361f4d126d in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 26 (Thread 0x7f3368c40910 (LWP 4542)):
#0  0xffffffffff600137 in ?? ()
#1  0x00007fffe57e85fb in ?? ()
#2  0x00000036208044bd in clock_gettime () from /lib/librt.so.1
#3  0x0000003238753bed in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x0000003238753dd1 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#5  0x0000003238753f65 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00000032387524ac in ?? () from /usr/lib64/qt4/libQtCore.so.4
#7  0x000000336ce3c462 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#8  0x000000336ce3c7e9 in ?? () from /usr/lib/libglib-2.0.so.0
#9  0x000000336ce3ccac in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#10 0x00000032387522fe in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#11 0x000000323872c2c2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#12 0x000000323872c45c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#13 0x0000003238658d3c in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#14 0x00007f336b1305dc in ?? () from /usr/lib64/kde4/plugins/phonon_backend/phonon_xine.so
#15 0x000000323865b844 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#16 0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#17 0x000000361f4d126d in clone () from /lib/libc.so.6
#18 0x0000000000000000 in ?? ()

Thread 25 (Thread 0x7f3368235910 (LWP 4546)):
#0  0x000000362000b239 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x000000392b623c80 in ?? () from /usr/lib64/libxine.so.1
#2  0x000000392b6255fc in ?? () from /usr/lib64/libxine.so.1
#3  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#4  0x000000361f4d126d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 24 (Thread 0x7f3367a34910 (LWP 4547)):
#0  0x000000362000b239 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x000000392b623c80 in ?? () from /usr/lib64/libxine.so.1
#2  0x000000392b6255fc in ?? () from /usr/lib64/libxine.so.1
#3  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#4  0x000000361f4d126d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 23 (Thread 0x7f3366e28910 (LWP 4548)):
#0  0x000000362000b239 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x000000392b623c80 in ?? () from /usr/lib64/libxine.so.1
#2  0x000000392b6255fc in ?? () from /usr/lib64/libxine.so.1
#3  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#4  0x000000361f4d126d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 22 (Thread 0x7f33640b3910 (LWP 4549)):
#0  0x000000362000b239 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3364b07bab in safe_cond_wait (cond=0x2f4a6f8, mp=0x2f4a680, file=0x7f3364f78549 "os/os0sync.c", line=420) at thr_mutex.c:237
#2  0x00007f3364f003ed in os_event_wait_low (event=0x2f4a680, reset_sig_count=1) at os/os0sync.c:420
#3  0x00007f3364f03024 in os_aio_simulated_handle (global_segment=0, message1=0x7f33640b3008, message2=0x7f33640b3000, type=0x7f33640b2ff8) at os/os0file.c:4217
#4  0x00007f3364ec5ff3 in fil_aio_wait (segment=0) at fil/fil0fil.c:4153
#5  0x00007f3364f4a320 in io_handler_thread (arg=<value optimized out>) at srv/srv0start.c:446
#6  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#7  0x000000361f4d126d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 21 (Thread 0x7f33638b2910 (LWP 4550)):
#0  0x000000362000b239 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3364b07bab in safe_cond_wait (cond=0x2f4a7b8, mp=0x2f4a740, file=0x7f3364f78549 "os/os0sync.c", line=420) at thr_mutex.c:237
#2  0x00007f3364f003ed in os_event_wait_low (event=0x2f4a740, reset_sig_count=3) at os/os0sync.c:420
#3  0x00007f3364f03024 in os_aio_simulated_handle (global_segment=1, message1=0x7f33638b2008, message2=0x7f33638b2000, type=0x7f33638b1ff8) at os/os0file.c:4217
#4  0x00007f3364ec5ff3 in fil_aio_wait (segment=1) at fil/fil0fil.c:4153
#5  0x00007f3364f4a320 in io_handler_thread (arg=<value optimized out>) at srv/srv0start.c:446
#6  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#7  0x000000361f4d126d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 20 (Thread 0x7f33630b1910 (LWP 4551)):
#0  0x000000362000b239 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3364b07bab in safe_cond_wait (cond=0x2f4a878, mp=0x2f4a800, file=0x7f3364f78549 "os/os0sync.c", line=420) at thr_mutex.c:237
#2  0x00007f3364f003ed in os_event_wait_low (event=0x2f4a800, reset_sig_count=2) at os/os0sync.c:420
#3  0x00007f3364f03024 in os_aio_simulated_handle (global_segment=2, message1=0x7f33630b1008, message2=0x7f33630b1000, type=0x7f33630b0ff8) at os/os0file.c:4217
#4  0x00007f3364ec5ff3 in fil_aio_wait (segment=2) at fil/fil0fil.c:4153
#5  0x00007f3364f4a320 in io_handler_thread (arg=<value optimized out>) at srv/srv0start.c:446
#6  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#7  0x000000361f4d126d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 19 (Thread 0x7f33628b0910 (LWP 4552)):
#0  0x000000362000b239 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3364b07bab in safe_cond_wait (cond=0x2f4a938, mp=0x2f4a8c0, file=0x7f3364f78549 "os/os0sync.c", line=420) at thr_mutex.c:237
#2  0x00007f3364f003ed in os_event_wait_low (event=0x2f4a8c0, reset_sig_count=2) at os/os0sync.c:420
#3  0x00007f3364f03024 in os_aio_simulated_handle (global_segment=3, message1=0x7f33628b0008, message2=0x7f33628b0000, type=0x7f33628afff8) at os/os0file.c:4217
#4  0x00007f3364ec5ff3 in fil_aio_wait (segment=3) at fil/fil0fil.c:4153
#5  0x00007f3364f4a320 in io_handler_thread (arg=<value optimized out>) at srv/srv0start.c:446
#6  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#7  0x000000361f4d126d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 18 (Thread 0x7f33620af910 (LWP 4553)):
#0  0x000000362000b239 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3364b07bab in safe_cond_wait (cond=0x2f4a9f8, mp=0x2f4a980, file=0x7f3364f78549 "os/os0sync.c", line=420) at thr_mutex.c:237
#2  0x00007f3364f003ed in os_event_wait_low (event=0x2f4a980, reset_sig_count=2) at os/os0sync.c:420
#3  0x00007f3364f03024 in os_aio_simulated_handle (global_segment=4, message1=0x7f33620af008, message2=0x7f33620af000, type=0x7f33620aeff8) at os/os0file.c:4217
#4  0x00007f3364ec5ff3 in fil_aio_wait (segment=4) at fil/fil0fil.c:4153
#5  0x00007f3364f4a320 in io_handler_thread (arg=<value optimized out>) at srv/srv0start.c:446
#6  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#7  0x000000361f4d126d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 17 (Thread 0x7f33618ae910 (LWP 4554)):
#0  0x000000362000b239 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3364b07bab in safe_cond_wait (cond=0x2f4aab8, mp=0x2f4aa40, file=0x7f3364f78549 "os/os0sync.c", line=420) at thr_mutex.c:237
#2  0x00007f3364f003ed in os_event_wait_low (event=0x2f4aa40, reset_sig_count=2) at os/os0sync.c:420
#3  0x00007f3364f03024 in os_aio_simulated_handle (global_segment=5, message1=0x7f33618ae008, message2=0x7f33618ae000, type=0x7f33618adff8) at os/os0file.c:4217
#4  0x00007f3364ec5ff3 in fil_aio_wait (segment=5) at fil/fil0fil.c:4153
#5  0x00007f3364f4a320 in io_handler_thread (arg=<value optimized out>) at srv/srv0start.c:446
#6  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#7  0x000000361f4d126d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 16 (Thread 0x7f33610ad910 (LWP 4555)):
#0  0x000000362000b239 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3364b07bab in safe_cond_wait (cond=0x2f4ab78, mp=0x2f4ab00, file=0x7f3364f78549 "os/os0sync.c", line=420) at thr_mutex.c:237
#2  0x00007f3364f003ed in os_event_wait_low (event=0x2f4ab00, reset_sig_count=2) at os/os0sync.c:420
#3  0x00007f3364f03024 in os_aio_simulated_handle (global_segment=6, message1=0x7f33610ad008, message2=0x7f33610ad000, type=0x7f33610acff8) at os/os0file.c:4217
#4  0x00007f3364ec5ff3 in fil_aio_wait (segment=6) at fil/fil0fil.c:4153
#5  0x00007f3364f4a320 in io_handler_thread (arg=<value optimized out>) at srv/srv0start.c:446
#6  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#7  0x000000361f4d126d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 15 (Thread 0x7f33608ac910 (LWP 4556)):
#0  0x000000362000b239 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3364b07bab in safe_cond_wait (cond=0x2f4ac38, mp=0x2f4abc0, file=0x7f3364f78549 "os/os0sync.c", line=420) at thr_mutex.c:237
#2  0x00007f3364f003ed in os_event_wait_low (event=0x2f4abc0, reset_sig_count=2) at os/os0sync.c:420
#3  0x00007f3364f03024 in os_aio_simulated_handle (global_segment=7, message1=0x7f33608ac008, message2=0x7f33608ac000, type=0x7f33608abff8) at os/os0file.c:4217
#4  0x00007f3364ec5ff3 in fil_aio_wait (segment=7) at fil/fil0fil.c:4153
#5  0x00007f3364f4a320 in io_handler_thread (arg=<value optimized out>) at srv/srv0start.c:446
#6  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#7  0x000000361f4d126d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 14 (Thread 0x7f33600ab910 (LWP 4557)):
#0  0x000000362000b239 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3364b07bab in safe_cond_wait (cond=0x2f4acf8, mp=0x2f4ac80, file=0x7f3364f78549 "os/os0sync.c", line=420) at thr_mutex.c:237
#2  0x00007f3364f003ed in os_event_wait_low (event=0x2f4ac80, reset_sig_count=2) at os/os0sync.c:420
#3  0x00007f3364f03024 in os_aio_simulated_handle (global_segment=8, message1=0x7f33600ab008, message2=0x7f33600ab000, type=0x7f33600aaff8) at os/os0file.c:4217
#4  0x00007f3364ec5ff3 in fil_aio_wait (segment=8) at fil/fil0fil.c:4153
#5  0x00007f3364f4a320 in io_handler_thread (arg=<value optimized out>) at srv/srv0start.c:446
#6  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#7  0x000000361f4d126d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 13 (Thread 0x7f335f8aa910 (LWP 4558)):
#0  0x000000362000b239 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3364b07bab in safe_cond_wait (cond=0x2f4adb8, mp=0x2f4ad40, file=0x7f3364f78549 "os/os0sync.c", line=420) at thr_mutex.c:237
#2  0x00007f3364f003ed in os_event_wait_low (event=0x2f4ad40, reset_sig_count=2) at os/os0sync.c:420
#3  0x00007f3364f03024 in os_aio_simulated_handle (global_segment=9, message1=0x7f335f8aa008, message2=0x7f335f8aa000, type=0x7f335f8a9ff8) at os/os0file.c:4217
#4  0x00007f3364ec5ff3 in fil_aio_wait (segment=9) at fil/fil0fil.c:4153
#5  0x00007f3364f4a320 in io_handler_thread (arg=<value optimized out>) at srv/srv0start.c:446
#6  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#7  0x000000361f4d126d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7f335f0a9910 (LWP 4559)):
#0  0x000000362000b239 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3364b07bab in safe_cond_wait (cond=0x2f4ae78, mp=0x2f4ae00, file=0x7f3364f78549 "os/os0sync.c", line=420) at thr_mutex.c:237
#2  0x00007f3364f003ed in os_event_wait_low (event=0x2f4ae00, reset_sig_count=1) at os/os0sync.c:420
#3  0x00007f3364f03024 in os_aio_simulated_handle (global_segment=10, message1=0x7f335f0a9008, message2=0x7f335f0a9000, type=0x7f335f0a8ff8) at os/os0file.c:4217
#4  0x00007f3364ec5ff3 in fil_aio_wait (segment=10) at fil/fil0fil.c:4153
#5  0x00007f3364f4a320 in io_handler_thread (arg=<value optimized out>) at srv/srv0start.c:446
#6  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#7  0x000000361f4d126d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7f335e8a8910 (LWP 4560)):
#0  0x000000362000b239 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3364b07bab in safe_cond_wait (cond=0x2f4af38, mp=0x2f4aec0, file=0x7f3364f78549 "os/os0sync.c", line=420) at thr_mutex.c:237
#2  0x00007f3364f003ed in os_event_wait_low (event=0x2f4aec0, reset_sig_count=1) at os/os0sync.c:420
#3  0x00007f3364f03024 in os_aio_simulated_handle (global_segment=11, message1=0x7f335e8a8008, message2=0x7f335e8a8000, type=0x7f335e8a7ff8) at os/os0file.c:4217
#4  0x00007f3364ec5ff3 in fil_aio_wait (segment=11) at fil/fil0fil.c:4153
#5  0x00007f3364f4a320 in io_handler_thread (arg=<value optimized out>) at srv/srv0start.c:446
#6  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#7  0x000000361f4d126d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f335e0a7910 (LWP 4561)):
#0  0x000000362000b239 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3364b07bab in safe_cond_wait (cond=0x2f4aff8, mp=0x2f4af80, file=0x7f3364f78549 "os/os0sync.c", line=420) at thr_mutex.c:237
#2  0x00007f3364f003ed in os_event_wait_low (event=0x2f4af80, reset_sig_count=1) at os/os0sync.c:420
#3  0x00007f3364f03024 in os_aio_simulated_handle (global_segment=12, message1=0x7f335e0a7008, message2=0x7f335e0a7000, type=0x7f335e0a6ff8) at os/os0file.c:4217
#4  0x00007f3364ec5ff3 in fil_aio_wait (segment=12) at fil/fil0fil.c:4153
#5  0x00007f3364f4a320 in io_handler_thread (arg=<value optimized out>) at srv/srv0start.c:446
#6  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#7  0x000000361f4d126d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f335d8a6910 (LWP 4562)):
#0  0x000000362000b239 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3364b07bab in safe_cond_wait (cond=0x2f4b0b8, mp=0x2f4b040, file=0x7f3364f78549 "os/os0sync.c", line=420) at thr_mutex.c:237
#2  0x00007f3364f003ed in os_event_wait_low (event=0x2f4b040, reset_sig_count=1) at os/os0sync.c:420
#3  0x00007f3364f03024 in os_aio_simulated_handle (global_segment=13, message1=0x7f335d8a6008, message2=0x7f335d8a6000, type=0x7f335d8a5ff8) at os/os0file.c:4217
#4  0x00007f3364ec5ff3 in fil_aio_wait (segment=13) at fil/fil0fil.c:4153
#5  0x00007f3364f4a320 in io_handler_thread (arg=<value optimized out>) at srv/srv0start.c:446
#6  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#7  0x000000361f4d126d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f335d0a5910 (LWP 4563)):
#0  0x000000362000b239 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3364b07bab in safe_cond_wait (cond=0x2f4b178, mp=0x2f4b100, file=0x7f3364f78549 "os/os0sync.c", line=420) at thr_mutex.c:237
#2  0x00007f3364f003ed in os_event_wait_low (event=0x2f4b100, reset_sig_count=1) at os/os0sync.c:420
#3  0x00007f3364f03024 in os_aio_simulated_handle (global_segment=14, message1=0x7f335d0a5008, message2=0x7f335d0a5000, type=0x7f335d0a4ff8) at os/os0file.c:4217
#4  0x00007f3364ec5ff3 in fil_aio_wait (segment=14) at fil/fil0fil.c:4153
#5  0x00007f3364f4a320 in io_handler_thread (arg=<value optimized out>) at srv/srv0start.c:446
#6  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#7  0x000000361f4d126d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f335c8a4910 (LWP 4564)):
#0  0x000000362000b239 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3364b07bab in safe_cond_wait (cond=0x2f4b238, mp=0x2f4b1c0, file=0x7f3364f78549 "os/os0sync.c", line=420) at thr_mutex.c:237
#2  0x00007f3364f003ed in os_event_wait_low (event=0x2f4b1c0, reset_sig_count=1) at os/os0sync.c:420
#3  0x00007f3364f03024 in os_aio_simulated_handle (global_segment=15, message1=0x7f335c8a4008, message2=0x7f335c8a4000, type=0x7f335c8a3ff8) at os/os0file.c:4217
#4  0x00007f3364ec5ff3 in fil_aio_wait (segment=15) at fil/fil0fil.c:4153
#5  0x00007f3364f4a320 in io_handler_thread (arg=<value optimized out>) at srv/srv0start.c:446
#6  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#7  0x000000361f4d126d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f335c0a3910 (LWP 4565)):
#0  0x000000362000b239 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3364b07bab in safe_cond_wait (cond=0x2f4b2f8, mp=0x2f4b280, file=0x7f3364f78549 "os/os0sync.c", line=420) at thr_mutex.c:237
#2  0x00007f3364f003ed in os_event_wait_low (event=0x2f4b280, reset_sig_count=1) at os/os0sync.c:420
#3  0x00007f3364f03024 in os_aio_simulated_handle (global_segment=16, message1=0x7f335c0a3008, message2=0x7f335c0a3000, type=0x7f335c0a2ff8) at os/os0file.c:4217
#4  0x00007f3364ec5ff3 in fil_aio_wait (segment=16) at fil/fil0fil.c:4153
#5  0x00007f3364f4a320 in io_handler_thread (arg=<value optimized out>) at srv/srv0start.c:446
#6  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#7  0x000000361f4d126d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f335b8a2910 (LWP 4566)):
#0  0x000000362000b239 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3364b07bab in safe_cond_wait (cond=0x2f4b3b8, mp=0x2f4b340, file=0x7f3364f78549 "os/os0sync.c", line=420) at thr_mutex.c:237
#2  0x00007f3364f003ed in os_event_wait_low (event=0x2f4b340, reset_sig_count=1) at os/os0sync.c:420
#3  0x00007f3364f03024 in os_aio_simulated_handle (global_segment=17, message1=0x7f335b8a2008, message2=0x7f335b8a2000, type=0x7f335b8a1ff8) at os/os0file.c:4217
#4  0x00007f3364ec5ff3 in fil_aio_wait (segment=17) at fil/fil0fil.c:4153
#5  0x00007f3364f4a320 in io_handler_thread (arg=<value optimized out>) at srv/srv0start.c:446
#6  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#7  0x000000361f4d126d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f335a38b910 (LWP 4568)):
#0  0x000000361f4ca742 in select () from /lib/libc.so.6
#1  0x00007f3364f0083b in os_thread_sleep (tm=<value optimized out>) at os/os0thread.c:274
#2  0x00007f3364f46808 in srv_lock_timeout_and_monitor_thread (arg=<value optimized out>) at srv/srv0srv.c:2190
#3  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#4  0x000000361f4d126d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f3359b8a910 (LWP 4569)):
#0  0x000000361f4ca742 in select () from /lib/libc.so.6
#1  0x00007f3364f0083b in os_thread_sleep (tm=<value optimized out>) at os/os0thread.c:274
#2  0x00007f3364f42d49 in srv_error_monitor_thread (arg=<value optimized out>) at srv/srv0srv.c:2414
#3  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#4  0x000000361f4d126d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f3359389910 (LWP 4570)):
#0  0x000000362000b239 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f3364b07bab in safe_cond_wait (cond=0x28aaa18, mp=0x28aa9a0, file=0x7f3364f78549 "os/os0sync.c", line=420) at thr_mutex.c:237
#2  0x00007f3364f003ed in os_event_wait_low (event=0x28aa9a0, reset_sig_count=1) at os/os0sync.c:420
#3  0x00007f3364f43395 in srv_master_thread (arg=<value optimized out>) at srv/srv0srv.c:3069
#4  0x00000036200072e7 in start_thread () from /lib/libpthread.so.0
#5  0x000000361f4d126d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f336f8b4790 (LWP 4540)):
[KCrash Handler]
#5  0x000000361f4322a5 in raise () from /lib/libc.so.6
#6  0x000000361f433662 in abort () from /lib/libc.so.6
#7  0x00007f3364b07fc7 in safe_mutex_lock (mp=0x7f3364e4b5a0, try_lock=<value optimized out>, file=0x7f33651aa980 "hp_open.c", line=31) at thr_mutex.c:164
#8  0x00007f33651a476c in heap_open (name=0x33278a8 "/tmp/#sql_11bc_0", mode=2) at hp_open.c:31
#9  0x00007f33659a403e in ha_heap::open(char const*, int, unsigned int) () from /usr/lib64/libmysqld.so.0
#10 0x00007f33659add25 in handler::ha_open(char const*, int, int) () from /usr/lib64/libmysqld.so.0
#11 0x00007f3365ac6e41 in ?? () from /usr/lib64/libmysqld.so.0
#12 0x00007f3365acfd62 in create_tmp_table(THD*, TMP_TABLE_PARAM*, List<Item>&, st_order*, bool, bool, unsigned long long, unsigned long, char*) () from /usr/lib64/libmysqld.so.0
#13 0x00007f3365af39e9 in create_schema_table(THD*, TABLE_LIST*) () from /usr/lib64/libmysqld.so.0
#14 0x00007f3365ae8bd7 in mysql_schema_table(THD*, st_lex*, TABLE_LIST*) () from /usr/lib64/libmysqld.so.0
#15 0x00007f3365a85129 in open_tables(THD*, TABLE_LIST**, unsigned int*, unsigned int) () from /usr/lib64/libmysqld.so.0
#16 0x00007f3365a8578e in open_and_lock_tables(THD*, TABLE_LIST*) () from /usr/lib64/libmysqld.so.0
#17 0x00007f3365ab3209 in mysql_execute_command(THD*) () from /usr/lib64/libmysqld.so.0
#18 0x00007f3365ab894d in mysql_parse(THD*, char const*, unsigned int, char const**) () from /usr/lib64/libmysqld.so.0
#19 0x00007f3365abba75 in dispatch_command(enum_server_command, THD*, char*, unsigned int) () from /usr/lib64/libmysqld.so.0
#20 0x00007f336591d9a2 in ?? () from /usr/lib64/libmysqld.so.0
#21 0x00007f3365976809 in mysql_send_query () from /usr/lib64/libmysqld.so.0
#22 0x00007f3365976956 in mysql_real_query () from /usr/lib64/libmysqld.so.0
#23 0x00007f3365f2d7ac in MySqlCollection::query (this=0x26ed420, statement=...) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/collection/mysql-shared/MySqlCollection.cpp:120
#24 0x00007f3365eee8a9 in DatabaseUpdater::cleanupDatabase (this=0x26ee5f0) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/collection/sqlcollection/DatabaseUpdater.cpp:593
#25 0x00007f3365f0ab02 in SqlCollection::init (this=0x26ed420) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/collection/sqlcollection/SqlCollection.cpp:81
#26 0x00007f3365f2ea18 in MySqlEmbeddedCollection (this=0x26ed420, id=<value optimized out>, prettyName=<value optimized out>)
    at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/collection/mysqlecollection/MySqlEmbeddedCollection.cpp:135
#27 0x00007f3365f2f6c9 in MySqlEmbeddedCollectionFactory::init (this=0x1fc4b50)
    at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/collection/mysqlecollection/MySqlEmbeddedCollection.cpp:37
#28 0x00007f3372fa53c0 in CollectionManager::init (this=0x1fc3e90) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/collection/CollectionManager.cpp:155
#29 0x00007f3372fa573d in CollectionManager::instance () at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/collection/CollectionManager.cpp:65
#30 0x00007f3372f38517 in ServiceFactory (this=<value optimized out>) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/services/ServiceBase.cpp:39
#31 0x00007f33663d1f29 in LastFmServiceFactory (this=0x11bc) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/services/lastfm/LastFmService.h:46
#32 0x00007f33663cf863 in create_plugin () at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/services/lastfm/LastFmService.cpp:66
#33 0x00007f3373089320 in PluginManager::createFromService (service=...) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/PluginManager.cpp:111
#34 0x00007f3372f4815c in ServicePluginManager::collect (this=0x26bb340) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/services/ServicePluginManager.cpp:65
#35 0x00007f3372f4828d in ServicePluginManager::instance () at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/services/ServicePluginManager.cpp:32
#36 0x00007f3372e8599b in Model (this=0x26bb5a0, parent=<value optimized out>) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/playlist/PlaylistModel.cpp:66
#37 0x00007f3372e8a255 in ModelStack (this=0x26b2b70) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/playlist/PlaylistModelStack.cpp:58
#38 0x00007f3372e8a34d in Playlist::ModelStack::instance () at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/playlist/PlaylistModelStack.cpp:41
#39 0x00007f3372e8a369 in The::playlist () at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/playlist/PlaylistModelStack.cpp:28
#40 0x00007f33730235b3 in StatusBar (this=0x22abe40, parent=<value optimized out>) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/statusbar/StatusBar.cpp:88
#41 0x00007f3373082341 in MainWindow (this=0x1e09fa0) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/MainWindow.cpp:144
#42 0x00007f3373064403 in App::continueInit (this=0x7fffe56a3ca0) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/App.cpp:664
#43 0x00007f3373066c91 in App (this=0x7fffe56a3ca0) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/App.cpp:222
#44 0x000000000040595d in main (argc=3, argv=0x7fffe56a5aa8) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/main.cpp:225

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

Reported using DrKonqi
Comment 1 Marian Kyral 2009-10-22 07:18:09 UTC
When I removed the database, it fails again (not usable backtrace this time :-( )

$ rm -rf ~/.kde4/share/apps/amarok/mysqle/
$
$ amarok -d --nofork
amarok(5078)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from  "/var/tmp/kdecache-marian/ksycoca4"
amarok(5078)/kdecore (KLibLoader) KPluginLoader::KPluginLoader: Could not find plugin/library for "phononbackends/xine.desktop" library name: "phonon_xine"
amarok(5078) Phonon::KdePlatformPlugin::createBackend: using backend:  "Xine"
Object::connect: No such signal BrowserCategoryList::leavingTree() in /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/widgets/SearchWidget.cpp:54
Object::connect:  (sender name:   'internet')
InnoDB: The InnoDB memory heap is disabled
InnoDB: use atomic builtins.
InnoDB: The first specified data file /home/marian/.kde4/share/apps/amarok/mysqle/ibdata1 did not exist:
InnoDB: a new database to be created!
091022  7:14:56  InnoDB: Setting file /home/marian/.kde4/share/apps/amarok/mysqle/ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
091022  7:14:56  InnoDB: Log file /home/marian/.kde4/share/apps/amarok/mysqle/ib_logfile0 did not exist: new to be created
InnoDB: Setting log file /home/marian/.kde4/share/apps/amarok/mysqle/ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
091022  7:14:56  InnoDB: Log file /home/marian/.kde4/share/apps/amarok/mysqle/ib_logfile1 did not exist: new to be created
InnoDB: Setting log file /home/marian/.kde4/share/apps/amarok/mysqle/ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
safe_mutex: Trying to lock unitialized mutex at hp_open.c, line 31
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = amarok path = <unknown> pid = 5078
sock_file=/home/marian/.kde4/socket-nbmkyral-E6500/kdeinit4__0
091022  7:14:58  InnoDB: Error: Write to file /home/marian/.kde4/share/apps/amarok/mysqle/ibdata1 failed at offset 0 1048576.
InnoDB: 262144 bytes should have been written, only -1 were written.
InnoDB: Operating system error number 9.
InnoDB: Check that your OS and file system support files of this size.
InnoDB: Check also that the disk is not full or a disk quota exceeded.
InnoDB: Error number 9 means 'Chybný popisovač souboru'.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/5.0/en/operating-system-error-codes.html
091022  7:14:58InnoDB: Assertion failure in thread 140318216968464 in file fil/fil0fil.c line 4045
InnoDB: Failing assertion: ret
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.0/en/forcing-recovery.html
InnoDB: about forcing recovery.

$ ll ~/.kde4/share/apps/amarok/mysqle/
celkem 20528
drwxr-xr-x 2 marian marian     4096 22. říj 07.14 .
drwx------ 6 marian marian     4096 22. říj 07.14 ..
-rw-rw---- 1 marian marian 10485760 22. říj 07.14 ibdata1
-rw-rw---- 1 marian marian  5242880 22. říj 07.14 ib_logfile0
-rw-rw---- 1 marian marian  5242880 22. říj 07.14 ib_logfile1
Comment 2 Marian Kyral 2009-10-22 07:20:19 UTC
When I removed the database, it fails again (not usable backtrace this time :-( )

$ rm -rf ~/.kde4/share/apps/amarok/mysqle/
$
$ amarok -d --nofork
amarok(5078)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from  "/var/tmp/kdecache-marian/ksycoca4"
amarok(5078)/kdecore (KLibLoader) KPluginLoader::KPluginLoader: Could not find plugin/library for "phononbackends/xine.desktop" library name: "phonon_xine"
amarok(5078) Phonon::KdePlatformPlugin::createBackend: using backend:  "Xine"
Object::connect: No such signal BrowserCategoryList::leavingTree() in /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/widgets/SearchWidget.cpp:54
Object::connect:  (sender name:   'internet')
InnoDB: The InnoDB memory heap is disabled
InnoDB: use atomic builtins.
InnoDB: The first specified data file /home/marian/.kde4/share/apps/amarok/mysqle/ibdata1 did not exist:
InnoDB: a new database to be created!
091022  7:14:56  InnoDB: Setting file /home/marian/.kde4/share/apps/amarok/mysqle/ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
091022  7:14:56  InnoDB: Log file /home/marian/.kde4/share/apps/amarok/mysqle/ib_logfile0 did not exist: new to be created
InnoDB: Setting log file /home/marian/.kde4/share/apps/amarok/mysqle/ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
091022  7:14:56  InnoDB: Log file /home/marian/.kde4/share/apps/amarok/mysqle/ib_logfile1 did not exist: new to be created
InnoDB: Setting log file /home/marian/.kde4/share/apps/amarok/mysqle/ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
safe_mutex: Trying to lock unitialized mutex at hp_open.c, line 31
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = amarok path = <unknown> pid = 5078
sock_file=/home/marian/.kde4/socket-nbmkyral-E6500/kdeinit4__0
091022  7:14:58  InnoDB: Error: Write to file /home/marian/.kde4/share/apps/amarok/mysqle/ibdata1 failed at offset 0 1048576.
InnoDB: 262144 bytes should have been written, only -1 were written.
InnoDB: Operating system error number 9.
InnoDB: Check that your OS and file system support files of this size.
InnoDB: Check also that the disk is not full or a disk quota exceeded.
InnoDB: Error number 9 means 'Chybný popisovač souboru'.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/5.0/en/operating-system-error-codes.html
091022  7:14:58InnoDB: Assertion failure in thread 140318216968464 in file fil/fil0fil.c line 4045
InnoDB: Failing assertion: ret
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.0/en/forcing-recovery.html
InnoDB: about forcing recovery.

$ ll ~/.kde4/share/apps/amarok/mysqle/
celkem 20528
drwxr-xr-x 2 marian marian     4096 22. říj 07.14 .
drwx------ 6 marian marian     4096 22. říj 07.14 ..
-rw-rw---- 1 marian marian 10485760 22. říj 07.14 ibdata1
-rw-rw---- 1 marian marian  5242880 22. říj 07.14 ib_logfile0
-rw-rw---- 1 marian marian  5242880 22. říj 07.14 ib_logfile1
Comment 3 Mark Kretschmann 2009-10-22 08:00:18 UTC
The problem might be unrelated to your database. What's wrong is this:

amarok(5078)/kdecore (KLibLoader) KPluginLoader::KPluginLoader: Could not find
plugin/library for "phononbackends/xine.desktop" library name: "phonon_xine"


So Phonon cannot load the xine backend, which is obviously a problem. Please ask the Gentoo maintainers.

However, you might additionally have a problem with your MySQL. Seems to be using InnoDB, which Amarok doesn't support. Please see here:

http://amarok.kde.org/wiki/Development/MySQL_Embedded
Comment 4 Marian Kyral 2009-10-22 09:14:09 UTC
1)
Ok, I'll try to rebuild phonon and xine.

2)
I checked the link, but not found, how to disable InnoDB support. Amarok created it itself. This is the content of the backuped database (after first time crash):

$ LANG=C ll .kde4/share/apps/amarok_crash/mysqle/
total 20536
drwxr-xr-x 4 marian marian     4096 Oct 20 08:56 .
drwx------ 6 marian marian     4096 Sep 30 09:00 ..
drwx------ 2 marian marian     4096 Sep  2 22:29 amarok
-rw-rw---- 1 marian marian  5242880 Oct 20 08:56 ib_logfile0
-rw-rw---- 1 marian marian  5242880 Aug  7 14:36 ib_logfile1
-rw-rw---- 1 marian marian 10485760 Aug  7 14:36 ibdata1
drwx------ 2 marian marian     4096 Aug  7 14:36 mysql
Comment 5 Marian Kyral 2009-10-24 00:21:56 UTC
(In reply to comment #3)
> The problem might be unrelated to your database. What's wrong is this:
> 
> amarok(5078)/kdecore (KLibLoader) KPluginLoader::KPluginLoader: Could not find
> plugin/library for "phononbackends/xine.desktop" library name: "phonon_xine"
> 
> 
> So Phonon cannot load the xine backend, which is obviously a problem. Please
> ask the Gentoo maintainers.
> 
Don't know why, but on my second box, amarok works correctly even with this message. So the crash is caused by mysql. I used the gdb to get a backtrace for a new user with blank home directory. Crashed as well. I tryied to uninstall mysql and amarok, no change. But on my second box (the working one), works corectly even with blank profile. 

Both have the same version of mysql installed, but on the working one is not up-to-date with SVN. But I afraid to do a update now :-( 

(gdb) run -d --nofork                                                                                    
Starting program: /usr/bin/amarok -d --nofork                                                            
[Thread debugging using libthread_db enabled]                                                            
amarok(19536)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from  "/var/tmp/kdecache-test/ksycoca4"
amarok(19536)/kdecore (KLibLoader) KPluginLoader::KPluginLoader: Could not find plugin/library for "phononbackends/xine.desktop" library name: "phonon_xine" 
[New Thread 0x7ffff204d910 (LWP 20077)]                                                                                                                      
amarok(19536) Phonon::KdePlatformPlugin::createBackend: using backend:  "Xine"                                                                               
[New Thread 0x7ffff184c910 (LWP 20095)]                                                                                                                      
cannot configure the device on Xine's oss output plugin                                                                                                      
cannot configure the device on Xine's oss output plugin                                                                                                      
[New Thread 0x7ffff0a36910 (LWP 20097)]                                                                                                                      
[New Thread 0x7fffebfff910 (LWP 20098)]                                                                                                                      
InnoDB: The InnoDB memory heap is disabled                                                                                                                   
InnoDB: use atomic builtins.                                                                                                                                 
[New Thread 0x7fffe9495910 (LWP 20124)]                                                                                                                      
[New Thread 0x7fffe8c94910 (LWP 20125)]
[New Thread 0x7fffe8493910 (LWP 20127)]
[New Thread 0x7fffe7c92910 (LWP 20130)]
[New Thread 0x7fffe7491910 (LWP 20131)]
[New Thread 0x7fffe6c90910 (LWP 20132)]
[New Thread 0x7fffe648f910 (LWP 20133)]
[New Thread 0x7fffe5c8e910 (LWP 20134)]
[New Thread 0x7fffe548d910 (LWP 20135)]
[New Thread 0x7fffe4c8c910 (LWP 20136)]
[New Thread 0x7fffe448b910 (LWP 20137)]
[New Thread 0x7fffe3c8a910 (LWP 20138)]
[New Thread 0x7fffe3489910 (LWP 20139)]
[New Thread 0x7fffe2c88910 (LWP 20140)]
[New Thread 0x7fffe2487910 (LWP 20141)]
[New Thread 0x7fffe1c86910 (LWP 20142)]
[New Thread 0x7fffe1485910 (LWP 20143)]
[New Thread 0x7fffe0c84910 (LWP 20144)]
InnoDB: Log scan progressed past the checkpoint lsn 0 36808
091024  0:07:15  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Doing recovery: scanned up to log sequence number 0 43655
091024  0:07:16  InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
[New Thread 0x7fffdff6d910 (LWP 20162)]
[Thread 0x7fffdff6d910 (LWP 20162) exited]
[New Thread 0x7fffdf76c910 (LWP 20163)]
[New Thread 0x7fffdef6b910 (LWP 20165)]
[New Thread 0x7fffde76a910 (LWP 20166)]
safe_mutex: Trying to lock unitialized mutex at hp_open.c, line 31

Program received signal SIGABRT, Aborted.
0x000000361f4322a5 in raise () from /lib/libc.so.6
(gdb) bt
#0  0x000000361f4322a5 in raise () from /lib/libc.so.6
#1  0x000000361f433662 in abort () from /lib/libc.so.6
#2  0x00007fffe9ee9fc7 in safe_mutex_lock (mp=0x7fffea22d5a0, try_lock=<value optimized out>, file=0x7ffff0033980 "hp_open.c", line=31) at thr_mutex.c:164
#3  0x00007ffff002d76c in heap_open (name=0x18640b8 "/tmp/#sql_4c50_0", mode=2) at hp_open.c:31
#4  0x00007fffeab7b03e in ha_heap::open(char const*, int, unsigned int) () from /usr/lib64/libmysqld.so.0
#5  0x00007fffeab84d25 in handler::ha_open(char const*, int, int) () from /usr/lib64/libmysqld.so.0
#6  0x00007fffeac9de41 in ?? () from /usr/lib64/libmysqld.so.0
#7  0x00007fffeaca6d62 in create_tmp_table(THD*, TMP_TABLE_PARAM*, List<Item>&, st_order*, bool, bool, unsigned long long, unsigned long, char*) () from /usr/lib64/libmysqld.so.0
#8  0x00007fffeacca9e9 in create_schema_table(THD*, TABLE_LIST*) () from /usr/lib64/libmysqld.so.0
#9  0x00007fffeacbfbd7 in mysql_schema_table(THD*, st_lex*, TABLE_LIST*) () from /usr/lib64/libmysqld.so.0
#10 0x00007fffeac5c129 in open_tables(THD*, TABLE_LIST**, unsigned int*, unsigned int) () from /usr/lib64/libmysqld.so.0
#11 0x00007fffeac5c78e in open_and_lock_tables(THD*, TABLE_LIST*) () from /usr/lib64/libmysqld.so.0
#12 0x00007fffeac8a209 in mysql_execute_command(THD*) () from /usr/lib64/libmysqld.so.0
#13 0x00007fffeac8f94d in mysql_parse(THD*, char const*, unsigned int, char const**) () from /usr/lib64/libmysqld.so.0
#14 0x00007fffeac92a75 in dispatch_command(enum_server_command, THD*, char*, unsigned int) () from /usr/lib64/libmysqld.so.0
#15 0x00007fffeaaf49a2 in ?? () from /usr/lib64/libmysqld.so.0
#16 0x00007fffeab4d809 in mysql_send_query () from /usr/lib64/libmysqld.so.0
#17 0x00007fffeab4d956 in mysql_real_query () from /usr/lib64/libmysqld.so.0
#18 0x00007fffeb1047ac in MySqlCollection::query (this=0xc0e130, statement=...) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/collection/mysql-shared/MySqlCollection.cpp:120
#19 0x00007fffeb0c58a9 in DatabaseUpdater::cleanupDatabase (this=0x905920) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/collection/sqlcollection/DatabaseUpdater.cpp:593
#20 0x00007fffeb0e1b02 in SqlCollection::init (this=0xc0e130) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/collection/sqlcollection/SqlCollection.cpp:81
#21 0x00007fffeb105a18 in MySqlEmbeddedCollection (this=0xc0e130, id=<value optimized out>, prettyName=<value optimized out>) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/collection/mysqlecollection/MySqlEmbeddedCollection.cpp:135
#22 0x00007fffeb1066c9 in MySqlEmbeddedCollectionFactory::init (this=0x921020) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/collection/mysqlecollection/MySqlEmbeddedCollection.cpp:37
#23 0x00007ffff7b173c0 in CollectionManager::init (this=0x91a4c0) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/collection/CollectionManager.cpp:155
#24 0x00007ffff7b1773d in CollectionManager::instance () at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/collection/CollectionManager.cpp:65
#25 0x00007ffff7aaa467 in ServiceFactory (this=<value optimized out>) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/services/ServiceBase.cpp:39
#26 0x00007fffeb5a8f29 in LastFmServiceFactory (this=0x4c50) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/services/lastfm/LastFmService.h:46
#27 0x00007fffeb5a6863 in create_plugin () at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/services/lastfm/LastFmService.cpp:66
#28 0x00007ffff7bfb050 in PluginManager::createFromService (service=...) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/PluginManager.cpp:111
#29 0x00007ffff7aba0ac in ServicePluginManager::collect (this=0x950780) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/services/ServicePluginManager.cpp:65
#30 0x00007ffff7aba1dd in ServicePluginManager::instance () at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/services/ServicePluginManager.cpp:32
#31 0x00007ffff79f798b in Model (this=0x90f6a0, parent=<value optimized out>) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/playlist/PlaylistModel.cpp:66
#32 0x00007ffff79fc245 in ModelStack (this=0x903570) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/playlist/PlaylistModelStack.cpp:58
#33 0x00007ffff79fc33d in Playlist::ModelStack::instance () at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/playlist/PlaylistModelStack.cpp:41
#34 0x00007ffff79fc359 in The::playlist () at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/playlist/PlaylistModelStack.cpp:28
#35 0x00007ffff7b953c3 in StatusBar (this=0x8e22a0, parent=<value optimized out>) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/statusbar/StatusBar.cpp:88
#36 0x00007ffff7bf4071 in MainWindow (this=0x7d5060) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/MainWindow.cpp:144
#37 0x00007ffff7bd6193 in App::continueInit (this=0x7fffffffbf20) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/App.cpp:664
#38 0x00007ffff7bd8a21 in App (this=0x7fffffffbf20) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/App.cpp:222
#39 0x000000000040595d in main (argc=3, argv=0x7fffffffdd28) at /var/tmp/portage/media-sound/amarok-9999/work/amarok-9999/src/main.cpp:225