Bug 317455

Summary: Amarok Mariadb
Product: [Applications] amarok Reporter: Jorge Barroso Barea <jorge.barroso.11>
Component: generalAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 2.7.0   
Target Milestone: 2.8   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New Traces
Error message thown by amarok

Description Jorge Barroso Barea 2013-03-27 17:32:36 UTC
Application: amarok (2.7.0)
KDE Platform Version: 4.10.1 (Compiled from sources)
Qt Version: 4.8.4
Operating System: Linux 3.8.4-1-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed:
At startup amarok show a message saying that there are 728 messages on '/usr/share/mysql/english/errmsg.sys', and it should contain at least 933 messages,
I can basically use amarok, but when I close it, a crash message appears. I changed the default mysql database to mariadb as my distro is moved to it on its repositories

-- Backtrace:
Application: Amarok (amarok), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f9d6183d780 (LWP 3319))]

Thread 8 (Thread 0x7f9d3778d700 (LWP 3367)):
#0  0x00007fff815588b2 in ?? ()
#1  0x00007f9d24001390 in ?? ()
#2  0x00007f9d5e9de070 in ?? () from /usr/lib/libQtCore.so.4
#3  0x0000000057172bb0 in ?? ()
#4  0x00007f9d24001560 in ?? ()
#5  0x00007f9d24001560 in ?? ()
#6  0x000000007fffffff in ?? ()
#7  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f9d36edc700 (LWP 3372)):
#0  0x00007f9d5e029b69 in syscall () from /usr/lib/libc.so.6
#1  0x00007f9d5e884bab in _q_futex (val2=0, addr2=0x0, timeout=0x0, val=2, op=0, addr=0x166a300) at thread/qmutex_unix.cpp:99
#2  QMutexPrivate::wait (this=0x166a300, timeout=<optimized out>) at thread/qmutex_unix.cpp:113
#3  0x00007f9d5e881218 in QMutex::lock (this=<optimized out>) at thread/qmutex.cpp:164
#4  0x00007f9d37c43658 in Nepomuk2::Resource::Resource(QUrl const&, QUrl const&) () from /usr/lib/libnepomukcore.so.4
#5  0x00007f9d37ef65a0 in ?? () from /usr/lib/kde4/amarok_collection-nepomukcollection.so
#6  0x00007f9d37ef386f in ?? () from /usr/lib/kde4/amarok_collection-nepomukcollection.so
#7  0x00007f9d5b4965b1 in ThreadWeaver::JobRunHelper::runTheJob (this=this@entry=0x7f9d36edbd90, th=th@entry=0x17845f0, job=job@entry=0x170e490) at /home/jorge/kdelibs/src/kdelibs-4.10.1/threadweaver/Weaver/Job.cpp:106
#8  0x00007f9d5b496775 in ThreadWeaver::Job::execute (this=0x170e490, th=0x17845f0) at /home/jorge/kdelibs/src/kdelibs-4.10.1/threadweaver/Weaver/Job.cpp:135
#9  0x00007f9d5b495bed in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7f9d36edbdf0, parent=0x17c1080, th=th@entry=0x17845f0) at /home/jorge/kdelibs/src/kdelibs-4.10.1/threadweaver/Weaver/Thread.cpp:95
#10 0x00007f9d5b495ce6 in ThreadWeaver::Thread::run (this=0x17845f0) at /home/jorge/kdelibs/src/kdelibs-4.10.1/threadweaver/Weaver/Thread.cpp:142
#11 0x00007f9d5e885ea3 in QThreadPrivate::start (arg=0x17845f0) at thread/qthread_unix.cpp:338
#12 0x00007f9d5c18de0f in start_thread () from /usr/lib/libpthread.so.0
#13 0x00007f9d5e02defd in clone () from /usr/lib/libc.so.6

