Artifacts Associated With Ticket a366c6efee
Ticket change [84373ee3a4] (rid 216530) by dgp on 2023-07-14 14:59:26:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-plain"
- comment initialized to:
The tests ledit-4.2 and socket_inet-13.1 interact and cause failure. The interaction can be summarized by this demo script: % proc demo {} { set l { } puts [list [ledit l 1 1] $l] set result foo append result " " bar } % demo {} {} foobar The result "foobar" is wrong. It should be "foo bar". It appears that the string literal " " has had its string value transformed to "" before the append. This might be the result of not managing value-sharing properly when the [ledit] command changes the value of $l from { } to {}. Hope that's enough to lead the [ledit] keepers to a fix. - foundin initialized to: "trunk"
- is_private initialized to: "0"
- login: "dgp"
- priority initialized to: "5 Medium"
- private_contact initialized to: "8e2300e85be5dd1445b9666eb9429055951e33be"
- resolution initialized to: "None"
- severity initialized to: "Severe"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "- New Builtin Commands"
- title initialized to: "[ledit] corrupts string literal value"
- type initialized to: "Bug"
Ticket change [810c6ad020] (rid 216531) by dgp on 2023-07-14 15:01:13:
- assignee changed to: "apnadkarni"
- login: "dgp"
- mimetype: "text/plain"
Ticket change [1b5022ef14] (rid 216532) by jan.nijtmans on 2023-07-14 15:15:38:
- icomment:
This smells like the TclDuplicatePureObj() danger somewhere.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [0eecc81cd1] (rid 216538) by apnadkarni on 2023-07-15 04:06:30:
- icomment:
Will take a look later today. Strangely enough, 8.7 which pretty much shares the ledit code does not seem to have this problem. Not that means much... Thanks Don for a very concise demo.
- login: "apnadkarni"
- mimetype: "text/plain"
- icomment:
Ticket change [050da462e6] (rid 216539) by apnadkarni on 2023-07-15 04:40:36:
- icomment:
Found the issue, as always not where I suspected. Fix forthcoming.
- login: "apnadkarni"
- mimetype: "text/plain"
- icomment:
Ticket change [a9b1af4949] (rid 216554) by apnadkarni on 2023-07-16 07:27:34:
- closedate changed to: "2460141.81081139"
- closer changed to: "apnadkarni"
- icomment:
Fixed in [fe628d36ce]. As to why it did not manifest in 8.7 is that the more sophisticated TclCheckEmptyString check in 9.0 triggered the bug.
- login: "apnadkarni"
- mimetype: "text/x-fossil-plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"