Skip to content
Tcl Source Code View Ticket
Login

View Ticket

string map crashes with empty charmap

Closed / Fixed408002ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2001-03-12 19:40:44
When TCL is compiled with  TCL_MEM_DEBUG

string map crashes when an empty charMap is passed.

% info patchlevel
8.3.2
% string map {} aa
file = ./../generic/tclStringObj.c, line = 776
Trying to check whether previously disposed object is
shared.
Aborted

If tcl is compiled without memory debug, the crash is
not immediate 
but will eventually crash later on.
dkf Ticket [408002ffff]: 3 changes [History diff]2001-03-13 17:56:54
dkfplain2001-03-13 18:06:47
Logged In: YES 
user_id=79902

Hmph.  A missing {return TCL_OK;} looks to be the culprit...
dkf Ticket [408002ffff]: 2 changes [History diff]2001-03-13 18:06:48
Log in (anonymous is fine) to add a comment.