Thread 6 (Thread 0x7f9d34cbf700 (LWP 3373)):
#0  0x00007f9d5e029b69 in syscall () from /usr/lib/libc.so.6
#1  0x00007f9d5e884bab in _q_futex (val2=0, addr2=0x0, timeout=0x0, val=2, op=0, addr=0x166a300) at thread/qmutex_unix.cpp:99
#2  QMutexPrivate::wait (this=0x166a300, timeout=<optimized out>) at thread/qmutex_unix.cpp:113
#3  0x00007f9d5e881218 in QMutex::lock (this=<optimized out>) at thread/qmutex.cpp:164
#4  0x00007f9d37c43f78 in Nepomuk2::Resource::determineFinalResourceData() const () from /usr/lib/libnepomukcore.so.4
#5  0x00007f9d37c44b91 in Nepomuk2::Resource::hasType(QUrl const&) const () from /usr/lib/libnepomukcore.so.4
#6  0x00007f9d37ef2635 in ?? () from /usr/lib/kde4/amarok_collection-nepomukcollection.so
#7  0x00007f9d6062de59 in CollectionManager::trackForUrl(KUrl const&) () from /usr/lib/libamaroklib.so.1
#8  0x00007f9d605ee809 in ?? () from /usr/lib/libamaroklib.so.1
#9  0x00007f9d5b4965b1 in ThreadWeaver::JobRunHelper::runTheJob (this=this@entry=0x7f9d34cbed90, th=th@entry=0x1909930, job=job@entry=0x1c6ebb0) at /home/jorge/kdelibs/src/kdelibs-4.10.1/threadweaver/Weaver/Job.cpp:106
#10 0x00007f9d5b496775 in ThreadWeaver::Job::execute (this=0x1c6ebb0, th=0x1909930) at /home/jorge/kdelibs/src/kdelibs-4.10.1/threadweaver/Weaver/Job.cpp:135
#11 0x00007f9d5b495bed in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7f9d34cbedf0, parent=0x17c1080, th=th@entry=0x1909930) at /home/jorge/kdelibs/src/kdelibs-4.10.1/threadweaver/Weaver/Thread.cpp:95
#12 0x00007f9d5b495ce6 in ThreadWeaver::Thread::run (this=0x1909930) at /home/jorge/kdelibs/src/kdelibs-4.10.1/threadweaver/Weaver/Thread.cpp:142
#13 0x00007f9d5e885ea3 in QThreadPrivate::start (arg=0x1909930) at thread/qthread_unix.cpp:338
#14 0x00007f9d5c18de0f in start_thread () from /usr/lib/libpthread.so.0
#15 0x00007f9d5e02defd in clone () from /usr/lib/libc.so.6

Thread 5 (Thread 0x7f9d2bffe700 (LWP 3374)):
[KCrash Handler]
#6  0x00007f9d6062de56 in CollectionManager::trackForUrl(KUrl const&) () from /usr/lib/libamaroklib.so.1
#7  0x00007f9d605ee809 in ?? () from /usr/lib/libamaroklib.so.1
#8  0x00007f9d5b4965b1 in ThreadWeaver::JobRunHelper::runTheJob (this=this@entry=0x7f9d2bffdd90, th=th@entry=0x19c7b60, job=job@entry=0x17c2240) at /home/jorge/kdelibs/src/kdelibs-4.10.1/threadweaver/Weaver/Job.cpp:106
#9  0x00007f9d5b496775 in ThreadWeaver::Job::execute (this=0x17c2240, th=0x19c7b60) at /home/jorge/kdelibs/src/kdelibs-4.10.1/threadweaver/Weaver/Job.cpp:135
#10 0x00007f9d5b495bed in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7f9d2bffddf0, parent=0x17c1080, th=th@entry=0x19c7b60) at /home/jorge/kdelibs/src/kdelibs-4.10.1/threadweaver/Weaver/Thread.cpp:95
#11 0x00007f9d5b495ce6 in ThreadWeaver::Thread::run (this=0x19c7b60) at /home/jorge/kdelibs/src/kdelibs-4.10.1/threadweaver/Weaver/Thread.cpp:142
#12 0x00007f9d5e885ea3 in QThreadPrivate::start (arg=0x19c7b60) at thread/qthread_unix.cpp:338
#13 0x00007f9d5c18de0f in start_thread () from /usr/lib/libpthread.so.0
#14 0x00007f9d5e02defd in clone () from /usr/lib/libc.so.6

Thread 4 (Thread 0x7f9d2b7fd700 (LWP 3375)):
#0  0x00007f9d5e026d53 in select () from /usr/lib/libc.so.6
#1  0x00007f9d4c614640 in ?? () from /usr/lib/libsopranoclient.so.1
#2  0x00007f9d4c619161 in ?? () from /usr/lib/libsopranoclient.so.1
#3  0x00007f9d4c615d99 in Soprano::Client::LocalSocketClient::connect(QString const&) () from /usr/lib/libsopranoclient.so.1
#4  0x00007f9d37c3f412 in ?? () from /usr/lib/libnepomukcore.so.4
#5  0x00007f9d37c32884 in ?? () from /usr/lib/libnepomukcore.so.4
#6  0x00007f9d37c3306a in ?? () from /usr/lib/libnepomukcore.so.4
#7  0x00007f9d37c44bb7 in Nepomuk2::Resource::hasType(QUrl const&) const () from /usr/lib/libnepomukcore.so.4
#8  0x00007f9d37ef2635 in ?? () from /usr/lib/kde4/amarok_collection-nepomukcollection.so
#9  0x00007f9d6062de59 in CollectionManager::trackForUrl(KUrl const&) () from /usr/lib/libamaroklib.so.1
#10 0x00007f9d605ee809 in ?? () from /usr/lib/libamaroklib.so.1
#11 0x00007f9d5b4965b1 in ThreadWeaver::JobRunHelper::runTheJob (this=this@entry=0x7f9d2b7fcd90, th=th@entry=0x1b97f30, job=job@entry=0x17aaa50) at /home/jorge/kdelibs/src/kdelibs-4.10.1/threadweaver/Weaver/Job.cpp:106
#12 0x00007f9d5b496775 in ThreadWeaver::Job::execute (this=0x17aaa50, th=0x1b97f30) at /home/jorge/kdelibs/src/kdelibs-4.10.1/threadweaver/Weaver/Job.cpp:135
#13 0x00007f9d5b495bed in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x7f9d2b7fcdf0, parent=0x17c1080, th=th@entry=0x1b97f30) at /home/jorge/kdelibs/src/kdelibs-4.10.1/threadweaver/Weaver/Thread.cpp:95
#14 0x00007f9d5b495ce6 in ThreadWeaver::Thread::run (this=0x1b97f30) at /home/jorge/kdelibs/src/kdelibs-4.10.1/threadweaver/Weaver/Thread.cpp:142
#15 0x00007f9d5e885ea3 in QThreadPrivate::start (arg=0x1b97f30) at thread/qthread_unix.cpp:338
#16 0x00007f9d5c18de0f in start_thread () from /usr/lib/libpthread.so.0
#17 0x00007f9d5e02defd in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7f9d2a7b0700 (LWP 3388)):
#0  0x00007f9d5c191954 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f9d533f2c05 in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007f9d533f2c59 in ?? () from /usr/lib/libQtWebKit.so.4
#3  0x00007f9d5c18de0f in start_thread () from /usr/lib/libpthread.so.0
#4  0x00007f9d5e02defd in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7f9c27fff700 (LWP 3660)):
#0  0x00007f9d5c191954 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f9d53139169 in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007f9d5342138e in ?? () from /usr/lib/libQtWebKit.so.4
#3  0x00007f9d5c18de0f in start_thread () from /usr/lib/libpthread.so.0
#4  0x00007f9d5e02defd in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7f9d6183d780 (LWP 3319)):
#0  0x00007f9d3889e8b0 in Proc_table_intact::~Proc_table_intact() () from /usr/lib/libmysqld.so.18
#1  0x00007f9d5df7ce51 in __run_exit_handlers () from /usr/lib/libc.so.6
#2  0x00007f9d5df7ced5 in exit () from /usr/lib/libc.so.6
#3  0x00007f9d5df66a1c in __libc_start_main () from /usr/lib/libc.so.6
#4  0x000000000040bbdd in _start ()

Possible duplicates by query: bug 316448, bug 315672, bug 315270, bug 314364, bug 314163.

Reported using DrKonqi
Comment 1 Myriam Schweingruber 2013-03-27 17:49:24 UTC
We need debugging symbols for this backtrace, you will have to recompile Amarok with debugging symbols and provide a new backtrace.
Comment 2 Jorge Barroso Barea 2013-03-27 20:54:20 UTC
Created attachment 78432 [details]
New Traces

I was already doing it. Now, traces are different, or, at least, I think so.
Although that, I think they are related because those errors started when my distribution moved to mariadb, theres also an image of the error window that I'm going to attach on a new comment bellow
Comment 3 Jorge Barroso Barea 2013-03-27 20:55:28 UTC
Created attachment 78433 [details]
Error message thown by amarok
Comment 4 Myriam Schweingruber 2013-03-27 22:14:58 UTC
(In reply to comment #3)
> Created attachment 78433 [details]
> Error message thown by amarok

Backtrace from attachment. Please always past those in the comment, esle it is not searchable in the database:

Thread 1 (Thread 0x7effa380a780 (LWP 28832)):
[KCrash Handler]
#6  0x00007eff9ff7b2c5 in raise () from /usr/lib/libc.so.6
#7  0x00007eff9ff7c748 in abort () from /usr/lib/libc.so.6
#8  0x00007effa087d066 in qt_message_output (msgType=msgType@entry=QtFatalMsg, buf=<optimized out>) at global/qglobal.cpp:2323
#9  0x00007effa087d1ba in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, msg=msg@entry=0x7effa09e0e58 "ASSERT: \"%s\" in file %s, line %d", ap=ap@entry=0x7fff9de12f88) at global/qglobal.cpp:2369
#10 0x00007effa087d2ff in qFatal (msg=msg@entry=0x7effa09e0e58 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2552
#11 0x00007effa087d34a in qt_assert (assertion=<optimized out>, file=<optimized out>, line=<optimized out>) at global/qglobal.cpp:2018
#12 0x00007eff777b0c78 in Collections::SqlCollection::mountPointManager (this=0x1352e60) at /home/jorge/Documentos/CompManual/amarok/src/amarok-2.7.0/src/core-impl/collections/db/sql/SqlCollection.cpp:273
#13 0x00007eff777a9b49 in ScanManager::addDirToList (this=this@entry=0x114cf80, directory=...) at /home/jorge/Documentos/CompManual/amarok/src/amarok-2.7.0/src/core-impl/collections/db/ScanManager.cpp:180
#14 0x00007eff777a9d1e in ScanManager::requestIncrementalScan (this=this@entry=0x114cf80, directory=...) at /home/jorge/Documentos/CompManual/amarok/src/amarok-2.7.0/src/core-impl/collections/db/ScanManager.cpp:149
#15 0x00007eff777a8d8a in ScanManager::checkForDirectoryChanges (this=this@entry=0x114cf80) at /home/jorge/Documentos/CompManual/amarok/src/amarok-2.7.0/src/core-impl/collections/db/ScanManager.cpp:292
#16 0x00007eff777aa228 in ScanManager::qt_static_metacall (_o=0x114cf80, _c=<optimized out>, _id=<optimized out>, _a=0x7fff9de13250) at /home/jorge/Documentos/CompManual/amarok/src/build/src/core-impl/collections/db/sql/ScanManager.moc:98
#17 0x00007effa0993f4f in QMetaObject::activate (sender=0x1800570, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3539
#18 0x00007effa09ddaa0 in QTimer::timeout (this=<optimized out>) at .moc/debug-shared/moc_qtimer.cpp:148
#19 0x00007effa099b797 in QTimer::timerEvent (this=0x1800570, e=<optimized out>) at kernel/qtimer.cpp:280
#20 0x00007effa0992d0f in QObject::event (this=0x1800570, e=<optimized out>) at kernel/qobject.cpp:1156
#21 0x00007effa1399336 in QApplicationPrivate::notify_helper (this=this@entry=0x11527d0, receiver=receiver@entry=0x1800570, e=e@entry=0x7fff9de13740) at kernel/qapplication.cpp:4562
#22 0x00007effa13a135d in QApplication::notify (this=0x7fff9de16dc0, receiver=0x1800570, e=0x7fff9de13740) at kernel/qapplication.cpp:3944
#23 0x00007effa31c00be in KApplication::notify (this=0x7fff9de16dc0, receiver=0x1800570, event=0x7fff9de13740) at /home/jorge/kdelibs/src/kdelibs-4.10.1/kdeui/kernel/kapplication.cpp:311
#24 0x00007effa097dd02 in QCoreApplication::notifyInternal (this=0x7fff9de16dc0, receiver=0x1800570, event=0x7fff9de13740) at kernel/qcoreapplication.cpp:946
#25 0x00007effa09af99f in sendEvent (event=0x7fff9de13740, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#26 QTimerInfoList::activateTimers (this=0x1153080) at kernel/qeventdispatcher_unix.cpp:622
#27 0x00007effa09ac1e6 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:186
#28 0x00007effa09ac20d in idleTimerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:233
#29 0x00007eff9915b845 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#30 0x00007eff9915bb78 in ?? () from /usr/lib/libglib-2.0.so.0
#31 0x00007eff9915bc34 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#32 0x00007effa09ac8a5 in QEventDispatcherGlib::processEvents (this=0xfbdad0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#33 0x00007effa143c4f6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#34 0x00007effa097c508 in QEventLoop::processEvents (this=this@entry=0x7fff9de139c0, flags=...) at kernel/qeventloop.cpp:149
#35 0x00007effa097c745 in QEventLoop::exec (this=0x7fff9de139c0, flags=...) at kernel/qeventloop.cpp:204
#36 0x00007effa186b076 in QDialog::exec (this=0x114e750) at dialogs/qdialog.cpp:554
#37 0x00007effa3135f09 in KMessageBox::createKMessageBox (dialog=dialog@entry=0x114e750, icon=..., text=..., strlist=..., ask=..., checkboxReturn=0x0, options=..., details=..., notifyType=notifyType@entry=QMessageBox::Critical) at /home/jorge/kdelibs/src/kdelibs-4.10.1/kdeui/dialogs/kmessagebox.cpp:344
#38 0x00007effa31363f5 in KMessageBox::createKMessageBox (dialog=dialog@entry=0x114e750, icon=icon@entry=QMessageBox::Critical, text=..., strlist=..., ask=..., checkboxReturn=checkboxReturn@entry=0x0, options=..., details=...) at /home/jorge/kdelibs/src/kdelibs-4.10.1/kdeui/dialogs/kmessagebox.cpp:159
#39 0x00007effa3136de8 in KMessageBox::errorListWId (parent_id=0, text=..., strlist=..., caption=..., options=...) at /home/jorge/kdelibs/src/kdelibs-4.10.1/kdeui/dialogs/kmessagebox.cpp:854
#40 0x00007effa3136f76 in KMessageBox::error (parent=0x17ac8a0, text=..., caption=..., options=...) at /home/jorge/kdelibs/src/kdelibs-4.10.1/kdeui/dialogs/kmessagebox.cpp:821
#41 0x00007eff777b2c4d in Collections::SqlCollection::SqlCollection (this=<optimized out>, id=..., prettyName=..., storage=0x17bb7b0) at /home/jorge/Documentos/CompManual/amarok/src/amarok-2.7.0/src/core-impl/collections/db/sql/SqlCollection.cpp:192
#42 0x00007eff777b530f in Collections::SqlCollectionFactory::createSqlCollection (this=<optimized out>, id=..., prettyName=..., storage=0x17bb7b0) at /home/jorge/Documentos/CompManual/amarok/src/amarok-2.7.0/src/core-impl/collections/db/sql/SqlCollectionFactory.cpp:33
#43 0x00007eff77a35cba in Collections::MySqlEmbeddedCollectionFactory::init (this=0x130bfe0) at /home/jorge/Documentos/CompManual/amarok/src/amarok-2.7.0/src/core-impl/collections/db/sql/mysqlecollection/MySqlEmbeddedCollection.cpp:35
#44 0x00007effa25c114d in CollectionManager::loadPlugins (this=this@entry=0x17abac0, factories=...) at /home/jorge/Documentos/CompManual/amarok/src/amarok-2.7.0/src/core-impl/collections/support/CollectionManager.cpp:204
#45 0x00007effa25c1452 in CollectionManager::init (this=0x17abac0, factories=...) at /home/jorge/Documentos/CompManual/amarok/src/amarok-2.7.0/src/core-impl/collections/support/CollectionManager.cpp:172
#46 0x00007effa27244a4 in Plugins::PluginManager::init (this=this@entry=0x17ad8d0) at /home/jorge/Documentos/CompManual/amarok/src/amarok-2.7.0/src/PluginManager.cpp:82
#47 0x00007effa2724834 in Plugins::PluginManager::PluginManager (this=0x17ad8d0, parent=<optimized out>) at /home/jorge/Documentos/CompManual/amarok/src/amarok-2.7.0/src/PluginManager.cpp:64
#48 0x00007effa2724974 in Plugins::PluginManager::instance () at /home/jorge/Documentos/CompManual/amarok/src/amarok-2.7.0/src/PluginManager.cpp:43
#49 0x00007effa2719781 in MainWindow::MainWindow (this=0x17ac8a0) at /home/jorge/Documentos/CompManual/amarok/src/amarok-2.7.0/src/MainWindow.cpp:142
#50 0x00007effa26fc76d in App::continueInit (this=this@entry=0x7fff9de16dc0) at /home/jorge/Documentos/CompManual/amarok/src/amarok-2.7.0/src/App.cpp:546
#51 0x00007effa26fd52c in App::App (this=0x7fff9de16dc0) at /home/jorge/Documentos/CompManual/amarok/src/amarok-2.7.0/src/App.cpp:180
#52 0x000000000040875c in main (argc=0, argv=<optimized out>) at /home/jorge/Documentos/CompManual/amarok/src/amarok-2.7.0/src/main.cpp:327
Comment 5 Myriam Schweingruber 2013-03-27 22:19:01 UTC
There appears to be some miscommunication in Arch with the switch to MariaDB, please check if you have everything installed correctly:

pacman -S mariadb libmariadbclient mariadb-clients
Comment 6 Myriam Schweingruber 2013-03-29 16:16:27 UTC

*** This bug has been marked as a duplicate of bug 317370 ***