Summary: | Amarok crashed on startup (libmysql) | ||
---|---|---|---|
Product: | [Applications] amarok | Reporter: | Marian Kyral <mkyral> |
Component: | general | Assignee: | Amarok Developers <amarok-bugs-dist> |
Status: | RESOLVED DOWNSTREAM | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Marian Kyral
2009-10-22 07:11:10 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 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 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 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 (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 |