Overview
| Artifact ID: | e4deab9ff94bdc05373dd7d61af0712642e1f3ee |
|---|---|
| Ticket: | 3400944fffffffffffffffffffffffffffffffff
[exit] creates leaks |
| User & Date: | foxcruiser on 2011-08-31 20:20:06 |
Changes
- icomment:
We got the same issue with [exit] when memory debugging XOTcl/NSF based on our test suite (with an internal refcounter and valgrind). We ended up with falling back to a graceful unwind instead of Tcl_Exit(), for the scope of test scripts: proc graceFullExit {{statuscode "1"}} { array set map {1 ok -1 error} set errorcode $map($statuscode) interp alias {} ::exit {} interp expose {} exit; return -code $errorcode -level [expr {[info level]-1}] "Test was exited with code $statuscode" } and then, before evaluating a test body: interp hide {} exit; interp alias {} ::exit {} ::graceFullExit works fine for us ... - login: "foxcruiser"
- mimetype: "text/plain"
- username: "foxcruiser"