Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2007-03-02
17:42 • Ticket [1671001fff] dict update crash status still Closed with 4 other cha... artifact: b4adbc309a user: dkf
17:40 • Closed ticket [1671001fff]. artifact: 44f793417e user: dkf
2007-03-01
16:02 • Ticket [1671001fff]: 6 changes artifact: cef6ddc1b7 user: dkf
00:02 • Add attachment 1671001.patch to ticket [1671001fff] artifact: dd60d9c833 user: dgp
00:02 • Ticket [1671001fff] dict update crash status still Open with 4 other chang... artifact: de480ba860 user: dgp
2007-02-28
23:15 • Ticket [1671001fff]: 4 changes artifact: 8e42a9a2eb user: dgp
15:53 • New ticket [1671001fff]. artifact: 798da13eb2 user: dgp

[dict update] crash

Closed / Fixed1671001fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2007-02-28 15:53:51
This script crashes in
INST_DICT_UPDATE_START:

proc demo x {
    set indices {2 3}
    trace add variable aa write {string length $indices ;# }
    dict update x k aa l bb {}
}
demo {k 1 l 2}

Same issue as other recent crash bugs.
A pointer into a List rep is retrieved,
not preserved, and attempts to use after
shimmering invalidates lead to crash.
dgpplain2007-02-28 23:15:57
Logged In: YES 
user_id=80530
Originator: YES


Change the "write" trace
to a "read" trace and you'll
get a different crash, this
time in INST_DICT_UPDATE_END
dgpplain2007-03-01 00:02:49
File Added - 218183: 1671001.patch

Logged In: YES 
user_id=80530
Originator: YES

patch attached
File Added: 1671001.patch
dkfplain2007-03-01 16:02:22
Logged In: YES 
user_id=79902
Originator: NO

I know how to fix this.

Thanks Don for figuring out how to actually tickle this bug.
dkf Closed ticket [1671001fff]. [History diff]2007-03-02 17:40:08
dkfplain2007-03-02 17:42:37
Logged In: YES 
user_id=79902
Originator: NO

Solved by using aux-data instead of refcounting the list internal rep; leads (with other changes) to clearer code output when debugging.
Log in (anonymous is fine) to add a comment.

Attachments: