Bug 191229 - Crash after abort and resume of program containing a for loop. Memory allocation error.
Summary: Crash after abort and resume of program containing a for loop. Memory alloca...
Status: RESOLVED FIXED
Alias: None
Product: kturtle
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Cies Breijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-01 12:14 UTC by Michał Pomorski
Modified: 2009-05-01 13:24 UTC (History)
1 user (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 Michał Pomorski 2009-05-01 12:14:41 UTC
Version:           0.8 beta (using KDE 4.2.2)
OS:                Linux
Installed from:    Fedora RPMs

Load the "curly" program from examples.
Press run. Before it finishes, press abort, then pres run again. Crash.

Happens only if a program contains a for loop.

Application: KTurtle (kturtle), signal SIGABRT
[Current thread is 1 (Thread 0xb7ff9770 (LWP 31049))]

Thread 1 (Thread 0xb7ff9770 (LWP 31049)):
[KCrash Handler]
#6  0xb802c424 in __kernel_vsyscall ()
#7  0x0048a460 in raise () from /lib/libc.so.6
#8  0x0048be28 in abort () from /lib/libc.so.6
#9  0x004c7fed in __libc_message () from /lib/libc.so.6
#10 0x004ce3a4 in malloc_printerr () from /lib/libc.so.6
#11 0x004d0356 in free () from /lib/libc.so.6
#12 0x046c4591 in operator delete () from /usr/lib/libstdc++.so.6
#13 0x08079d45 in _start ()
Comment 1 Niels Slot 2009-05-01 12:59:43 UTC
SVN commit 961988 by nielsslot:

Prevent KTurtle from crashing after a program was stopped and started while executing a for loop.
The crash occured because it was possible that KTurtle would delete the globalVariableTable more than once.
BUG: 191229


 M  +7 -1      executer.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=961988
Comment 2 Michał Pomorski 2009-05-01 13:24:37 UTC
Good work!