Bug 308251 - Cantor crashed after clicking Cancel
Summary: Cantor crashed after clicking Cancel
Status: RESOLVED FIXED
Alias: None
Product: cantor
Classification: Applications
Component: general (other bugs)
Version First Reported In: 0.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Alexander Rieder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-11 18:50 UTC by adamcrume
Modified: 2016-10-23 18:29 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description adamcrume 2012-10-11 18:50:20 UTC
Application: cantor (0.3)
KDE Platform Version: 4.8.5 (4.8.5)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-31-generic x86_64
Distribution: Ubuntu 12.04.1 LTS

-- Information about the crash:
I had Cantor running with the Maxima backend.  After starting a computation that never finished, I clicked Cancel, and Cantor crashed.

-- Backtrace:
Application: Cantor (cantor), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f14038af780 (LWP 30031))]

Thread 2 (Thread 0x7f13f0642700 (LWP 30033)):
#0  0x00007f13fd6b4ea0 in __pthread_mutex_lock (mutex=0x7f13e8000a60) at pthread_mutex_lock.c:56
#1  0x00007f13fd2215a1 in g_mutex_lock (mutex=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gthread-posix.c:208
#2  0x00007f13fd1e5337 in g_main_context_release (context=0x7f13e80009a0) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:2658
#3  0x00007f13fd1e5fe9 in g_main_context_iterate (dispatch=1, block=<optimized out>, context=0x7f13e80009a0, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3148
#4  g_main_context_iterate (context=0x7f13e80009a0, block=<optimized out>, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3083
#5  0x00007f13fd1e6164 in g_main_context_iteration (context=0x7f13e80009a0, may_block=1) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3207
#6  0x00007f1400ddb426 in QEventDispatcherGlib::processEvents (this=0x7f13e80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0x00007f1400daac82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007f1400daaed7 in QEventLoop::exec (this=0x7f13f0641dd0, flags=...) at kernel/qeventloop.cpp:204
#9  0x00007f1400ca9fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#10 0x00007f1400d8a9ff in QInotifyFileSystemWatcherEngine::run (this=0x15d06c0) at io/qfilesystemwatcher_inotify.cpp:248
#11 0x00007f1400cacfcb in QThreadPrivate::start (arg=0x15d06c0) at thread/qthread_unix.cpp:298
#12 0x00007f13fd6b2e9a in start_thread (arg=0x7f13f0642700) at pthread_create.c:308
#13 0x00007f1400665dbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#14 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f14038af780 (LWP 30031)):
[KCrash Handler]
#6  0x00007f13f1c7b812 in MaximaSession::interrupt (this=0x15e7d60) at ../../../../src/backends/maxima/maximasession.cpp:477
#7  0x00007f13efc1930e in Worksheet::interrupt (this=0x1a26d50) at ../../src/worksheet.cpp:586
#8  0x00007f13efc11425 in CantorPart::evaluateOrInterrupt (this=0x1a899d0) at ../../src/cantor_part.cpp:367
#9  0x00007f1400dc0281 in QMetaObject::activate (sender=0x1a2b7c0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7ffff5721c80) at kernel/qobject.cpp:3547
#10 0x00007f140179f132 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#11 0x00007f140179f31f in QAction::activate (this=0x1a2b7c0, event=<optimized out>) at kernel/qaction.cpp:1257
#12 0x00007f1401b74d4a in QAbstractButtonPrivate::click (this=0x1acddb0) at widgets/qabstractbutton.cpp:530
#13 0x00007f1401b74ffc in QAbstractButton::mouseReleaseEvent (this=0x1ac5570, e=0x7ffff5722560) at widgets/qabstractbutton.cpp:1123
#14 0x00007f1401c325da in QToolButton::mouseReleaseEvent (this=<optimized out>, e=<optimized out>) at widgets/qtoolbutton.cpp:718
#15 0x00007f14017f6144 in QWidget::event (this=0x1ac5570, event=0x7ffff5722560) at kernel/qwidget.cpp:8362
#16 0x00007f14017a5894 in notify_helper (e=0x7ffff5722560, receiver=0x1ac5570, this=0x157f310) at kernel/qapplication.cpp:4559
#17 QApplicationPrivate::notify_helper (this=0x157f310, receiver=0x1ac5570, e=0x7ffff5722560) at kernel/qapplication.cpp:4531
#18 0x00007f14017ab0bf in QApplication::notify (this=<optimized out>, receiver=0x1ac5570, e=0x7ffff5722560) at kernel/qapplication.cpp:4102
#19 0x00007f140329b3f6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#20 0x00007f1400dabe9c in QCoreApplication::notifyInternal (this=0x7ffff5723240, receiver=0x1ac5570, event=0x7ffff5722560) at kernel/qcoreapplication.cpp:876
#21 0x00007f14017a6862 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#22 QApplicationPrivate::sendMouseEvent (receiver=0x1ac5570, event=0x7ffff5722560, alienWidget=0x1ac5570, nativeWidget=0x171ea60, buttonDown=0x1ac5570, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3170
#23 0x00007f1401825bf5 in QETWidget::translateMouseEvent (this=0x171ea60, event=<optimized out>) at kernel/qapplication_x11.cpp:4617
#24 0x00007f1401824bae in QApplication::x11ProcessEvent (this=0x7ffff5723240, event=0x7ffff5722e30) at kernel/qapplication_x11.cpp:3732
#25 0x00007f140184e0d2 in x11EventSourceDispatch (s=0x1582270, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#26 0x00007f13fd1e5d53 in g_main_dispatch (context=0x1582030) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:2539
#27 g_main_context_dispatch (context=0x1582030) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3075
#28 0x00007f13fd1e60a0 in g_main_context_iterate (dispatch=1, block=<optimized out>, context=0x1582030, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3146
#29 g_main_context_iterate (context=0x1582030, block=<optimized out>, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3083
#30 0x00007f13fd1e6164 in g_main_context_iteration (context=0x1582030, may_block=1) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3207
#31 0x00007f1400ddb3bf in QEventDispatcherGlib::processEvents (this=0x1556b30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#32 0x00007f140184dd5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#33 0x00007f1400daac82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#34 0x00007f1400daaed7 in QEventLoop::exec (this=0x7ffff57231d0, flags=...) at kernel/qeventloop.cpp:204
#35 0x00007f1400daff67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#36 0x000000000040a28f in main (argc=5, argv=0x7ffff5723618) at ../../src/main.cpp:88

Reported using DrKonqi
Comment 1 Alexander Rieder 2012-10-18 23:38:52 UTC
the relevant code for this crash has been heavily rewritten for the upcoming release of KDE 4.10. So you can expect this crash to not be in there anymore.
Comment 2 Alexander Semke 2016-10-23 18:29:50 UTC
Interruption of running calculations works fine in the current code. Tested with makelist with Cantor  16.11.70.