[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:
- 1671001.patch [download] added by dgp on 2007-03-01 00:02:49. [details]