Bug 247937 - Amarok crashes at first start [@ MySqlStorage::initThreadInitializer]
Summary: Amarok crashes at first start [@ MySqlStorage::initThreadInitializer]
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: Collections/Local (show other bugs)
Version: 2.3.1
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords: regression
: 250867 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-08-15 11:19 UTC by tom
Modified: 2013-02-21 06:58 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (8.34 KB, text/plain)
2010-08-18 02:50 UTC, Michal Donat
Details
New crash information added by DrKonqi (13.87 KB, text/plain)
2013-02-21 05:54 UTC, morvau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tom 2010-08-15 11:19:55 UTC
Application: amarok (2.3.1)
KDE Platform Version: 4.5.00 (KDE 4.5.0)
Qt Version: 4.6.3
Operating System: Linux 2.6.34-12-desktop x86_64
Distribution: "openSUSE 11.3 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:
I startet Amarok and got a crashreport emediatly. If i start it a second time there are no errors.

The crash can be reproduced every time.

-- Backtrace:
Application: Amarok (amarok), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f808b6197a0 (LWP 4687))]

Thread 13 (Thread 0x7f8040d7a710 (LWP 4888)):
#0  0x00007f808672439c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f8071737149 in vlc_cond_wait (p_condvar=<value optimized out>, p_mutex=<value optimized out>) at misc/pthread.c:359
#2  0x00007f80716be19f in LoopRequest (data=0x91a528) at playlist/thread.c:539
#3  Thread (data=0x91a528) at playlist/thread.c:586
#4  0x00007f808671fa4f in start_thread () from /lib64/libpthread.so.0
#5  0x00007f80882cc82d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7f803f152710 (LWP 5025)):
#0  0x00007f808672439c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f803f62a3f9 in os_event_wait_low () from /usr/lib64/libmysqld.so.0
#2  0x00007f803f6290b6 in os_aio_simulated_handle () from /usr/lib64/libmysqld.so.0
#3  0x00007f803f5e8b5a in fil_aio_wait () from /usr/lib64/libmysqld.so.0
#4  0x00007f803f663b90 in ?? () from /usr/lib64/libmysqld.so.0
#5  0x00007f808671fa4f in start_thread () from /lib64/libpthread.so.0
#6  0x00007f80882cc82d in clone () from /lib64/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7f803d4d3710 (LWP 5027)):
#0  0x00007f808672439c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f803f62a3f9 in os_event_wait_low () from /usr/lib64/libmysqld.so.0
#2  0x00007f803f6290b6 in os_aio_simulated_handle () from /usr/lib64/libmysqld.so.0
#3  0x00007f803f5e8b5a in fil_aio_wait () from /usr/lib64/libmysqld.so.0
#4  0x00007f803f663b90 in ?? () from /usr/lib64/libmysqld.so.0
#5  0x00007f808671fa4f in start_thread () from /lib64/libpthread.so.0
#6  0x00007f80882cc82d in clone () from /lib64/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f803ccd2710 (LWP 5028)):
#0  0x00007f808672439c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f803f62a3f9 in os_event_wait_low () from /usr/lib64/libmysqld.so.0
#2  0x00007f803f6290b6 in os_aio_simulated_handle () from /usr/lib64/libmysqld.so.0
#3  0x00007f803f5e8b5a in fil_aio_wait () from /usr/lib64/libmysqld.so.0
#4  0x00007f803f663b90 in ?? () from /usr/lib64/libmysqld.so.0
#5  0x00007f808671fa4f in start_thread () from /lib64/libpthread.so.0
#6  0x00007f80882cc82d in clone () from /lib64/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f803c4d1710 (LWP 5029)):
#0  0x00007f808672439c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f803f62a3f9 in os_event_wait_low () from /usr/lib64/libmysqld.so.0
#2  0x00007f803f6290b6 in os_aio_simulated_handle () from /usr/lib64/libmysqld.so.0
#3  0x00007f803f5e8b5a in fil_aio_wait () from /usr/lib64/libmysqld.so.0
#4  0x00007f803f663b90 in ?? () from /usr/lib64/libmysqld.so.0
#5  0x00007f808671fa4f in start_thread () from /lib64/libpthread.so.0
#6  0x00007f80882cc82d in clone () from /lib64/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f803afb9710 (LWP 5051)):
#0  0x00007f80882c5e13 in select () from /lib64/libc.so.6
#1  0x00007f803f62abfb in os_thread_sleep () from /usr/lib64/libmysqld.so.0
#2  0x00007f803f66282a in srv_lock_timeout_thread () from /usr/lib64/libmysqld.so.0
#3  0x00007f808671fa4f in start_thread () from /lib64/libpthread.so.0
#4  0x00007f80882cc82d in clone () from /lib64/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f803a7b8710 (LWP 5052)):
#0  0x00007f80882c5e13 in select () from /lib64/libc.so.6
#1  0x00007f803f62abfb in os_thread_sleep () from /usr/lib64/libmysqld.so.0
#2  0x00007f803f662b45 in srv_error_monitor_thread () from /usr/lib64/libmysqld.so.0
#3  0x00007f808671fa4f in start_thread () from /lib64/libpthread.so.0
#4  0x00007f80882cc82d in clone () from /lib64/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f8039fb7710 (LWP 5053)):
#0  0x00007f80882c5e13 in select () from /lib64/libc.so.6
#1  0x00007f803f62abfb in os_thread_sleep () from /usr/lib64/libmysqld.so.0
#2  0x00007f803f662492 in srv_monitor_thread () from /usr/lib64/libmysqld.so.0
#3  0x00007f808671fa4f in start_thread () from /lib64/libpthread.so.0
#4  0x00007f80882cc82d in clone () from /lib64/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f80397b6710 (LWP 5054)):
#0  0x00007f808672439c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f803f62a3f9 in os_event_wait_low () from /usr/lib64/libmysqld.so.0
#2  0x00007f803f663182 in srv_master_thread () from /usr/lib64/libmysqld.so.0
#3  0x00007f808671fa4f in start_thread () from /lib64/libpthread.so.0
#4  0x00007f80882cc82d in clone () from /lib64/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f8035237710 (LWP 5281)):
#0  0x00007f808672439c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f808387d2a0 in WTF::TCMalloc_PageHeap::scavengerThread() () from /usr/lib64/libQtWebKit.so.4
#2  0x00007f808387d2d9 in WTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /usr/lib64/libQtWebKit.so.4
#3  0x00007f808671fa4f in start_thread () from /lib64/libpthread.so.0
#4  0x00007f80882cc82d in clone () from /lib64/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f803362f710 (LWP 5298)):
#0  0x00007f808672439c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f8088af42bb in wait (this=<value optimized out>, mutex=0x1e0dfe0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1e0dfe0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f80853c93f6 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1f359b0, th=0x1f36060) at /usr/src/debug/kdelibs-4.5.0/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f80853cbe35 in waitForAvailableJob (this=0x1f35730, th=0x1f36060) at /usr/src/debug/kdelibs-4.5.0/threadweaver/Weaver/WeaverImpl.cpp:356
#5  ThreadWeaver::WorkingHardState::applyForWork (this=0x1f35730, th=0x1f36060) at /usr/src/debug/kdelibs-4.5.0/threadweaver/Weaver/WorkingHardState.cpp:71
#6  0x00007f80853c97ef in ThreadWeaver::ThreadRunHelper::run (this=0x7f803362edf0, parent=0x1f359b0, th=0x1f36060) at /usr/src/debug/kdelibs-4.5.0/threadweaver/Weaver/Thread.cpp:87
#7  0x00007f80853c9878 in ThreadWeaver::Thread::run (this=0x1f36060) at /usr/src/debug/kdelibs-4.5.0/threadweaver/Weaver/Thread.cpp:142
#8  0x00007f8088af3bf5 in QThreadPrivate::start (arg=0x1f36060) at thread/qthread_unix.cpp:248
#9  0x00007f808671fa4f in start_thread () from /lib64/libpthread.so.0
#10 0x00007f80882cc82d in clone () from /lib64/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f8032e2e710 (LWP 5299)):
[KCrash Handler]
#6  0x00007f8088277984 in strcmp () from /lib64/libc.so.6
#7  0x00007f8088f96f7c in KConfig::isGroupImmutableImpl(QByteArray const&) const () from /usr/lib64/libkdecore.so.5
#8  0x00007f8088f9a172 in KConfigGroup::KConfigGroup(KSharedPtr<KSharedConfig> const&, char const*) () from /usr/lib64/libkdecore.so.5
#9  0x00007f8088f9a26a in KSharedConfig::groupImpl(QByteArray const&) () from /usr/lib64/libkdecore.so.5
#10 0x00007f8088f99a2c in KConfigBase::group(char const*) () from /usr/lib64/libkdecore.so.5
#11 0x00007f80406f2b43 in debugEnabled (this=0xccd1d0, statement=...) at /usr/src/debug/amarok-2.3.1/src/core/support/Debug.h:105
#12 dbgstream (this=0xccd1d0, statement=...) at /usr/src/debug/amarok-2.3.1/src/core/support/Debug.h:113
#13 debug (this=0xccd1d0, statement=...) at /usr/src/debug/amarok-2.3.1/src/core/support/Debug.h:133
#14 ThreadInitializer (this=0xccd1d0, statement=...) at /usr/src/debug/amarok-2.3.1/src/core-impl/collections/sqlcollection/mysql-shared/MySqlStorage.cpp:53
#15 init (this=0xccd1d0, statement=...) at /usr/src/debug/amarok-2.3.1/src/core-impl/collections/sqlcollection/mysql-shared/MySqlStorage.cpp:77
#16 initThreadInitializer (this=0xccd1d0, statement=...) at /usr/src/debug/amarok-2.3.1/src/core-impl/collections/sqlcollection/mysql-shared/MySqlStorage.cpp:276
#17 MySqlStorage::query (this=0xccd1d0, statement=...) at /usr/src/debug/amarok-2.3.1/src/core-impl/collections/sqlcollection/mysql-shared/MySqlStorage.cpp:112
#18 0x00007f80404a3e2f in Collections::SqlQueryMakerInternal::run (this=0x1f36880) at /usr/src/debug/amarok-2.3.1/src/core-impl/collections/sqlcollection/SqlQueryMakerInternal.cpp:48
#19 0x00007f804049f51d in SqlWorkerThread::run (this=0x1f36cf0) at /usr/src/debug/amarok-2.3.1/src/core-impl/collections/sqlcollection/SqlQueryMaker.cpp:65
#20 0x00007f80853c9d75 in ThreadWeaver::JobRunHelper::runTheJob (this=0x7f8032e2dd60, th=0x1f38a80, job=0x1f36cf0) at /usr/src/debug/kdelibs-4.5.0/threadweaver/Weaver/Job.cpp:106
#21 0x00007f80853c9eae in ThreadWeaver::Job::execute (this=0x1f36cf0, th=0x1f38a80) at /usr/src/debug/kdelibs-4.5.0/threadweaver/Weaver/Job.cpp:135
#22 0x00007f80853c97bf in ThreadWeaver::ThreadRunHelper::run (this=0x7f8032e2ddf0, parent=0x1f359b0, th=0x1f38a80) at /usr/src/debug/kdelibs-4.5.0/threadweaver/Weaver/Thread.cpp:95
#23 0x00007f80853c9878 in ThreadWeaver::Thread::run (this=0x1f38a80) at /usr/src/debug/kdelibs-4.5.0/threadweaver/Weaver/Thread.cpp:142
#24 0x00007f8088af3bf5 in QThreadPrivate::start (arg=0x1f38a80) at thread/qthread_unix.cpp:248
#25 0x00007f808671fa4f in start_thread () from /lib64/libpthread.so.0
#26 0x00007f80882cc82d in clone () from /lib64/libc.so.6
#27 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f808b6197a0 (LWP 4687)):
#0  0x00007f80882c36b3 in poll () from /lib64/libc.so.6
#1  0x00007f807f0a5c0a in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007f807f0a6169 in ?? () from /usr/lib64/libxcb.so.1
#3  0x00007f807f0a61f7 in xcb_writev () from /usr/lib64/libxcb.so.1
#4  0x00007f808788d776 in _XSend (dpy=0x7a9fc0, data=<value optimized out>, size=<value optimized out>) at xcb_io.c:339
#5  0x00007f808788d945 in _XFlush (dpy=0x7a9fc0) at xcb_io.c:356
#6  0x00007f80878654ba in XFlush (dpy=0x7a9fc0) at Flush.c:41
#7  0x00007f808958f00f in QWidget::setCursor (this=0x2018110, cursor=...) at kernel/qwidget.cpp:4823
#8  0x00007f8089930df4 in QLineEditPrivate::init (this=<value optimized out>, txt=...) at widgets/qlineedit_p.cpp:185
#9  0x00007f808993253f in QLineEdit::QLineEdit (this=0x2018110, parent=0x2013740) at widgets/qlineedit.cpp:266
#10 0x00007f808b0c7509 in KLineEdit::KLineEdit (this=0x2018110, parent=<value optimized out>) at /usr/src/debug/kdelibs-4.5.0/kdeui/widgets/klineedit.cpp:224
#11 0x00007f808a99c399 in Amarok::LineEdit::LineEdit (this=0x2018110, parent=<value optimized out>) at /usr/src/debug/amarok-2.3.1/src/widgets/LineEdit.cpp:25
#12 0x00007f808a9a9e00 in SearchWidget::init (this=0x2017680, parent=<value optimized out>, advanced=false) at /usr/src/debug/amarok-2.3.1/src/widgets/SearchWidget.cpp:65
#13 0x00007f808a9aa1da in SearchWidget::SearchWidget (this=0x2017680, parent=0x2013200, caller=0x2012af0, advanced=false) at /usr/src/debug/amarok-2.3.1/src/widgets/SearchWidget.cpp:41
#14 0x00007f808a95e34b in FileBrowser::FileBrowser (this=0x2012af0, name=<value optimized out>, parent=<value optimized out>)
    at /usr/src/debug/amarok-2.3.1/src/browsers/filebrowser/FileBrowser.cpp:65
