Tcl Source Code

View Ticket
Login
Ticket UUID: 1072654
Title: new [info vars] crash
Type: Bug Version: obsolete: 8.4.8
Submitter: dgp Created on: 2004-11-24 18:10:19
Subsystem: 17. Commands I-L Assigned To: dgp
Priority: 9 Immediate Severity:
Status: Closed Last Modified: 2004-11-25 02:28:53
Resolution: Fixed Closed By: dgp
    Closed on: 2004-11-24 19:28:53
Description:
rmax reports on the chat a 
new segfault in Tcl 8.4.8:

% namespace eval x info vars foo  
Segmentation fault

InfoVarsCmd fails to check
for a NULL back from
Tcl_FindHashEntry().

We need an 8.4.9 release.
User Comments: dgp added on 2004-11-25 02:28:53:
Logged In: YES 
user_id=80530

committed to both branches,

dgp added on 2004-11-25 02:13:35:

File Added - 110000: head.patch

Logged In: YES 
user_id=80530

...and the corresponding patch
for the HEAD branch.

dgp added on 2004-11-25 02:05:32:

File Added - 109998: 1072654.patch

Logged In: YES 
user_id=80530

attached patch includes
fix and test suite addition.

hobbs added on 2004-11-25 01:57:18:
Logged In: YES 
user_id=72656

This occurs because the tclCmdIL.c:1992 does not check that
entryPtr could be NULL.  This requires a test case to go in
with it as well.

Attachments: