Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1449 string map crashes with empty charmap

obsolete: 8.3.2
closed-fixed
7
2001-03-13
2001-03-12
Anonymous
No

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.

Discussion

    • labels: 104246 --> 18. Commands M-Z
    • priority: 5 --> 7
    • assigned_to: nobody --> dkf
     
    • status: open --> closed-fixed
     
  • Logged In: YES
    user_id=79902

    Hmph. A missing {return TCL_OK;} looks to be the culprit...