Bug 274242 - Crash on Eject with no CD-ROM device attached
Summary: Crash on Eject with no CD-ROM device attached
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kaudiocreator
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Gerd Fleischer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-27 02:53 UTC by Christoph Feck
Modified: 2020-12-13 02:34 UTC (History)
1 user (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 Christoph Feck 2011-05-27 02:53:01 UTC
Application: kaudiocreator (1.2.90)
KDE Platform Version: 4.6.80 (4.7 Beta1) (Compiled from sources)
Qt Version: 4.7.4
Operating System: Linux 2.6.37.6-0.5-desktop i686
Distribution: "openSUSE 11.4 (i586)"

-- Information about the crash:
I clicked on "Eject" with no CD-ROM device attached.

The crash can be reproduced every time.

-- Backtrace:
Application: KAudioCreator (kaudiocreator), signal: Segmentation fault
[Current thread is 1 (Thread 0xb40ee730 (LWP 13447))]

Thread 2 (Thread 0xb2fbbb70 (LWP 13488)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb569103e in __poll (fds=0x824dbe8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0xb4f230bb in g_poll (fds=0x824dbe8, nfds=1, timeout=-1) at gpoll.c:132
#3  0xb4f12c46 in g_main_context_poll (context=0x8250d58, block=1, dispatch=1, self=0x82463d0) at gmain.c:3404
#4  g_main_context_iterate (context=0x8250d58, block=1, dispatch=1, self=0x82463d0) at gmain.c:3086
#5  0xb4f12fce in g_main_context_iteration (context=0x8250d58, may_block=1) at gmain.c:3154
#6  0xb6692568 in QEventDispatcherGlib::processEvents (this=0x824bc68, flags=...) at /local/git/Qt/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:424
#7  0xb665baed in QEventLoop::processEvents (this=0xb2fbb278, flags=...) at /local/git/Qt/qt/src/corelib/kernel/qeventloop.cpp:149
#8  0xb665bc31 in QEventLoop::exec (this=0xb2fbb278, flags=...) at /local/git/Qt/qt/src/corelib/kernel/qeventloop.cpp:201
#9  0xb65516b3 in QThread::exec (this=0x8246660) at /local/git/Qt/qt/src/corelib/thread/qthread.cpp:492
#10 0xb663d0f4 in QInotifyFileSystemWatcherEngine::run (this=0x8246660) at /local/git/Qt/qt/src/corelib/io/qfilesystemwatcher_inotify.cpp:248
#11 0xb6553dfc in QThreadPrivate::start (arg=0x8246660) at /local/git/Qt/qt/src/corelib/thread/qthread_unix.cpp:331
#12 0xb64cbb05 in start_thread (arg=0xb2fbbb70) at pthread_create.c:297
#13 0xb569bd5e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb40ee730 (LWP 13447)):
[KCrash Handler]
#7  0xb749a57f in Solid::OpticalDrive::d_func (this=0x0) at /local/git/KDE/libs/kdelibs/solid/solid/opticaldrive.h:51
#8  0xb749a16b in Solid::OpticalDrive::eject (this=0x0) at /local/git/KDE/libs/kdelibs/solid/solid/opticaldrive.cpp:69
#9  0x08085efe in AudioCD::eject (this=0x825d4b8) at /local/svn/kde/trunk/extragear/multimedia/kaudiocreator/audiocd.cpp:210
#10 0x08077519 in TracksImp::eject (this=0x81c6ef0) at /local/svn/kde/trunk/extragear/multimedia/kaudiocreator/tracksimp.cpp:672
#11 0x08077787 in TracksImp::qt_metacall (this=0x81c6ef0, _c=QMetaObject::InvokeMetaMethod, _id=11, _a=0xbfe45478) at /local/build/extragear/multimedia/kaudiocreator/tracksimp.moc:131
#12 0xb666543a in QMetaObject::metacall (object=0x81c6ef0, cl=QMetaObject::InvokeMetaMethod, idx=38, argv=0xbfe45478) at /local/git/Qt/qt/src/corelib/kernel/qmetaobject.cpp:237
#13 0xb66785bf in QMetaObject::activate (sender=0x82668a0, m=0xb64a5578, local_signal_index=1, argv=0xbfe45478) at /local/git/Qt/qt/src/corelib/kernel/qobject.cpp:3278
#14 0xb59cff92 in QAction::triggered (this=0x82668a0, _t1=false) at .moc/debug-shared/moc_qaction.cpp:263
#15 0xb59cf481 in QAction::activate (this=0x82668a0, event=QAction::Trigger) at /local/git/Qt/qt/src/gui/kernel/qaction.cpp:1257
#16 0xb59d05e3 in QAction::trigger (this=0x82668a0) at /local/git/Qt/qt/src/gui/kernel/qaction.h:218
#17 0xb5f4198f in QToolButton::nextCheckState (this=0x82a8a40) at /local/git/Qt/qt/src/gui/widgets/qtoolbutton.cpp:1147
#18 0xb5e4e8c8 in QAbstractButtonPrivate::click (this=0x82a2df8) at /local/git/Qt/qt/src/gui/widgets/qabstractbutton.cpp:528
#19 0xb5e4fd2f in QAbstractButton::mouseReleaseEvent (this=0x82a8a40, e=0xbfe45d7c) at /local/git/Qt/qt/src/gui/widgets/qabstractbutton.cpp:1121
#20 0xb5f402dc in QToolButton::mouseReleaseEvent (this=0x82a8a40, e=0xbfe45d7c) at /local/git/Qt/qt/src/gui/widgets/qtoolbutton.cpp:721
#21 0xb5a3eba5 in QWidget::event (this=0x82a8a40, event=0xbfe45d7c) at /local/git/Qt/qt/src/gui/kernel/qwidget.cpp:8279
#22 0xb5e4fba0 in QAbstractButton::event (this=0x82a8a40, e=0xbfe45d7c) at /local/git/Qt/qt/src/gui/widgets/qabstractbutton.cpp:1080
#23 0xb5f41a04 in QToolButton::event (this=0x82a8a40, event=0xbfe45d7c) at /local/git/Qt/qt/src/gui/widgets/qtoolbutton.cpp:1163
#24 0xb59de8ae in QApplicationPrivate::notify_helper (this=0x80cc3a8, receiver=0x82a8a40, e=0xbfe45d7c) at /local/git/Qt/qt/src/gui/kernel/qapplication.cpp:4462
#25 0xb59dca3f in QApplication::notify (this=0xbfe465c0, receiver=0x82a8a40, e=0xbfe45d7c) at /local/git/Qt/qt/src/gui/kernel/qapplication.cpp:4023
#26 0xb6f86a5a in KApplication::notify (this=0xbfe465c0, receiver=0x82a8a40, event=0xbfe45d7c) at /local/git/KDE/libs/kdelibs/kdeui/kernel/kapplication.cpp:311
#27 0xb665dd8f in QCoreApplication::notifyInternal (this=0xbfe465c0, receiver=0x82a8a40, event=0xbfe45d7c) at /local/git/Qt/qt/src/corelib/kernel/qcoreapplication.cpp:787
#28 0xb59e11c9 in QCoreApplication::sendSpontaneousEvent (receiver=0x82a8a40, event=0xbfe45d7c) at ../../include/QtCore/../../../../git/Qt/qt/src/corelib/kernel/qcoreapplication.h:218
#29 0xb59db16b in QApplicationPrivate::sendMouseEvent (receiver=0x82a8a40, event=0xbfe45d7c, alienWidget=0x82a8a40, nativeWidget=0x8282920, buttonDown=0xb64c3340, lastMouseReceiver=..., spontaneous=true) at /local/git/Qt/qt/src/gui/kernel/qapplication.cpp:3120
#30 0xb5a754e8 in QETWidget::translateMouseEvent (this=0x8282920, event=0xbfe462b0) at /local/git/Qt/qt/src/gui/kernel/qapplication_x11.cpp:4461
#31 0xb5a7212e in QApplication::x11ProcessEvent (this=0xbfe465c0, event=0xbfe462b0) at /local/git/Qt/qt/src/gui/kernel/qapplication_x11.cpp:3465
#32 0xb5aa7742 in x11EventSourceDispatch (s=0x80cf1a8, callback=0, user_data=0x0) at /local/git/Qt/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:146
#33 0xb4f12509 in g_main_dispatch (context=0x80ce478) at gmain.c:2440
#34 g_main_context_dispatch (context=0x80ce478) at gmain.c:3013
#35 0xb4f12d10 in g_main_context_iterate (context=0x80ce478, block=1, dispatch=1, self=0x80cc290) at gmain.c:3091
#36 0xb4f12fce in g_main_context_iteration (context=0x80ce478, may_block=1) at gmain.c:3154
#37 0xb6692548 in QEventDispatcherGlib::processEvents (this=0x80cb790, flags=...) at /local/git/Qt/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:422
#38 0xb5aa7a98 in QGuiEventDispatcherGlib::processEvents (this=0x80cb790, flags=...) at /local/git/Qt/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:204
#39 0xb665baed in QEventLoop::processEvents (this=0xbfe4654c, flags=...) at /local/git/Qt/qt/src/corelib/kernel/qeventloop.cpp:149
#40 0xb665bc31 in QEventLoop::exec (this=0xbfe4654c, flags=...) at /local/git/Qt/qt/src/corelib/kernel/qeventloop.cpp:201
#41 0xb665e47a in QCoreApplication::exec () at /local/git/Qt/qt/src/corelib/kernel/qcoreapplication.cpp:1064
#42 0xb59dbddc in QApplication::exec () at /local/git/Qt/qt/src/gui/kernel/qapplication.cpp:3736
#43 0x080594a2 in main (argc=1, argv=0xbfe46704) at /local/svn/kde/trunk/extragear/multimedia/kaudiocreator/main.cpp:54

Reported using DrKonqi
Comment 1 Gerd Fleischer 2011-05-28 12:54:59 UTC
Git commit ba5d79047b17ccdafaa53d739cb7f77474cf212c by Gerd Fleischer.
Committed on 28/05/2011 at 12:53.
Pushed by geflei into branch 'master'.

fix crash when ejecting with no drive

However, the button should be disabled
if no drive is detected, needs a bit more work.

CCBUG: 274242

M  +1    -1    audiocd.cpp     

http://commits.kde.org/kaudiocreator/ba5d79047b17ccdafaa53d739cb7f77474cf212c
Comment 2 Christoph Feck 2012-10-05 16:57:01 UTC
I just tried it again, and the button is disabled. Anything left for this ticket?
Comment 3 Justin Zobel 2020-12-13 02:21:07 UTC
Christoph, as it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.