Bug 291946 - K3b crashes trying to close the CD drive tray
Summary: K3b crashes trying to close the CD drive tray
Status: RESOLVED WORKSFORME
Alias: None
Product: k3b
Classification: Applications
Component: Copying (show other bugs)
Version: 2.0.2
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: k3b developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-19 13:00 UTC by Christopher Yeleighton
Modified: 2016-09-06 05:54 UTC (History)
3 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 Christopher Yeleighton 2012-01-19 13:00:13 UTC
Version:           2.0.2 (using KDE 4.7.2) 
OS:                Linux

K3b crashes in allocating a new thread (apparently) when the operator instructs it to close a CD drive tray if the CD tray was initially open.

Reproducible: Always

Steps to Reproduce:
  0. Make sure the CD drive tray is ejected and K3b is not running.
  1. Tell K3b to close the CD drive tray.

Actual Results:  
  1.
Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fb20cfaf700 (LWP 21420)]
0x00007fb229fb4d95 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
        in ../nptl/sysdeps/unix/sysv/linux/raise.c
#0  0x00007fb229fb4d95 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007fb229fb62ab in __GI_abort () at abort.c:93
#2  0x00007fb22a3cdf2d in __gnu_cxx::__verbose_terminate_handler () at ../../../../libstdc++-v3/libsupc++/vterminate.cc:95
#3  0x00007fb22a3cc0d6 in __cxxabiv1::__terminate (handler=<optimized out>) at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:40
#4  0x00007fb22a3cc103 in std::terminate () at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:50
#5  0x00007fb22a3cc1fe in __cxxabiv1::__cxa_throw (obj=0x7fb22a6068a0, tinfo=<optimized out>, dest=<optimized out>)
    at ../../../../libstdc++-v3/libsupc++/eh_throw.cc:83
#6  0x00007fb22a3cc6dd in operator new (sz=16) at ../../../../libstdc++-v3/libsupc++/new_op.cc:58
#7  0x00007fb22b33352a in QThreadPrivate::createEventDispatcher (data=0xf315b0) at thread/qthread_unix.cpp:272
#8  0x00007fb22b334006 in QThreadPrivate::start (arg=0xf373e0) at thread/qthread_unix.cpp:324
#9  0x00007fb229d6af05 in start_thread (arg=0x7fb20cfaf700) at pthread_create.c:301
#10 0x00007fb22a05963d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115



Process Manager reports that K3b uses 7 MB of memory.

Expected Results:  
  1. K3b should close the drive tray.

OS: Linux (x86_64) release 3.1.0-1.2-desktop
Compiler: gcc

(Created with gdb because DrKonqi is unable to extract a stack trace for unknown reasons.)

Workaround: { mount /dev/cdrom; }
Comment 1 Albert Astals Cid 2014-09-29 22:11:12 UTC
can you please run 

valgrind k3b --nofork

and try to reproduce this problem, and attach the output of valgrind?
Comment 2 Leslie Zhai 2016-09-06 05:54:08 UTC
Hi Christopher,

please try k3b master https://github.com/KDE/k3b if still crash please let me know, thanks a lot!

Regards,
Leslie Zhai