#15 0x00007f808a86ace4 in MainWindow::init (this=0xc93c60) at /usr/src/debug/amarok-2.3.1/src/MainWindow.cpp:352
#16 0x00007f808a86bea1 in MainWindow::MainWindow (this=0xc93c60) at /usr/src/debug/amarok-2.3.1/src/MainWindow.cpp:188
#17 0x00007f808a823955 in App::continueInit (this=0x7fffbe870550) at /usr/src/debug/amarok-2.3.1/src/App.cpp:650
#18 0x00007f808a826a7f in App::App (this=0x7fffbe870550) at /usr/src/debug/amarok-2.3.1/src/App.cpp:207
#19 0x00000000004081d5 in main (argc=1, argv=0x7fffbe8724b8) at /usr/src/debug/amarok-2.3.1/src/main.cpp:235

Possible duplicates by query: bug 227419.

Reported using DrKonqi
Comment 1 Myriam Schweingruber 2010-08-15 11:39:09 UTC
So this is a one-time crash that you can't reproduce? Looks like a badly initialized Database.
Comment 2 Piotr 2010-08-17 07:14:50 UTC
I can confirm it too. Amarok crashes once everytime I restart kubuntu. After that it is ok to the next system restart.
Comment 3 Myriam Schweingruber 2010-08-17 10:59:10 UTC
Piotr, do you have a backtrace? It might be a different issue...
Comment 4 Michal Donat 2010-08-18 02:50:24 UTC
Created attachment 50673 [details]
New crash information added by DrKonqi

