Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-03-13
18:06 • Ticket [408002ffff] string map crashes with empty charmap status still Close... artifact: ebdfb751a6 user: dkf
18:06 • Closed ticket [408002ffff]. artifact: dfbb1e0b10 user: dkf
17:56 • Ticket [408002ffff]: 3 changes artifact: ab1a90b221 user: dkf
2001-03-12
19:40 • New ticket [408002ffff]. artifact: 439cc68053 user: nobody

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.