Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2017-11-25
15:41 • New ticket [4f6a1ebd64] ensemble: segmentation fault when -subcommand and -map ... artifact: fcd4c610d1 user: pooryorick
2007-03-13
02:11 • Closed ticket [1670091fff]: ensemble panic plus 8 other changes artifact: 7e89e25ff0 user: dgp
2007-02-27
23:01 • Ticket [1670091fff]: 4 changes artifact: edcf12d791 user: dkf
22:36 • Ticket [1670091fff]: 4 changes artifact: 078880fd59 user: dgp
22:36 • Add attachment ens.patch to ticket [1670091fff] artifact: 4c98dfb4f8 user: dgp
15:36 • New ticket [1670091fff] ensemble panic. artifact: 05f8ca355b user: dgp

ensemble panic

Closed / Fixed1670091fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2007-02-27 15:36:10
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.
dgpplain2007-02-27 22:36:12
File Added - 217987: ens.patch
dkfplain2007-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).
dgpplain2007-03-13 02:11:15
Logged In: YES 
user_id=80530
Originator: YES

patch committed along
with test.
Log in (anonymous is fine) to add a comment.

Attachments: