#179 segfault when closing lmms if playing

Git master branch
closed-fixed
Crash (127)
5
2009-05-20
2009-05-18
Stephane THOMAS
No

if the engine isn't stop when quitting lmms it segfault :

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f86e2b90760 (LWP 15614)]
AutomationRecorder::initRecord (this=0x0) at /usr/include/qt4/QtCore/qmap.h:397
397 if (d != other.d) {
(gdb) thread apply all bt

Thread 6 (Thread 0x7f86b66a1950 (LWP 15621)):
#0 0x00007f86de53f8f6 in poll () from /lib/libc.so.6
#1 0x000000000050940a in midiALSASeq::run (this=0x249f230) at /usr/local/src/lmms/src/core/midi/midi_alsa_seq.cpp:412
#2 0x00007f86e0fe1742 in ?? () from /usr/lib/libQtCore.so.4
#3 0x00007f86e0d60faa in start_thread () from /lib/libpthread.so.0
#4 0x00007f86de54829d in clone () from /lib/libc.so.6
#5 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f86d1055950 (LWP 15620)):
#0 0x00007f86e0d64c09 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1 0x00007f86e0fe2739 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#2 0x00007f86e144a69c in ?? () from /usr/lib/libQtNetwork.so.4
#3 0x00007f86e0fe1742 in ?? () from /usr/lib/libQtCore.so.4
#4 0x00007f86e0d60faa in start_thread () from /lib/libpthread.so.0
#5 0x00007f86de54829d in clone () from /lib/libc.so.6
#6 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f86d1e42950 (LWP 15619)):
#0 0x00007f86de53f8f6 in poll () from /lib/libc.so.6
#1 0x00007f86dd2ae4df in ?? () from /usr/lib/libglib-2.0.so.0
#2 0x00007f86dd2ae7dc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3 0x00007f86e10f34bf in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#4 0x00007f86e10c86f2 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#5 0x00007f86e10c8abd in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#6 0x00007f86e0fde7e8 in QThread::exec () from /usr/lib/libQtCore.so.4
#7 0x00007f86e10ac148 in ?? () from /usr/lib/libQtCore.so.4
#8 0x00007f86e0fe1742 in ?? () from /usr/lib/libQtCore.so.4
#9 0x00007f86e0d60faa in start_thread () from /lib/libpthread.so.0
#10 0x00007f86de54829d in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f86d2643950 (LWP 15618)):
#0 0x00007f86de53f8f6 in poll () from /lib/libc.so.6
#1 0x00007f86dd2ae4df in ?? () from /usr/lib/libglib-2.0.so.0
#2 0x00007f86dd2ae7dc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3 0x00007f86e10f34bf in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#4 0x00007f86e10c86f2 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#5 0x00007f86e10c8abd in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#6 0x00007f86e0fde7e8 in QThread::exec () from /usr/lib/libQtCore.so.4
#7 0x00007f86e10ac148 in ?? () from /usr/lib/libQtCore.so.4
#8 0x00007f86e0fe1742 in ?? () from /usr/lib/libQtCore.so.4
#9 0x00007f86e0d60faa in start_thread () from /lib/libpthread.so.0
#10 0x00007f86de54829d in clone () from /lib/libc.so.6
---Type <return> to continue, or q <return> to quit---
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f86d2e44950 (LWP 15617)):
#0 0x00007f86e0d64c09 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1 0x00007f86e0fe2739 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#2 0x00000000004eacab in MixerWorkerThread::run (this=0x223a630) at /usr/local/src/lmms/src/core/mixer.cpp:166
#3 0x00007f86e0fe1742 in ?? () from /usr/lib/libQtCore.so.4
#4 0x00007f86e0d60faa in start_thread () from /lib/libpthread.so.0
#5 0x00007f86de54829d in clone () from /lib/libc.so.6
#6 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f86e2b90760 (LWP 15614)):
#0 AutomationRecorder::initRecord (this=0x0) at /usr/include/qt4/QtCore/qmap.h:397
#1 0x00000000004ccb05 in song::clearProject (this=0x0) at /usr/local/src/lmms/src/core/song.cpp:728
#2 0x0000000000538892 in engine::destroy () at /usr/local/src/lmms/src/core/engine.cpp:172
#3 0x00000000005b71cb in ~mainWindow (this=0x24b1810) at /usr/local/src/lmms/src/gui/main_window.cpp:243
#4 0x00007f86e10d9ed5 in QObject::event () from /usr/lib/libQtCore.so.4
#5 0x00007f86e20a0f7d in QWidget::event () from /usr/lib/libQtGui.so.4
#6 0x00007f86e24581bb in QMainWindow::event () from /usr/lib/libQtGui.so.4
#7 0x00007f86e20504fd in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#8 0x00007f86e205877a in QApplication::notify () from /usr/lib/libQtGui.so.4
#9 0x00007f86e10c9e4c in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#10 0x00007f86e10caaba in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib/libQtCore.so.4
#11 0x00007f86e10f3833 in ?? () from /usr/lib/libQtCore.so.4
#12 0x00007f86dd2aaf7a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#13 0x00007f86dd2ae640 in ?? () from /usr/lib/libglib-2.0.so.0
#14 0x00007f86dd2ae7dc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#15 0x00007f86e10f34bf in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#16 0x00007f86e20e8c7f in ?? () from /usr/lib/libQtGui.so.4
#17 0x00007f86e10c86f2 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#18 0x00007f86e10c8abd in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#19 0x00007f86e10cad84 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#20 0x0000000000498d3e in main (argc=1, argv=0x7fffeacd9338) at /usr/local/src/lmms/src/core/main.cpp:517

Discussion

    • labels: --> Crash
    • milestone: --> Git master branch
     
  • Thanks for your report. The issue has been fixed in commit 41c939f5aa76c5422e416be8cb1c9914bd2525ac.

     
    • assigned_to: nobody --> tobydox
    • status: open --> closed-fixed