amarok (2.3.1) on KDE Platform 4.5.00 (KDE 4.5.0) using Qt 4.6.3

- What I was doing when the application crashed:

I switched the display from external LCD (1920x1200) to internal laptop display (1440x900), Amarok crashed immediatelly after I started it.

The distro is Chakra GNU/Linux (Arch Linux & KDE4 based)

-- Backtrace (Reduced):
#7  0x00007f8cf0e21714 in KConfigGroup::KConfigGroup(KSharedPtr<KSharedConfig> const&, char const*) () from /usr/lib/libkdecore.so.5
#8  0x00007f8cf0e351ca in KSharedConfig::groupImpl(QByteArray const&) () from /usr/lib/libkdecore.so.5
#9  0x00007f8cf0e2078c in KConfigBase::group(char const*) () from /usr/lib/libkdecore.so.5
#10 0x00007f8ccee82c3c in MySqlStorage::initThreadInitializer() () from /usr/lib/kde4/amarok_collection-mysqlservercollection.so
#11 0x00007f8ccee881a5 in MySqlServerStorage::query(QString const&) () from /usr/lib/kde4/amarok_collection-mysqlservercollection.so
Comment 5 Myriam Schweingruber 2010-08-18 10:09:48 UTC
Thank you for the feedback.
Comment 6 Myriam Schweingruber 2010-08-18 10:10:19 UTC
Setting status correctly, sorry for the noise.
Comment 7 Piotr 2010-08-23 07:16:46 UTC
Hi, sorry I didn't provide backtrace, but after purgeing and reinstalling Amarok problem disappeared. If I'll be able to reproduce bug again, I'll post the trace right away.
Comment 8 Myriam Schweingruber 2010-09-11 16:06:03 UTC
*** Bug 250867 has been marked as a duplicate of this bug. ***
Comment 9 Ralf Engels 2011-01-09 11:38:54 UTC
Hi all,
we need a new backtrace to be able to reproduce it.
For 2.4 a lot has changed for the SqlCollection.

