Tcl Source Code

View Ticket
Login
Ticket UUID: 1562528
Title: Wrong use of 0 in Tcl_AppendResult
Type: Bug Created on: 2006-09-20 22:32:55
Submitter: eugene_cdn Assigned to: dkf
Subsystem: 49. Threading Severity:
Priority: 9 Immediate Last modified: 2006-10-07 09:20:07
Status: Closed Closed by: sf-robot
Resolution: Fixed Closed on: 2006-10-07 02:20:07
Version: obsolete: 8.5a4
Description:
In tclThreadTest.c, line 429:
  Tcl_AppendResult(interp,"can't create a new thread",0);
On 64-bit platform '0' becomes 32-bit '0', not NULL,
and this can cause core dump. We had such a crash on
Linux, that's why we grepped all sources.
Many commands do not fit into one line, so there may be
much more of such bugs.
User Comments:
eugene_cdn added on 2006-09-21 05:42:30:
Logged In: YES 
user_id=518794

The same problem was found in Tk, in tkImgBmap.c, lines 1235
and 1239:
    Tcl_AppendResult(interp, buffer, 0);
Please forward/fix this too. Bug report system does not
allow me to submit a bug with the same name to Tk.

dkf added on 2006-09-21 07:03:25:
Logged In: YES 
user_id=79902

Tk parts fixed in HEAD. Tcl still to fix.

hobbs added on 2006-09-21 07:06:03:
Logged In: YES 
user_id=72656

Please do 8.4 as well.  It shouldn't be too many changes,
likely all in the same places, and it would be nice to have
8.4 not have this known possible crash issue.

dkf added on 2006-09-22 21:54:38:
Logged In: YES 
user_id=79902

Fixed Tcl. Fixed 8.4 branches of Tcl and Tk (as long as it
is only the same files affected; did not re-audit 8.4!
Please comment here if anywhere missed.)

sf-robot added on 2006-10-07 09:20:07:
Logged In: YES 
user_id=1312539

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).