Bug 261402 - Crash on attaching external USB device
Summary: Crash on attaching external USB device
Status: RESOLVED DUPLICATE of bug 236994
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: 2.4-GIT
Platform: openSUSE Linux
: NOR crash
Target Milestone: 2.4.0
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-27 19:49 UTC by George Baltz
Modified: 2010-12-30 19:21 UTC (History)
0 users

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 George Baltz 2010-12-27 19:49:20 UTC
Application: amarok (2.4-GIT)
KDE Platform Version: 4.5.4 (KDE 4.5.4) "release 9"
Qt Version: 4.6.3
Operating System: Linux 2.6.34.7-0.5-desktop x86_64
Distribution: "openSUSE 11.3 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:
Amarok was playing when I attached a brand new Sansa Clip+ - Boom!

Clip+ still has default settings (USB mode: Auto-detect)
Local collection is all .ogg.

The crash can be reproduced every time.

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

Thread 15 (Thread 0x7f94487f2710 (LWP 27856)):
#0  0x00007f945ecbf709 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f9449ed3941 in metronom_sync_loop (this=0x9b2520) at metronom.c:870
#2  0x00007f945ecbaa4f in start_thread () from /lib64/libpthread.so.0
#3  0x00007f946086782d in clone () from /lib64/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 14 (Thread 0x7f9447ff1710 (LWP 27859)):
#0  0x00007f946085e6b3 in poll () from /lib64/libc.so.6
#1  0x00007f945a4abfd4 in g_main_context_poll (context=0x9617f0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2904
#2  g_main_context_iterate (context=0x9617f0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2586
#3  0x00007f945a4ac510 in IA__g_main_context_iteration (context=0x9617f0, may_block=1) at gmain.c:2654
#4  0x00007f9461e0e6d6 in QEventDispatcherGlib::processEvents (this=0x9c5620, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#5  0x00007f9461de5292 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f9461de5495 in QEventLoop::exec (this=0x7f9447ff0cd0, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007f9461cfc2cf in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#8  0x00007f944a1313b4 in ?? () from /usr/lib64/kde4/plugins/phonon_backend/phonon_xine.so
#9  0x00007f9461cfebf5 in QThreadPrivate::start (arg=0x962f50) at thread/qthread_unix.cpp:248
#10 0x00007f9455acda33 in ?? () from /usr/X11R6/lib64/libGL.so.1
#11 0x00007f945ecbaa4f in start_thread () from /lib64/libpthread.so.0
#12 0x00007f946086782d in clone () from /lib64/libc.so.6
#13 0x0000000000000000 in ?? ()

Thread 13 (Thread 0x7f94475e6710 (LWP 27863)):
#0  0x00007f946085e6b3 in poll () from /lib64/libc.so.6
#1  0x00007f94475eb907 in my_snd_mixer_wait (data=0x9c76a0) at audio_alsa_out.c:151
#2  ao_alsa_handle_event_thread (data=0x9c76a0) at audio_alsa_out.c:167
#3  0x00007f945ecbaa4f in start_thread () from /lib64/libpthread.so.0
#4  0x00007f946086782d in clone () from /lib64/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7f9446de5710 (LWP 27864)):
#0  0x00007f945ecbf39c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f9449ee5a6b in fifo_peek_int (this_gen=0xa02eb0) at audio_out.c:348
#2  fifo_peek (this_gen=0xa02eb0) at audio_out.c:388
#3  ao_loop (this_gen=0xa02eb0) at audio_out.c:1015
#4  0x00007f945ecbaa4f in start_thread () from /lib64/libpthread.so.0
#5  0x00007f946086782d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7f9445fcc710 (LWP 27865)):
#0  0x00007f945ecbf39c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f9449ee5a6b in fifo_peek_int (this_gen=0xa1f870) at audio_out.c:348
#2  fifo_peek (this_gen=0xa1f870) at audio_out.c:388
#3  ao_loop (this_gen=0xa1f870) at audio_out.c:1015
#4  0x00007f945ecbaa4f in start_thread () from /lib64/libpthread.so.0
#5  0x00007f946086782d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f94457cb710 (LWP 27866)):
#0  0x00007f945ecbf39c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f9449ee5a6b in fifo_peek_int (this_gen=0x7c31a0) at audio_out.c:348
#2  fifo_peek (this_gen=0x7c31a0) at audio_out.c:388
#3  ao_loop (this_gen=0x7c31a0) at audio_out.c:1015
#4  0x00007f945ecbaa4f in start_thread () from /lib64/libpthread.so.0
#5  0x00007f946086782d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f9433dfb710 (LWP 27870)):
#0  0x00007f945ecbf39c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f945cac5e30 in ?? () from /usr/lib64/libQtScript.so.4
#2  0x00007f945cac5e69 in ?? () from /usr/lib64/libQtScript.so.4
#3  0x00007f9455acda33 in ?? () from /usr/X11R6/lib64/libGL.so.1
#4  0x00007f945ecbaa4f in start_thread () from /lib64/libpthread.so.0
#5  0x00007f946086782d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f942f71f710 (LWP 27927)):
#0  0x00007f945ecbf709 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f9449ee1aaf in interruptable_sleep (this_gen=0x17f36d0) at video_out.c:1092
#2  video_out_loop (this_gen=0x17f36d0) at video_out.c:1276
#3  0x00007f945ecbaa4f in start_thread () from /lib64/libpthread.so.0
#4  0x00007f946086782d in clone () from /lib64/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f942eb35710 (LWP 27928)):
#0  0x00007f945ecbf39c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f9449ed7a1b in fifo_buffer_get (fifo=0x17fef70) at buffer.c:230
#2  0x00007f9449eddd05 in video_decoder_loop (stream_gen=0x17fe0a0) at video_decoder.c:131
#3  0x00007f945ecbaa4f in start_thread () from /lib64/libpthread.so.0
#4  0x00007f946086782d in clone () from /lib64/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f942e167710 (LWP 27929)):
#0  0x00007f945ecbf39c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f9449ed7a1b in fifo_buffer_get (fifo=0x1c39460) at buffer.c:230
#2  0x00007f9449edee6d in audio_decoder_loop (stream_gen=0x17fe0a0) at audio_decoder.c:67
#3  0x00007f945ecbaa4f in start_thread () from /lib64/libpthread.so.0
#4  0x00007f946086782d in clone () from /lib64/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f942d966710 (LWP 27930)):
#0  0x00007f945ecbf39c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f9449ee8beb in xine_event_wait (queue_gen=0x1c5b280) at events.c:56
#2  listener_loop (queue_gen=0x1c5b280) at events.c:214
#3  0x00007f945ecbaa4f in start_thread () from /lib64/libpthread.so.0
#4  0x00007f946086782d in clone () from /lib64/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f942a555710 (LWP 28179)):
#0  0x00007f945ecbf39c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f9461cff2bb in wait (this=<value optimized out>, mutex=0xcc94a0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xcc94a0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f945e1343f6 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x8dcbb0, th=0x13cc9b0) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f945e136e45 in waitForAvailableJob (this=0x11a9380, th=0x13cc9b0) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/WeaverImpl.cpp:356
#5  ThreadWeaver::WorkingHardState::applyForWork (this=0x11a9380, th=0x13cc9b0) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/WorkingHardState.cpp:71
#6  0x00007f945e136e5e in ThreadWeaver::WorkingHardState::applyForWork (this=0x11a9380, th=0x13cc9b0) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x00007f945e1347ef in ThreadWeaver::ThreadRunHelper::run (this=0x7f942a554d30, parent=0x8dcbb0, th=0x13cc9b0) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/Thread.cpp:87
#8  0x00007f945e134878 in ThreadWeaver::Thread::run (this=0x13cc9b0) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/Thread.cpp:142
#9  0x00007f9461cfebf5 in QThreadPrivate::start (arg=0x13cc9b0) at thread/qthread_unix.cpp:248
#10 0x00007f9455acda33 in ?? () from /usr/X11R6/lib64/libGL.so.1
#11 0x00007f945ecbaa4f in start_thread () from /lib64/libpthread.so.0
#12 0x00007f946086782d in clone () from /lib64/libc.so.6
#13 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f9429d54710 (LWP 28206)):
[KCrash Handler]
#6  usb_bulk_io (dev=0x0, ep=<value optimized out>, bytes=0x7f9424011030 "\020", size=16, timeout=10000) at core.c:751
#7  0x00007f9441650995 in ptp_write_func (size=16, handler=0x7f9429d53640, data=0x7f9424010fb0, written=0x7f9429d53658) at libusb-glue.c:880
#8  0x00007f9441650f4b in ptp_usb_sendreq (params=0x7f9424000b70, req=0x7f9429d539e0) at libusb-glue.c:1060
#9  0x00007f9441652fcb in ptp_transaction_new (params=0x7f9424000b70, ptp=0x7f9429d539e0, flags=0, sendlen=0, handler=<value optimized out>) at ptp.c:152
#10 0x00007f94416563be in ptp_opensession (params=0x7f9424000b70, session=1) at ptp.c:541
#11 0x00007f9441652888 in configure_usb_device (device=<value optimized out>, params=0x7f9424000b70, usbinfo=0x7f9424000da0) at libusb-glue.c:1846
#12 0x00007f9441648389 in LIBMTP_Open_Raw_Device (rawdevice=0x1cc46e0) at libmtp.c:1760
#13 0x00007f9441888dab in Meta::MtpHandler::iterateRawDevices (this=0x17e7800, numrawdevices=1, rawdevices=0x1cc46e0)
    at /home/gwb/kde/src/amarok/src/core-impl/collections/mtpcollection/handler/MtpHandler.cpp:223
#14 0x00007f944188d465 in Meta::WorkerThread::run (this=0x17e37e0) at /home/gwb/kde/src/amarok/src/core-impl/collections/mtpcollection/handler/MtpHandler.cpp:1460
#15 0x00007f945e134d75 in ThreadWeaver::JobRunHelper::runTheJob (this=0x7f9429d53ca0, th=0xedf840, job=0x17e37e0) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/Job.cpp:106
#16 0x00007f945e134eae in ThreadWeaver::Job::execute (this=0x17e37e0, th=0xedf840) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/Job.cpp:135
#17 0x00007f945e1347bf in ThreadWeaver::ThreadRunHelper::run (this=0x7f9429d53d30, parent=0x8dcbb0, th=0xedf840) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/Thread.cpp:95
#18 0x00007f945e134878 in ThreadWeaver::Thread::run (this=0xedf840) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/Thread.cpp:142
#19 0x00007f9461cfebf5 in QThreadPrivate::start (arg=0xedf840) at thread/qthread_unix.cpp:248
#20 0x00007f9455acda33 in ?? () from /usr/X11R6/lib64/libGL.so.1
#21 0x00007f945ecbaa4f in start_thread () from /lib64/libpthread.so.0
#22 0x00007f946086782d in clone () from /lib64/libc.so.6
#23 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f9429553710 (LWP 28230)):
#0  0x00007f945ecbf39c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f9461cff2bb in wait (this=<value optimized out>, mutex=0xcc94a0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xcc94a0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f945e1343f6 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x8dcbb0, th=0x13b5200) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f945e136e45 in waitForAvailableJob (this=0x11a9380, th=0x13b5200) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/WeaverImpl.cpp:356
#5  ThreadWeaver::WorkingHardState::applyForWork (this=0x11a9380, th=0x13b5200) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/WorkingHardState.cpp:71
#6  0x00007f945e1347ef in ThreadWeaver::ThreadRunHelper::run (this=0x7f9429552d30, parent=0x8dcbb0, th=0x13b5200) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/Thread.cpp:87
#7  0x00007f945e134878 in ThreadWeaver::Thread::run (this=0x13b5200) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/Thread.cpp:142
#8  0x00007f9461cfebf5 in QThreadPrivate::start (arg=0x13b5200) at thread/qthread_unix.cpp:248
#9  0x00007f9455acda33 in ?? () from /usr/X11R6/lib64/libGL.so.1
#10 0x00007f945ecbaa4f in start_thread () from /lib64/libpthread.so.0
#11 0x00007f946086782d in clone () from /lib64/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f9463b647a0 (LWP 27852)):
#0  0x00007f945ecbf39c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f9461cff2bb in wait (this=<value optimized out>, mutex=0x9bc378, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x9bc378, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f944a1330ed in ?? () from /usr/lib64/kde4/plugins/phonon_backend/phonon_xine.so
#4  0x00007f944a142b36 in ?? () from /usr/lib64/kde4/plugins/phonon_backend/phonon_xine.so
#5  0x00007f944a142bc9 in ?? () from /usr/lib64/kde4/plugins/phonon_backend/phonon_xine.so
#6  0x00007f945d7738a4 in Phonon::MediaNodePrivate::deleteBackendObject (this=0x8efc90) at /usr/src/debug/phonon-4.4.2/phonon/medianode.cpp:81
#7  0x00007f945d781b58 in Phonon::FactoryPrivate::~FactoryPrivate (this=0x8c4c50, __in_chrg=<value optimized out>) at /usr/src/debug/phonon-4.4.2/phonon/factory.cpp:212
#8  0x00007f945d781e09 in Phonon::FactoryPrivate::~FactoryPrivate (this=0x8c4c50, __in_chrg=<value optimized out>) at /usr/src/debug/phonon-4.4.2/phonon/factory.cpp:222
#9  0x00007f94607cc4e1 in __run_exit_handlers () from /lib64/libc.so.6
#10 0x00007f94607cc535 in exit () from /lib64/libc.so.6
#11 0x00007f9461240cb8 in ?? () from /usr/lib64/libQtGui.so.4
#12 0x00007f94634fd7d8 in KApplication::xioErrhandler (this=0x7fff92b8e4b0, dpy=0x7f0590) at /usr/src/debug/kdelibs-4.5.4/kdeui/kernel/kapplication.cpp:416
#13 0x00007f945fe21a3e in _XIOError () from /usr/lib64/libX11.so.6
#14 0x00007f945fe285a5 in ?? () from /usr/lib64/libX11.so.6
#15 0x00007f945fe2890c in _XEventsQueued () from /usr/lib64/libX11.so.6
#16 0x00007f945fe117ef in XEventsQueued () from /usr/lib64/libX11.so.6
#17 0x00007f9461278047 in ?? () from /usr/lib64/libQtGui.so.4
#18 0x00007f945a4aaf7f in IA__g_main_context_prepare (context=0x7c8e20, priority=0x7fff92b8e2fc) at gmain.c:2280
#19 0x00007f945a4abe69 in g_main_context_iterate (context=0x7c8e20, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2571
#20 0x00007f945a4ac510 in IA__g_main_context_iteration (context=0x7c8e20, may_block=1) at gmain.c:2654
#21 0x00007f9461e0e67f in QEventDispatcherGlib::processEvents (this=0x669770, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#22 0x00007f946127814e in ?? () from /usr/lib64/libQtGui.so.4
#23 0x00007f9461de5292 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#24 0x00007f9461de5495 in QEventLoop::exec (this=0x7fff92b8e450, flags=...) at kernel/qeventloop.cpp:201
#25 0x00007f9461de988b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#26 0x00000000004084da in main (argc=3, argv=0x7fff92b90928) at /home/gwb/kde/src/amarok/src/main.cpp:261

This bug may be a duplicate of or related to bug 260916.

Possible duplicates by query: bug 260916, bug 258250, bug 256696, bug 256067, bug 255798.

Reported using DrKonqi
Comment 1 George Baltz 2010-12-27 20:01:52 UTC
No crash if I change USB mode to MSC.
Comment 2 Myriam Schweingruber 2010-12-30 19:21:00 UTC
The crash is in libmtp.

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