Bug 193330 - Crash in MassStorageDeviceHandlerFactory::createHandler()
Summary: Crash in MassStorageDeviceHandlerFactory::createHandler()
Status: RESOLVED WORKSFORME
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: 2.3-GIT
Platform: Unlisted Binaries Linux
: HI crash
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords: release_blocker
: 194148 194843 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-05-20 09:52 UTC by Xavier Fung
Modified: 2009-12-09 11:34 UTC (History)
4 users (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 Xavier Fung 2009-05-20 09:52:49 UTC
Application that crashed: amarok
Version of the application: 2.1-SVN
KDE Version: 4.2.86 (KDE 4.2.86 (KDE 4.3 >= 20090514))
Qt Version: 4.5.1
Operating System: Linux 2.6.30-5-generic i686
Distribution: Ubuntu karmic (development branch)

What I was doing when the application crashed:
Amarok is built from SVN and all other KDE modules and QT are also self-built. Amarok starts and simply crashes with the crash reporting assistant comes up immediately. Judging from the stacktrace it is related to phonon or Xine library. 
Starting Amarok again from the K-menu after this crash is successful.

 -- Backtrace:
Application: Amarok (amarok), signal: Segmentation fault
[Current thread is 0 (LWP 5698)]

Thread 14 (Thread 0xb5ff5b90 (LWP 5699)):
#0  0x00b86422 in __kernel_vsyscall ()
#1  0x00521412 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x055d1ae3 in ?? () from /usr/lib/libxine.so.1

Thread 13 (Thread 0xb57f4b90 (LWP 5700)):
#0  0x00b86422 in __kernel_vsyscall ()
#1  0x09c09c37 in poll () from /lib/tls/i686/cmov/libc.so.6
#2  0x01db22ab in g_poll () from /usr/lib/libglib-2.0.so.0
#3  0x01da5503 in ?? () from /usr/lib/libglib-2.0.so.0
#4  0x01da56ea in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#5  0x05436939 in QEventDispatcherGlib::processEvents (this=0x9d66038, flags={i = 36}) at /media/disk/kdesvn/qt-copy/src/corelib/kernel/qeventdispatcher_glib.cpp:326
#6  0x0540ca0f in QEventLoop::processEvents (this=0xb57f42b4, flags=) at /media/disk/kdesvn/qt-copy/src/corelib/kernel/qeventloop.cpp:149
#7  0x0540cdf8 in QEventLoop::exec (this=0xb57f42b4, flags={i = 0}) at /media/disk/kdesvn/qt-copy/src/corelib/kernel/qeventloop.cpp:200
#8  0x05326037 in QThread::exec (this=0x9df4c50) at /media/disk/kdesvn/qt-copy/src/corelib/thread/qthread.cpp:487
#9  0x02c617fe in Phonon::Xine::XineThread::run (this=0x9df4c50) at /media/disk/kdesvn/kdesupport/phonon/xine/xinethread.cpp:143
#10 0x05328f1e in QThreadPrivate::start (arg=0x9df4c50) at /media/disk/kdesvn/qt-copy/src/corelib/thread/qthread_unix.cpp:189
#11 0x0051d4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#12 0x09c145ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 12 (Thread 0xb0ff2b90 (LWP 5706)):
#0  0x00b86422 in __kernel_vsyscall ()
#1  0x09c09c37 in poll () from /lib/tls/i686/cmov/libc.so.6
#2  0x09332b19 in ?? () from /usr/lib/xine/plugins/1.26/xineplug_ao_out_alsa.so
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 11 (Thread 0xb07f1b90 (LWP 5707)):
#0  0x00b86422 in __kernel_vsyscall ()
#1  0x005210e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x055e2d8e in ?? () from /usr/lib/libxine.so.1
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 10 (Thread 0xaffcfb90 (LWP 5708)):
#0  0x00b86422 in __kernel_vsyscall ()
#1  0x005210e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x055e2d8e in ?? () from /usr/lib/libxine.so.1
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 9 (Thread 0xb485cb90 (LWP 5710)):
#0  0x00b86422 in __kernel_vsyscall ()
#1  0x005210e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb4ce552e in os_event_wait_low () from /media/disk/kde/lib/kde4/libamarok_collection-sqlcollection.so
#3  0xb4ce2201 in os_aio_simulated_handle () from /media/disk/kde/lib/kde4/libamarok_collection-sqlcollection.so
#4  0xb4ca3cbd in fil_aio_wait () from /media/disk/kde/lib/kde4/libamarok_collection-sqlcollection.so
#5  0xb4b3509e in io_handler_thread () from /media/disk/kde/lib/kde4/libamarok_collection-sqlcollection.so
#6  0x0051d4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0x09c145ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 8 (Thread 0xb3544b90 (LWP 5711)):
#0  0x00b86422 in __kernel_vsyscall ()
#1  0x005210e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb4ce552e in os_event_wait_low () from /media/disk/kde/lib/kde4/libamarok_collection-sqlcollection.so
#3  0xb4ce2201 in os_aio_simulated_handle () from /media/disk/kde/lib/kde4/libamarok_collection-sqlcollection.so
#4  0xb4ca3cbd in fil_aio_wait () from /media/disk/kde/lib/kde4/libamarok_collection-sqlcollection.so
#5  0xb4b3509e in io_handler_thread () from /media/disk/kde/lib/kde4/libamarok_collection-sqlcollection.so
#6  0x0051d4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0x09c145ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 7 (Thread 0xb2d43b90 (LWP 5712)):
#0  0x00b86422 in __kernel_vsyscall ()
#1  0x005210e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb4ce552e in os_event_wait_low () from /media/disk/kde/lib/kde4/libamarok_collection-sqlcollection.so
#3  0xb4ce2201 in os_aio_simulated_handle () from /media/disk/kde/lib/kde4/libamarok_collection-sqlcollection.so
#4  0xb4ca3cbd in fil_aio_wait () from /media/disk/kde/lib/kde4/libamarok_collection-sqlcollection.so
#5  0xb4b3509e in io_handler_thread () from /media/disk/kde/lib/kde4/libamarok_collection-sqlcollection.so
#6  0x0051d4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0x09c145ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 6 (Thread 0xb2542b90 (LWP 5713)):
#0  0x00b86422 in __kernel_vsyscall ()
#1  0x005210e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb4ce552e in os_event_wait_low () from /media/disk/kde/lib/kde4/libamarok_collection-sqlcollection.so
#3  0xb4ce2201 in os_aio_simulated_handle () from /media/disk/kde/lib/kde4/libamarok_collection-sqlcollection.so
#4  0xb4ca3cbd in fil_aio_wait () from /media/disk/kde/lib/kde4/libamarok_collection-sqlcollection.so
#5  0xb4b3509e in io_handler_thread () from /media/disk/kde/lib/kde4/libamarok_collection-sqlcollection.so
#6  0x0051d4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0x09c145ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 5 (Thread 0xaf7ceb90 (LWP 5715)):
#0  0x00b86422 in __kernel_vsyscall ()
#1  0x09c0c901 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0xb4ce59fa in os_thread_sleep () from /media/disk/kde/lib/kde4/libamarok_collection-sqlcollection.so
#3  0xb4b315f0 in srv_lock_timeout_and_monitor_thread () from /media/disk/kde/lib/kde4/libamarok_collection-sqlcollection.so
#4  0x0051d4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#5  0x09c145ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 4 (Thread 0xaefcdb90 (LWP 5716)):
#0  0x00b86422 in __kernel_vsyscall ()
#1  0x09c0c901 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0xb4ce59fa in os_thread_sleep () from /media/disk/kde/lib/kde4/libamarok_collection-sqlcollection.so
#3  0xb4b30449 in srv_error_monitor_thread () from /media/disk/kde/lib/kde4/libamarok_collection-sqlcollection.so
#4  0x0051d4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#5  0x09c145ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (Thread 0xae7ccb90 (LWP 5717)):
#0  0x00b86422 in __kernel_vsyscall ()
#1  0x005210e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb4ce552e in os_event_wait_low () from /media/disk/kde/lib/kde4/libamarok_collection-sqlcollection.so
#3  0xb4b2f659 in srv_master_thread () from /media/disk/kde/lib/kde4/libamarok_collection-sqlcollection.so
#4  0x0051d4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#5  0x09c145ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xad8b7b90 (LWP 5718)):
#0  0x00b86422 in __kernel_vsyscall ()
#1  0x005210e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x05329ef2 in QWaitCondition::wait (this=0xa5634d8, mutex=0xa5634dc, time=4294967295) at /media/disk/kdesvn/qt-copy/src/corelib/thread/qwaitcondition_unix.cpp:87
#3  0xb49f5aa1 in XmlParseJob::run (this=0xa5634b8) at /media/disk/kdesvn/extragear-multimedia/amarok/src/collection/sqlcollection/ScanManager.cpp:631
#4  0x00b563f1 in ThreadWeaver::JobRunHelper::runTheJob (this=0xad8b727c, th=0x9fa4c58, job=0xa5634b8) at /media/disk/kdesvn/kdelibs/threadweaver/Weaver/Job.cpp:106
#5  0x00b56711 in ThreadWeaver::Job::execute (this=0xa5634b8, th=0x9fa4c58) at /media/disk/kdesvn/kdelibs/threadweaver/Weaver/Job.cpp:135
#6  0x00b555c2 in ThreadWeaver::ThreadRunHelper::run (this=0xad8b7304, parent=0x9fd57e8, th=0x9fa4c58) at /media/disk/kdesvn/kdelibs/threadweaver/Weaver/Thread.cpp:95
#7  0x00b55b49 in ThreadWeaver::Thread::run (this=0x9fa4c58) at /media/disk/kdesvn/kdelibs/threadweaver/Weaver/Thread.cpp:142
#8  0x05328f1e in QThreadPrivate::start (arg=0x9fa4c58) at /media/disk/kdesvn/qt-copy/src/corelib/thread/qthread_unix.cpp:189
#9  0x0051d4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#10 0x09c145ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb7f7f720 (LWP 5698)):
[KCrash Handler]
#6  0x03152b96 in MassStorageDeviceHandlerFactory::createHandler (this=0x9f8f848, device=@0xa583720, udi=@0xbf860b4c)
    at /media/disk/kdesvn/extragear-multimedia/amarok/src/collection/sqlcollection/device/massstorage/MassStorageDeviceHandler.cpp:142
#7  0x0094a249 in MountPointManager::createHandlerFromDevice (this=0xa578520, device=@0xa583720, udi=@0xbf860b4c) at /media/disk/kdesvn/extragear-multimedia/amarok/src/MountPointManager.cpp:520
#8  0x0094c4b7 in MountPointManager::init (this=0xa578520) at /media/disk/kdesvn/extragear-multimedia/amarok/src/MountPointManager.cpp:137
#9  0x0094c8b7 in MountPointManager (this=0xa578520) at /media/disk/kdesvn/extragear-multimedia/amarok/src/MountPointManager.cpp:80
#10 0x0094c945 in MountPointManager::instance () at /media/disk/kdesvn/extragear-multimedia/amarok/src/MountPointManager.cpp:54
#11 0xb49f39f5 in ScanManager::startFullScan (this=0x9fcad08) at /media/disk/kdesvn/extragear-multimedia/amarok/src/collection/sqlcollection/ScanManager.cpp:122
#12 0xb4a05d6e in SqlCollection::startFullScan (this=0x9fa56a8) at /media/disk/kdesvn/extragear-multimedia/amarok/src/collection/sqlcollection/SqlCollection.cpp:111
#13 0xb49e24dd in DatabaseUpdater::update (this=0x9fbb490) at /media/disk/kdesvn/extragear-multimedia/amarok/src/collection/sqlcollection/DatabaseUpdater.cpp:72
#14 0xb4a06421 in SqlCollection::init (this=0x9fa56a8) at /media/disk/kdesvn/extragear-multimedia/amarok/src/collection/sqlcollection/SqlCollection.cpp:95
#15 0xb4a2ebad in MySqlEmbeddedCollection (this=0x9fa56a8, id=@0xbf861008, prettyName=@0xbf86100c)
    at /media/disk/kdesvn/extragear-multimedia/amarok/src/collection/sqlcollection/MySqlEmbeddedCollection.cpp:171
#16 0xb4a060fe in SqlCollectionFactory::init (this=0x9e41b48) at /media/disk/kdesvn/extragear-multimedia/amarok/src/collection/sqlcollection/SqlCollection.cpp:70
#17 0x007ca1bd in CollectionManager::init (this=0x9e44a80) at /media/disk/kdesvn/extragear-multimedia/amarok/src/collection/CollectionManager.cpp:146
#18 0x007ca9b0 in CollectionManager (this=0x9e44a80) at /media/disk/kdesvn/extragear-multimedia/amarok/src/collection/CollectionManager.cpp:85
#19 0x007ca9f3 in CollectionManager::instance () at /media/disk/kdesvn/extragear-multimedia/amarok/src/collection/CollectionManager.cpp:65
#20 0x00749c21 in ServiceFactory (this=0x9fac900) at /media/disk/kdesvn/extragear-multimedia/amarok/src/services/ServiceBase.cpp:40
#21 0x0937ea1e in create_plugin () at /media/disk/kdesvn/extragear-multimedia/amarok/src/services/ampache/AmpacheService.h:37
#22 0x008b86ba in PluginManager::createFromService (service={d = 0x9f95358}) at /media/disk/kdesvn/extragear-multimedia/amarok/src/PluginManager.cpp:108
#23 0x0075eb45 in ServicePluginManager::collect (this=0x9f8f880) at /media/disk/kdesvn/extragear-multimedia/amarok/src/services/ServicePluginManager.cpp:67
#24 0x0075f593 in ServicePluginManager::instance () at /media/disk/kdesvn/extragear-multimedia/amarok/src/services/ServicePluginManager.cpp:34
#25 0x006eee6d in Model (this=0x9f9ecc0) at /media/disk/kdesvn/extragear-multimedia/amarok/src/playlist/PlaylistModel.cpp:87
#26 0x006ef8cf in Playlist::Model::instance () at /media/disk/kdesvn/extragear-multimedia/amarok/src/playlist/PlaylistModel.cpp:59
#27 0x006ef8eb in The::playlistModel () at /media/disk/kdesvn/extragear-multimedia/amarok/src/playlist/PlaylistModel.cpp:961
#28 0x00851a30 in StatusBar (this=0x9fcce08, parent=0x9e127f0) at /media/disk/kdesvn/extragear-multimedia/amarok/src/statusbar/StatusBar.cpp:93
#29 0x008add18 in MainWindow (this=0x9da52f0) at /media/disk/kdesvn/extragear-multimedia/amarok/src/MainWindow.cpp:134
#30 0x0088f06e in App::continueInit (this=0xbf86190c) at /media/disk/kdesvn/extragear-multimedia/amarok/src/App.cpp:595
#31 0x0088ff29 in App (this=0xbf86190c) at /media/disk/kdesvn/extragear-multimedia/amarok/src/App.cpp:201
#32 0x0804c42c in main (argc=1, argv=0xbf861e04) at /media/disk/kdesvn/extragear-multimedia/amarok/src/main.cpp:126
Comment 1 Mikko C. 2009-05-20 11:30:59 UTC
this was fixed in rev 966203 by mitchell
Comment 2 Mikko C. 2009-05-26 14:36:18 UTC
*** Bug 194148 has been marked as a duplicate of this bug. ***
Comment 3 Myriam Schweingruber 2009-06-01 11:25:14 UTC
*** Bug 194843 has been marked as a duplicate of this bug. ***
Comment 4 Mark Kretschmann 2009-06-27 15:16:17 UTC
This doesn't seem to be fixed. A user just got the same crash with current trunk:

Thread 1 (Thread 0x7f18a1d72850 (LWP 6934)):
[KCrash Handler]
#5  0x00007f189e94df05 in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6  0x00007f189e94fa73 in abort () at abort.c:88
#7  0x00007f189f6a1605 in qt_message_output (msgType=QtFatalMsg, buf=<value optimized out>) at global/qglobal.cpp:2017
#8  0x00007f189f6a174b in qFatal (msg=<value optimized out>) at global/qglobal.cpp:2216
#9  0x00007f186f2c7462 in MassStorageDeviceHandlerFactory::createHandler (this=0x1151bb0, device=@0x28a5690, udi=@0x7fffc46c8420)
    at /home/panzi/software/amarok/src/collection/device/massstorage/MassStorageDeviceHandler.cpp:131
#10 0x00007f18a13264ca in MountPointManager::createHandlerFromDevice (this=0x108a330, device=@0x28a5690, udi=@0x7fffc46c8420) at /home/panzi/software/amarok/src/MountPointManager.cpp:520
#11 0x00007f18a1328255 in MountPointManager::init (this=0x108a330) at /home/panzi/software/amarok/src/MountPointManager.cpp:137
Comment 5 Myriam Schweingruber 2009-08-09 14:41:54 UTC
Changed priority to high
Comment 6 Myriam Schweingruber 2009-09-05 11:32:31 UTC
Any news on this?
Comment 7 Mikko C. 2009-09-09 14:24:08 UTC
iirc, this was happening only on the first start after a database version update. And since there haven't been any reports about this with beta1 I think it's fixed. But I might be wrong...
Comment 8 Jeff Mitchell 2009-09-09 16:03:33 UTC
Yeah -- unless someone can tell me how to reliably reproduce this (I've never seen it) I can't do much.