Bug 56068 - Core dumps if the function contains a number
Summary: Core dumps if the function contains a number
Status: RESOLVED FIXED
Alias: None
Product: kmplot
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR crash
Target Milestone: ---
Assignee: Klaus-Dieter M
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-17 18:06 UTC by Russ LeBar
Modified: 2004-02-07 19:18 UTC (History)
0 users

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 Russ LeBar 2003-03-17 18:06:40 UTC
Version:            (using KDE KDE 3.1)
Installed from:    Compiled From Sources
Compiler:          gcc 3.2.1 
OS:          Solaris

For example, kmplot will core if the function is f(x)=x^2.  However, f(x)=x*x works. The core dump occurs when OK or Apply are clicked. Running Solaris 8 latest hardware relase on SPARC.

I compiled without debugging code so the backtrace is less than usefu, but here it is (note: KDE does not catch the crash. This is from running gdb kmplot core and then doing a bt).


Program received signal SIGSEGV, Segmentation fault.
0x1c80c in _ZN6Parser7addwertEd ()
(gdb) bt
#0  0x1c80c in _ZN6Parser7addwertEd ()
#1  0x1c290 in _ZN6Parser5heir4Ev ()
#2  0x1c18c in _ZN6Parser5heir3Ev ()
#3  0x1c070 in _ZN6Parser5heir1Ev ()
#4  0x1bcd0 in _ZN6Parser6addfktE7QString ()
#5  0x2d718 in _ZN6FktDlg7onapplyEv ()
#6  0x2decc in _ZN6FktDlg4onokEv ()
#7  0x47f28 in _ZN10FktDlgData9qt_invokeEiP8QUObject ()
#8  0x2d044 in _ZN6FktDlg9qt_invokeEiP8QUObject ()
#9  0xfe2713b8 in _ZN7QObject15activate_signalEP15QConnectionListP8QUObject ()
   from /usr/local/qt-x11-free-3.1.1/lib/libqt-mt.so.3
#10 0xfe271218 in _ZN7QObject15activate_signalEi () from /usr/local/qt-x11-free-3.1.1/lib/libqt-mt.so.3
#11 0xfe2a297c in _ZN7QWidget5eventEP6QEvent () from /usr/local/qt-x11-free-3.1.1/lib/libqt-mt.so.3
#12 0xfe2160dc in _ZN12QApplication14internalNotifyEP7QObjectP6QEvent ()
   from /usr/local/qt-x11-free-3.1.1/lib/libqt-mt.so.3
#13 0xfe21579c in _ZN12QApplication6notifyEP7QObjectP6QEvent () from /usr/local/qt-x11-free-3.1.1/lib/libqt-mt.so.3
#14 0xfeaece08 in _ZN12KApplication6notifyEP7QObjectP6QEvent () from /usr/local/kde31/lib/libkdecore.so.4
#15 0xfe1bae08 in _ZN9QETWidget19translateMouseEventEPK7_XEvent () from /usr/local/qt-x11-free-3.1.1/lib/libqt-mt.so.3
#16 0xfe1b85a8 in _ZN12QApplication15x11ProcessEventEP7_XEvent () from /usr/local/qt-x11-free-3.1.1/lib/libqt-mt.so.3
#17 0xfe1ce618 in _ZN10QEventLoop13processEventsEj () from /usr/local/qt-x11-free-3.1.1/lib/libqt-mt.so.3
#18 0xfe229a24 in _ZN10QEventLoop9enterLoopEv () from /usr/local/qt-x11-free-3.1.1/lib/libqt-mt.so.3
#19 0xfe2298f4 in _ZN10QEventLoop4execEv () from /usr/local/qt-x11-free-3.1.1/lib/libqt-mt.so.3
#20 0xfe21630c in _ZN12QApplication4execEv () from /usr/local/qt-x11-free-3.1.1/lib/libqt-mt.so.3
#21 0x1eda8 in main ()
Comment 1 Russ LeBar 2003-03-17 19:39:35 UTC
I guess I should add that what I meant by f(x)=x*x works is that some functions 
can be plotted. It is only when a constant is put into the function that kmplot 
will core dump. Even f(x)=2 will cause a core dump!
Comment 2 Waldo Bastian 2004-02-02 14:15:18 UTC
Can't reproduce, works fine here. (KDE 3.2)
Comment 3 Anne-Marie Mahfouf 2004-02-07 19:18:24 UTC
Not confirmed, works fine on 3.2 branch and head.