Skip Menu |

This queue is for tickets about the Tcl CPAN distribution.

Report information
The Basics
Id: 38712
Status: resolved
Priority: 0/
Queue: Tcl

People
Owner: Nobody in particular
Requestors: balldarrens [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.95
Fixed in: (no value)



Subject: gracefully exiting Tcl
Unable to exit Tcl interpreter (destruction of object cause glibc error). Upon destruction, Tcl object destruction causes glibc error: *** glibc detected *** free(): invalid next size (fast): 0x099fc288 *** Attempt to explicitly destroy object/interpreter using: 1. $tcl->Eval("exit"); 2. $tcl->DESTROY(); Causes global destruction of all other objects to stop (seg fault). Is there a way to gracefully exit out of the interpreter?
On Mon Aug 25 13:20:24 2008, balldarrens@gmail.com wrote: Show quoted text
> Unable to exit Tcl interpreter (destruction of object cause glibc error). > > Upon destruction, Tcl object destruction causes glibc error: > *** glibc detected *** free(): invalid next size (fast): 0x099fc288 *** > > > Attempt to explicitly destroy object/interpreter > using: > 1. $tcl->Eval("exit"); > 2. $tcl->DESTROY(); > > Causes global destruction of all other objects to stop (seg fault). > > Is there a way to gracefully exit out of the interpreter?
deleting interpreter instance should be enough; use Tcl; for (0..500) { my $i = new Tcl; $i->Eval("puts {this is it}"); undef $i; } Or else please show your problem code. I could imagine that destroying Tcl interpreter could be a problem, but we need example to work with