Tcl Source Code

View Ticket
Login
Ticket UUID: 1670091
Title: ensemble panic
Type: Bug Version: obsolete: 8.5a6
Submitter: dgp Created on: 2007-02-27 15:36:10
Subsystem: 21. [namespace] Assigned To: dgp
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2007-03-13 02:11:15
Resolution: Fixed Closed By: dgp
    Closed on: 2007-03-12 19:11:15
Description:
Following script leads to panic:

proc demo args {}
set target [list ::demo x]
proc trial args {string length $::target}
trace add execution demo enter trial
namespace ensemble create -command foo -map [list bar $target]
foo bar

Problem is that the runResultingSubcommand
section of NsEnsembleImplementationCmd
doesn't preserve the prefixObjv it pulls
from a ListObj, and shimmering can lose
its validity.

Attached patch is a fix.
User Comments: dgp added on 2007-03-13 02:11:15:
Logged In: YES 
user_id=80530
Originator: YES

patch committed along
with test.

dkf added on 2007-02-27 23:01:41:
Logged In: YES 
user_id=79902
Originator: NO

Seems reasonable to me. Any fix must include a new test (to exercise this horrible case).

dgp added on 2007-02-27 22:36:12:

File Added - 217987: ens.patch

Attachments: