Bug 189801 - Amarok crashes on startup (SIGSEGV, corrupt database)
Summary: Amarok crashes on startup (SIGSEGV, corrupt database)
Status: RESOLVED DOWNSTREAM
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
: 211897 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-16 15:03 UTC by Remco Bloemen
Modified: 2009-10-26 07:26 UTC (History)
1 user (show)

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 Remco Bloemen 2009-04-16 15:03:27 UTC
Version:           Amarok: 2.0.2  (Qt: 4.5, KDE: 4.2.2, MySQL: 5.0.76-r1) (using KDE 4.2.2)
Compiler:          gcc version 4.3.3 (Gentoo 4.3.3-r2 p1.1, pie-10.1.5)
 
OS:                Linux
Installed from:    Gentoo Packages

When I run "amarok -d --nofork" it outputs:

amarok(1104) Phonon::KdePlatformPlugin::createBackend: using backend:  "Xine"
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
090416 14:54:35  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...
KCrash: Application 'amarok' crashing...
sock_file=/home/remco/.kde4/socket-sysresccd/kdeinit4__0

Then KCrash presents the backtrace:

Application: Amarok (amarok), signal SIGSEGV
0x00007f7feda11901 in nanosleep () from /lib/libc.so.6
Current language:  auto; currently c
[Current thread is 0 (LWP 1104)]

Thread 12 (Thread 0x7f7fdadaa950 (LWP 1105)):
#0  0x00007f7fee47c06d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f7fe09b3081 in metronom_sync_loop (this=0x7ccee0) at metronom.c:870
#2  0x00007f7fee478037 in start_thread () from /lib/libpthread.so.0
#3  0x00007f7feda41f7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7f7fda5a9950 (LWP 1106)):
#0  0x00007f7fee479578 in pthread_mutex_lock () from /lib/libpthread.so.0
#1  0x00007f7fe5fed4ee in IA__g_main_context_dispatch (context=0x752960) at gmain.c:2693
#2  0x00007f7fe5ff0c6d in g_main_context_iterate (context=0x752960, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2778
#3  0x00007f7fe5ff0e1d in IA__g_main_context_iteration (context=0x752960, may_block=1) at gmain.c:2841
#4  0x00007f7fee7e2a6e in QEventDispatcherGlib::processEvents (this=0x6d2550, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:325
#5  0x00007f7fee7bbd12 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -631599248}) at kernel/qeventloop.cpp:149
#6  0x00007f7fee7bbeb5 in QEventLoop::exec (this=0x7f7fda5a8fb0, flags={i = -631599168}) at kernel/qeventloop.cpp:196
#7  0x00007f7fee6e648c in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:481
#8  0x00007f7fe0c0af62 in Phonon::Xine::XineThread::run (this=0x749960) at /var/tmp/paludis/media-sound-phonon-4.3.1/work/phonon-4.3.1/xine/xinethread.cpp:143
#9  0x00007f7fee6e90a9 in QThreadPrivate::start (arg=0x749960) at thread/qthread_unix.cpp:189
#10 0x00007f7fee478037 in start_thread () from /lib/libpthread.so.0
#11 0x00007f7feda41f7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f7fd9b9e950 (LWP 1109)):
#0  0x00007f7feda395e6 in __poll (fds=0x7f7fd9b9dfb0, nfds=1, timeout=333) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f7fd9ba3b78 in ao_alsa_handle_event_thread (data=<value optimized out>) at audio_alsa_out.c:150
#2  0x00007f7fee478037 in start_thread () from /lib/libpthread.so.0
#3  0x00007f7feda41f7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f7fd939d950 (LWP 1110)):
#0  0x00007f7fee47bde9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f7fe09c1290 in fifo_peek_int (fifo=0x7ef9b0, blocking=1) at audio_out.c:348
#2  0x00007f7fe09c2cac in ao_loop (this_gen=<value optimized out>) at audio_out.c:388
#3  0x00007f7fee478037 in start_thread () from /lib/libpthread.so.0
#4  0x00007f7feda41f7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f7fd55bc950 (LWP 1111)):
#0  0x00007f7fee47bde9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f7fd684e8ad in os_event_wait_low (event=0x1046580, reset_sig_count=1) at os/os0sync.c:420
#2  0x00007f7fd6851161 in os_aio_simulated_handle (global_segment=0, message1=0x7f7fd55bc078, message2=0x7f7fd55bc070, type=0x7f7fd55bc068) at os/os0file.c:4089
#3  0x00007f7fd6814293 in fil_aio_wait (segment=0) at fil/fil0fil.c:4131
#4  0x00007f7fd6896688 in io_handler_thread (arg=<value optimized out>) at srv/srv0start.c:446
#5  0x00007f7fee478037 in start_thread () from /lib/libpthread.so.0
#6  0x00007f7feda41f7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f7fd4dbb950 (LWP 1112)):
#0  0x00007f7fee47bde9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f7fd684e8ad in os_event_wait_low (event=0x1046620, reset_sig_count=3) at os/os0sync.c:420
#2  0x00007f7fd6851161 in os_aio_simulated_handle (global_segment=1, message1=0x7f7fd4dbb078, message2=0x7f7fd4dbb070, type=0x7f7fd4dbb068) at os/os0file.c:4089
#3  0x00007f7fd6814293 in fil_aio_wait (segment=1) at fil/fil0fil.c:4131
#4  0x00007f7fd6896688 in io_handler_thread (arg=<value optimized out>) at srv/srv0start.c:446
#5  0x00007f7fee478037 in start_thread () from /lib/libpthread.so.0
#6  0x00007f7feda41f7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f7fd45ba950 (LWP 1113)):
#0  0x00007f7fee47bde9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f7fd684e8ad in os_event_wait_low (event=0x10466c0, reset_sig_count=2) at os/os0sync.c:420
#2  0x00007f7fd6851161 in os_aio_simulated_handle (global_segment=2, message1=0x7f7fd45ba078, message2=0x7f7fd45ba070, type=0x7f7fd45ba068) at os/os0file.c:4089
#3  0x00007f7fd6814293 in fil_aio_wait (segment=2) at fil/fil0fil.c:4131
#4  0x00007f7fd6896688 in io_handler_thread (arg=<value optimized out>) at srv/srv0start.c:446
#5  0x00007f7fee478037 in start_thread () from /lib/libpthread.so.0
#6  0x00007f7feda41f7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f7fd3db9950 (LWP 1114)):
#0  0x00007f7fee47bde9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f7fd684e8ad in os_event_wait_low (event=0x1046760, reset_sig_count=1) at os/os0sync.c:420
#2  0x00007f7fd6851161 in os_aio_simulated_handle (global_segment=3, message1=0x7f7fd3db9078, message2=0x7f7fd3db9070, type=0x7f7fd3db9068) at os/os0file.c:4089
#3  0x00007f7fd6814293 in fil_aio_wait (segment=3) at fil/fil0fil.c:4131
#4  0x00007f7fd6896688 in io_handler_thread (arg=<value optimized out>) at srv/srv0start.c:446
#5  0x00007f7fee478037 in start_thread () from /lib/libpthread.so.0
#6  0x00007f7feda41f7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f7fd28a1950 (LWP 1116)):
#0  0x00007f7feda3b682 in select () from /lib/libc.so.6
#1  0x00007f7fd684ed5b in os_thread_sleep (tm=<value optimized out>) at os/os0thread.c:274
#2  0x00007f7fd6892bb8 in srv_lock_timeout_and_monitor_thread (arg=<value optimized out>) at srv/srv0srv.c:1893
#3  0x00007f7fee478037 in start_thread () from /lib/libpthread.so.0
#4  0x00007f7feda41f7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f7fd20a0950 (LWP 1117)):
#0  0x00007f7feda3b682 in select () from /lib/libc.so.6
#1  0x00007f7fd684ed5b in os_thread_sleep (tm=<value optimized out>) at os/os0thread.c:274
#2  0x00007f7fd68919ba in srv_error_monitor_thread (arg=<value optimized out>) at srv/srv0srv.c:2117
#3  0x00007f7fee478037 in start_thread () from /lib/libpthread.so.0
#4  0x00007f7feda41f7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f7fd189f950 (LWP 1118)):
#0  0x00007f7fee47bde9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f7fd684e8ad in os_event_wait_low (event=0xb0ccf0, reset_sig_count=1) at os/os0sync.c:420
#2  0x00007f7fd6890bfe in srv_master_thread (arg=<value optimized out>) at srv/srv0srv.c:2609
#3  0x00007f7fee478037 in start_thread () from /lib/libpthread.so.0
#4  0x00007f7feda41f7d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f7ff0b14760 (LWP 1104)):
[KCrash Handler]
#5  0x0000000000000000 in ?? ()
#6  0x00007f7fd7a71955 in _mi_read_cache () from /usr/lib64/libmysqld.so.0
#7  0x00007f7fd7a7646d in _mi_read_rnd_dynamic_record () from /usr/lib64/libmysqld.so.0
#8  0x00007f7fd7acc2bf in ha_myisam::rnd_next () from /usr/lib64/libmysqld.so.0
#9  0x00007f7fd7b68cb9 in rr_sequential () from /usr/lib64/libmysqld.so.0
#10 0x00007f7fd7bc1533 in sub_select () from /usr/lib64/libmysqld.so.0
#11 0x00007f7fd7bc1965 in ?? () from /usr/lib64/libmysqld.so.0
#12 0x00007f7fd7bd2557 in JOIN::exec () from /usr/lib64/libmysqld.so.0
#13 0x00007f7fd7bcf3d4 in mysql_select () from /usr/lib64/libmysqld.so.0
#14 0x00007f7fd7bd410b in handle_select () from /usr/lib64/libmysqld.so.0
#15 0x00007f7fd7baad0e in mysql_execute_command () from /usr/lib64/libmysqld.so.0
#16 0x00007f7fd7badf41 in mysql_parse () from /usr/lib64/libmysqld.so.0
#17 0x00007f7fd7bb053c in dispatch_command () from /usr/lib64/libmysqld.so.0
#18 0x00007f7fd7a5943e in ?? () from /usr/lib64/libmysqld.so.0
#19 0x00007f7fd7aa2cf6 in mysql_send_query () from /usr/lib64/libmysqld.so.0
#20 0x00007f7fd7aa2d69 in mysql_real_query () from /usr/lib64/libmysqld.so.0
#21 0x00007f7fd7fca636 in MySqlEmbeddedCollection::query (this=0xb499b0, statement=@0x7ffff8cf3e30)
    at /var/tmp/paludis/media-sound-amarok-2.0.2-r1/work/amarok-2.0.2/src/collection/sqlcollection/MySqlEmbeddedCollection.cpp:197
#22 0x00007f7fd7f7fa7a in DatabaseUpdater::adminValue (this=0xb4c2e0, key=<value optimized out>)
    at /var/tmp/paludis/media-sound-amarok-2.0.2-r1/work/amarok-2.0.2/src/collection/sqlcollection/DatabaseUpdater.cpp:496
#23 0x00007f7fd7f7fc28 in DatabaseUpdater::needsUpdate (this=0xb4c2e0) at /var/tmp/paludis/media-sound-amarok-2.0.2-r1/work/amarok-2.0.2/src/collection/sqlcollection/DatabaseUpdater.cpp:41
#24 0x00007f7fd7fa30a5 in SqlCollection::init (this=0xb499b0) at /var/tmp/paludis/media-sound-amarok-2.0.2-r1/work/amarok-2.0.2/src/collection/sqlcollection/SqlCollection.cpp:89
#25 0x00007f7fd7fc9e11 in MySqlEmbeddedCollection (this=0xb499b0, id=<value optimized out>, prettyName=<value optimized out>)
    at /var/tmp/paludis/media-sound-amarok-2.0.2-r1/work/amarok-2.0.2/src/collection/sqlcollection/MySqlEmbeddedCollection.cpp:171
#26 0x00007f7fd7fa34a5 in SqlCollectionFactory::init (this=0xa39e90) at /var/tmp/paludis/media-sound-amarok-2.0.2-r1/work/amarok-2.0.2/src/collection/sqlcollection/SqlCollection.cpp:65
#27 0x00007f7ff00bfb54 in CollectionManager::init (this=0xa392d0) at /var/tmp/paludis/media-sound-amarok-2.0.2-r1/work/amarok-2.0.2/src/collection/CollectionManager.cpp:139
#28 0x00007f7ff00c006d in CollectionManager::instance () at /var/tmp/paludis/media-sound-amarok-2.0.2-r1/work/amarok-2.0.2/src/collection/CollectionManager.cpp:63
#29 0x00007f7ff005454d in ServiceFactory (this=0xb0aec0) at /var/tmp/paludis/media-sound-amarok-2.0.2-r1/work/amarok-2.0.2/src/services/ServiceBase.cpp:39
#30 0x00007f7fd8865636 in create_plugin () at /var/tmp/paludis/media-sound-amarok-2.0.2-r1/work/amarok-2.0.2/src/services/ampache/AmpacheService.h:37
#31 0x00007f7ff015d687 in PluginManager::createFromService (service={d = 0x7ffff8cf4960}) at /var/tmp/paludis/media-sound-amarok-2.0.2-r1/work/amarok-2.0.2/src/PluginManager.cpp:108
#32 0x00007f7ff0069711 in ServicePluginManager::collect (this=0x940910) at /var/tmp/paludis/media-sound-amarok-2.0.2-r1/work/amarok-2.0.2/src/services/ServicePluginManager.cpp:67
#33 0x00007f7ff006a18d in ServicePluginManager::instance () at /var/tmp/paludis/media-sound-amarok-2.0.2-r1/work/amarok-2.0.2/src/services/ServicePluginManager.cpp:34
#34 0x00007f7ff0019d2a in Model (this=0x9455a0) at /var/tmp/paludis/media-sound-amarok-2.0.2-r1/work/amarok-2.0.2/src/playlist/PlaylistModel.cpp:81
#35 0x00007f7ff001a84d in Playlist::Model::instance () at /var/tmp/paludis/media-sound-amarok-2.0.2-r1/work/amarok-2.0.2/src/playlist/PlaylistModel.cpp:53
#36 0x00007f7ff01226ed in StatusBar (this=0x98f820, parent=<value optimized out>) at /var/tmp/paludis/media-sound-amarok-2.0.2-r1/work/amarok-2.0.2/src/statusbar/StatusBar.cpp:93
#37 0x00007f7ff0152ffb in MainWindow (this=0x6f3c30) at /var/tmp/paludis/media-sound-amarok-2.0.2-r1/work/amarok-2.0.2/src/MainWindow.cpp:135
#38 0x00007f7ff0139791 in App::continueInit (this=0x7ffff8cf54e0) at /var/tmp/paludis/media-sound-amarok-2.0.2-r1/work/amarok-2.0.2/src/App.cpp:547
#39 0x00007f7ff013cb40 in App (this=0x7ffff8cf54e0) at /var/tmp/paludis/media-sound-amarok-2.0.2-r1/work/amarok-2.0.2/src/App.cpp:182
#40 0x00000000004042b9 in main (argc=3, argv=0x7ffff8cf66f8) at /var/tmp/paludis/media-sound-amarok-2.0.2-r1/work/amarok-2.0.2/src/main.cpp:128
Comment 1 Remco Bloemen 2009-04-16 15:06:17 UTC
I found this fix, but you'll lose all your collection info:

rm -rf ~/.kde4/share/apps/amarok/mysqle/
Comment 2 Mikko C. 2009-04-16 15:10:36 UTC
This is caused by the upgrade of mysql in the gentoo tree.
See related bug report: http://bugs.gentoo.org/show_bug.cgi?id=266071
Comment 3 Mikko C. 2009-10-26 07:26:46 UTC
*** Bug 211897 has been marked as a duplicate of this bug. ***