Bug 191229

Summary: Crash after abort and resume of program containing a for loop. Memory allocation error.
Product: [Applications] kturtle Reporter: Michał Pomorski <misieck>
Component: generalAssignee: Cies Breijs <cies>
Status: RESOLVED FIXED    
Severity: crash CC: nielsslot
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

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!