Also the comment from Piotr indicates that a newer version fixes this problem so I will remove the release_blocker keyword for this error.
Comment 10 Ralf Engels 2011-04-11 18:40:37 UTC
Changing status to waitingforinfo.
Comment 11 Myriam Schweingruber 2011-04-26 09:10:55 UTC
Closing for lack of feedback. This is most likely solved now
Comment 12 morvau 2013-02-21 05:54:43 UTC
Created attachment 77482 [details]
New crash information added by DrKonqi

amarok (2.7.0) on KDE Platform 4.10.00 using Qt 4.8.2

- What I was doing when the application crashed:

I just start the computer with amarok autolaunch. Amarok crashed without any action of me on the computer.

-- Backtrace (Reduced):
#8  0x005fe9cb in qstrcmp (str1=..., str2=...) at tools/qbytearray.cpp:346
#9  0x002b250f in operator< (k2=..., k1=...) at ../../kdecore/config/kconfigdata.h:122
#10 qMapLessThanKey<KEntryKey> (key2=..., key1=...) at /usr/include/qt4/QtCore/qmap.h:107
#11 findNode (akey=..., this=0x8624390) at /usr/include/qt4/QtCore/qmap.h:487
#12 find (akey=..., this=0x8624390) at /usr/include/qt4/QtCore/qmap.h:608
Comment 13 Myriam Schweingruber 2013-02-21 06:58:26 UTC
(In reply to comment #12)
> Created attachment 77482 [details]
> New crash information added by DrKonqi
> 
> amarok (2.7.0) on KDE Platform 4.10.00 using Qt 4.8.2
> 
> - What I was doing when the application crashed:
> 
> I just start the computer with amarok autolaunch. Amarok crashed without any
> action of me on the computer.
> 
> -- Backtrace (Reduced):
> #8  0x005fe9cb in qstrcmp (str1=..., str2=...) at tools/qbytearray.cpp:346
> #9  0x002b250f in operator< (k2=..., k1=...) at
> ../../kdecore/config/kconfigdata.h:122
> #10 qMapLessThanKey<KEntryKey> (key2=..., key1=...) at
> /usr/include/qt4/QtCore/qmap.h:107
> #11 findNode (akey=..., this=0x8624390) at /usr/include/qt4/QtCore/qmap.h:487
> #12 find (akey=..., this=0x8624390) at /usr/include/qt4/QtCore/qmap.h:608

Your backtrace has nothing in common with this bug, please file a new one if this is reproducible.