Bug 323574

Summary: KAlgebra crashed after usage of multiplication without ' * '
Product: [Frameworks and Libraries] analitza Reporter: diogoagdiogenes
Component: analitzaplotAssignee: Aleix Pol <aleixpol>
Status: RESOLVED DUPLICATE    
Severity: crash CC: percy.camilo.ta
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description diogoagdiogenes 2013-08-15 23:46:17 UTC
Application: kalgebra (0.11)
KDE Platform Version: 4.10.5
Qt Version: 4.8.4
Operating System: Linux 3.8.0-27-generic i686
Distribution: Ubuntu 13.04

-- Information about the crash:
- What I was doing when the application crashed:
I was plotting an equation on KALgebra when it crashed. It happened many times. In fact, everytime I used some terms it crashed. The phormula was ((x²+y²)-1)³-x²*y, but everytime I use it without the " * ", the application shuts down. I know it isn't the proper mathematical language in computacional transcription of equations, but many plotter accepts multiplication of two variables (x and y) as "xy" and not exclusively "x*y".

The crash can be reproduced every time.

-- Backtrace:
Application: KAlgebra (kalgebra), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xb3efa740 (LWP 2743))]

Thread 2 (Thread 0xb0fffb40 (LWP 2747)):
#0  0xb772f424 in __kernel_vsyscall ()
#1  0xb53eedcb in poll () from /lib/i386-linux-gnu/libc.so.6
#2  0xb47c42db in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb47b56d0 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb47b5c2b in g_main_loop_run () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb2682bca in ?? () from /usr/lib/i386-linux-gnu/libgio-2.0.so.0
#6  0xb47dafc3 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#7  0xb4c52d78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#8  0xb53fe3de in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 1 (Thread 0xb3efa740 (LWP 2743)):
[KCrash Handler]
#6  0xb6fc0d41 in node_construct (t=..., n=0x981fba8, this=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:372
#7  QList<QPointF>::append (this=this@entry=0xbf891e1c, t=...) at /usr/include/qt4/QtCore/qlist.h:521
#8  0xb6fbf7a6 in operator<< (t=..., this=0xbf891e1c) at /usr/include/qt4/QtCore/qlist.h:334
#9  MarchingSquares::tipo01 (this=this@entry=0x9584590, aristas=...) at ../../analitzaplot/private/utils/marchingsquares.cpp:398
#10 0xb6fbf953 in MarchingSquares::identificar_tipo (this=this@entry=0x9584590, cubo=...) at ../../analitzaplot/private/utils/marchingsquares.cpp:375
#11 0xb6fbfd1a in MarchingSquares::buildGeometry (this=this@entry=0x9584590) at ../../analitzaplot/private/utils/marchingsquares.cpp:441
#12 0xb6fd0494 in FunctionImplicit::update (this=0x9584560, vp=...) at ../../analitzaplot/private/backends/implicitcurve.cpp:97
#13 0xb6fda4f0 in Analitza::PlaneCurve::update (this=0x8f1f690, viewport=...) at ../../analitzaplot/planecurve.cpp:60
#14 0xb6fdd260 in Analitza::Plotter2D::updateFunctions (this=this@entry=0x8f510bc, parent=..., start=start@entry=0, end=end@entry=0) at ../../analitzaplot/plotter2d.cpp:435
#15 0xb7008b56 in Analitza::PlotsView2D::addFuncs (this=this@entry=0x8f510a8, parent=..., start=0, end=0) at ../../analitzagui/plotsview2d.cpp:330
#16 0xb6ffe02d in qt_static_metacall (_a=0xbf8921b0, _id=19, _o=0x8f510a8, _c=<optimized out>) at moc_plotsview2d.cpp:111
#17 Analitza::PlotsView2D::qt_static_metacall (_o=0x8f510a8, _c=QMetaObject::InvokeMetaMethod, _id=19, _a=0xbf8921b0) at moc_plotsview2d.cpp:84
#18 0xb577cb56 in QMetaObject::activate (sender=sender@entry=0x8f4c918, m=m@entry=0xb58d1298 <QAbstractItemModel::staticMetaObject>, local_signal_index=local_signal_index@entry=5, argv=argv@entry=0xbf8921b0) at kernel/qobject.cpp:3539
#19 0xb57ceba5 in QAbstractItemModel::rowsInserted (this=this@entry=0x8f4c918, _t1=..., _t2=0, _t3=0) at .moc/release-shared/moc_qabstractitemmodel.cpp:197
#20 0xb5762133 in QAbstractItemModel::endInsertRows (this=this@entry=0x8f4c918) at kernel/qabstractitemmodel.cpp:2433
#21 0xb6fdaea4 in Analitza::PlotsModel::addPlot (this=0x8f4c918, it=it@entry=0x8f1f690) at ../../analitzaplot/plotsmodel.cpp:211
#22 0x080666af in FunctionEdit::edit (this=0x8f42098) at ../../src/functionedit.cpp:275
#23 0xb577cb56 in QMetaObject::activate (sender=sender@entry=0x8f43220, m=m@entry=0xb665ab0c <QPlainTextEdit::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3539
#24 0xb61f6a35 in QPlainTextEdit::textChanged (this=this@entry=0x8f43220) at .moc/release-shared/moc_qplaintextedit.cpp:260
#25 0xb61f9008 in qt_static_metacall (_a=0xbf89249c, _id=0, _o=0x8f43220, _c=<optimized out>) at .moc/release-shared/moc_qplaintextedit.cpp:136
#26 QPlainTextEdit::qt_static_metacall (_o=0x8f43220, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbf89249c) at .moc/release-shared/moc_qplaintextedit.cpp:130
#27 0xb577cb56 in QMetaObject::activate (sender=sender@entry=0x8f44538, m=m@entry=0xb6655194 <QTextControl::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3539
#28 0xb5f5af45 in QTextControl::textChanged (this=this@entry=0x8f44538) at .moc/release-shared/moc_qtextcontrol_p.cpp:255
#29 0xb5f61b90 in qt_static_metacall (_a=0xbf89263c, _id=0, _o=0x8f44538, _c=<optimized out>) at .moc/release-shared/moc_qtextcontrol_p.cpp:131
#30 QTextControl::qt_static_metacall (_o=0x8f44538, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbf89263c) at .moc/release-shared/moc_qtextcontrol_p.cpp:125
#31 0xb5f63494 in QTextControl::qt_metacall (this=0x8f44538, _c=QMetaObject::InvokeMetaMethod, _id=159535040, _a=0xbf89263c) at .moc/release-shared/moc_qtextcontrol_p.cpp:207
#32 0xb61f9ea3 in QPlainTextEditControl::qt_metacall (this=0x8f44538, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbf89263c) at .moc/release-shared/moc_qplaintextedit_p.cpp:76
#33 0xb576da55 in metacall (argv=argv@entry=0xbf89263c, idx=idx@entry=4, cl=cl@entry=QMetaObject::InvokeMetaMethod, object=0x9824fc0) at kernel/qmetaobject.cpp:245
#34 QMetaObject::metacall (object=object@entry=0x8f44538, cl=cl@entry=QMetaObject::InvokeMetaMethod, idx=idx@entry=4, argv=argv@entry=0xbf89263c) at kernel/qmetaobject.cpp:240
#35 0xb577cd72 in QMetaObject::activate (sender=sender@entry=0x8f465b0, m=m@entry=0xb6664d04 <QTextDocument::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x0) at kernel/qobject.cpp:3558
#36 0xb63f2f45 in QTextDocument::contentsChanged (this=this@entry=0x8f465b0) at .moc/release-shared/moc_qtextdocument.cpp:208
#37 0xb5f9ac27 in QTextDocumentPrivate::contentsChanged (this=this@entry=0x8f46a30) at text/qtextdocument_p.cpp:1654
#38 0xb5f9e38b in QTextDocumentPrivate::finishEdit (this=this@entry=0x8f46a30) at text/qtextdocument_p.cpp:1246
#39 0xb5fa16a0 in QTextDocumentPrivate::insert (this=0x8f46a30, pos=18, strPos=29, strLength=1, format=0) at text/qtextdocument_p.cpp:473
#40 0xb5fc99bf in QTextCursor::insertText (this=0x8f44604, text=..., _format=...) at text/qtextcursor.cpp:1481
#41 0xb5fc9de5 in QTextCursor::insertText (this=0x8f44604, text=...) at text/qtextcursor.cpp:1410
#42 0xb5f6172e in QTextControlPrivate::keyPressEvent (this=0x8f445b0, e=0xbf8931d8) at text/qtextcontrol.cpp:1306
#43 0xb5f65a4d in QTextControl::processEvent (this=0x8f44538, e=0xbf8931d8, matrix=..., contextWidget=0x8f42c40) at text/qtextcontrol.cpp:946
#44 0xb5f58b34 in QTextControl::processEvent (this=0x8f44538, e=e@entry=0xbf8931d8, coordinateOffset=..., contextWidget=contextWidget@entry=0x8f42c40) at text/qtextcontrol.cpp:906
#45 0xb61fb08a in sendControlEvent (e=0xbf8931d8, this=0x8f43268) at widgets/qplaintextedit_p.h:136
#46 QPlainTextEdit::keyPressEvent (this=this@entry=0x8f43220, e=e@entry=0xbf8931d8) at widgets/qplaintextedit.cpp:1698
#47 0xb7006d63 in Analitza::ExpressionEdit::keyPressEvent (this=0x8f43220, e=0xbf8931d8) at ../../analitzagui/expressionedit.cpp:246
#48 0xb5d32254 in QWidget::event (this=0x8f43220, event=0xbf8931d8) at kernel/qwidget.cpp:8421
#49 0xb61462f5 in QFrame::event (this=this@entry=0x8f43220, e=e@entry=0xbf8931d8) at widgets/qframe.cpp:557
#50 0xb61d912c in QAbstractScrollArea::event (this=0x8f43220, e=0xbf8931d8) at widgets/qabstractscrollarea.cpp:996
#51 0xb61fb4dc in QPlainTextEdit::event (this=0x8f43220, e=0xbf8931d8) at widgets/qplaintextedit.cpp:1520
#52 0xb5cdbc7c in QApplicationPrivate::notify_helper (this=0x8bea248, receiver=0x8f43220, e=0xbf8931d8) at kernel/qapplication.cpp:4567
#53 0xb5cdf3bb in QApplication::notify (this=0x4, receiver=0x8f43220, e=0xbf8931d8) at kernel/qapplication.cpp:4008
#54 0xb6854491 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#55 0xb576690e in QCoreApplication::notifyInternal (this=0xbf893b74, receiver=receiver@entry=0x8f43220, event=event@entry=0xbf8931d8) at kernel/qcoreapplication.cpp:946
#56 0xb5cda24d in sendSpontaneousEvent (event=0xbf8931d8, receiver=0x8f43220) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#57 qt_sendSpontaneousEvent (receiver=0x8f43220, event=0xbf8931d8) at kernel/qapplication.cpp:5565
#58 0xb5d8fbd2 in QKeyMapper::sendKeyEvent (keyWidget=0x8f43220, grab=grab@entry=false, type=QEvent::KeyPress, code=89, modifiers=..., text=..., autorepeat=autorepeat@entry=false, count=-1081527848, nativeScanCode=159535040, nativeVirtualKey=159535040, nativeModifiers=159535040) at kernel/qkeymapper_x11.cpp:1866
#59 0xb5d90002 in QKeyMapperPrivate::translateKeyEvent (this=0x8c11500, keyWidget=0x8f43220, event=0xbf8937ac, grab=false) at kernel/qkeymapper_x11.cpp:1836
#60 0xb5d62de8 in QApplication::x11ProcessEvent (this=0xbf893b74, event=0xbf8937ac) at kernel/qapplication_x11.cpp:3639
#61 0xb5d92954 in x11EventSourceDispatch (s=0x8bea5c0, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#62 0xb47b53b3 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#63 0xb47b5750 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#64 0xb47b5831 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#65 0xb5798c21 in QEventDispatcherGlib::processEvents (this=this@entry=0x8bbbee0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#66 0xb5d92a5a in QGuiEventDispatcherGlib::processEvents (this=0x8bbbee0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#67 0xb57653ec in QEventLoop::processEvents (this=this@entry=0xbf893aa8, flags=...) at kernel/qeventloop.cpp:149
#68 0xb57656e1 in QEventLoop::exec (this=this@entry=0xbf893aa8, flags=...) at kernel/qeventloop.cpp:204
#69 0xb576b3fa in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#70 0xb5cd9fc4 in QApplication::exec () at kernel/qapplication.cpp:3828
#71 0x0805820a in main (argc=1, argv=0xbf893c44) at ../../src/main.cpp:41

Reported using DrKonqi
Comment 1 Aleix Pol 2013-08-16 10:17:31 UTC
I get that crash
Comment 2 Aleix Pol 2013-10-28 11:54:54 UTC

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