Interpreter crashes upon 'exit'
Closed / Fixed218547ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:02:00
OriginalBugID: 988 Bug Version: 8.1a2 SubmitDate: '1998-12-17' LastModified: '1999-03-30' Severity: LOW Status: Released Submitter: pat ChangedBy: stanton RelatedBugIDs: 1273 1573 1593 OS: Linux OSVersion: 2.0.29 Machine: X86 FixedDate: '1999-03-30' FixedInVersion: 8.1b3 ClosedDate: '2000-10-25' Extensions: Memchan, but anz other extension with a channel type will do CustomShell: Freshly configured and compiled 8.1a2 / 8.1b1 interpreter. ReproducibleScript: Compile 8.1a2 (or 8.1b1), the memchan extension, then do % package require Memchan 1.4 % memchan mem0 % exit Remark: Any other extension providing a new channel type should exhibit the same behaviour. ObservedBehavior: The interpreter crashed (Segmentation fault) DesiredBehavior: The interpreter should exit cleanly I traced the interpreter while it was executing the 'exit' and found out that Tcl unloads the memchan library first, and then tries to close the remaining open channel, hitting an invalid 'typePtr'. The source for the memchan extension can be found at http://www.oche.de/~akupries/tcltk.html ---- Related Finalization Bugs: 1573 & 1593. 03/24/1999 14:40 - surles - Unloading of libraries is deferred until after exit handlers have been invoked. 03/30/1999 14:25 - stanton -
welch Closed ticket [218547ffff].
[History diff]2000-10-26 08:24:13
dgp Ticket [218547ffff]: 3 changes
[History diff]2001-04-17 04:13:27
Log in (anonymous is fine) to add a comment.