Skip to content
Tcl Source Code History Of Ticket a366c6efee
Login

History Of Ticket a366c6efee

Artifacts Associated With Ticket a366c6efee

  1. Ticket change [84373ee3a4] (rid 216530) by dgp on 2023-07-14 14:59:26:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-plain"
    4. 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.
      
    5. foundin initialized to: "trunk"
    6. is_private initialized to: "0"
    7. login: "dgp"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "8e2300e85be5dd1445b9666eb9429055951e33be"
    10. resolution initialized to: "None"
    11. severity initialized to: "Severe"
    12. status initialized to: "Open"
    13. submitter initialized to: "dgp"
    14. subsystem initialized to: "- New Builtin Commands"
    15. title initialized to: "[ledit] corrupts string literal value"
    16. type initialized to: "Bug"
  2. Ticket change [810c6ad020] (rid 216531) by dgp on 2023-07-14 15:01:13:

    1. assignee changed to: "apnadkarni"
    2. login: "dgp"
    3. mimetype: "text/plain"
  3. Ticket change [1b5022ef14] (rid 216532) by jan.nijtmans on 2023-07-14 15:15:38:

    1. icomment:
      This smells like the TclDuplicatePureObj() danger somewhere.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  4. Ticket change [0eecc81cd1] (rid 216538) by apnadkarni on 2023-07-15 04:06:30:

    1. 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.
      
    2. login: "apnadkarni"
    3. mimetype: "text/plain"
  5. Ticket change [050da462e6] (rid 216539) by apnadkarni on 2023-07-15 04:40:36:

    1. icomment:
      Found the issue, as always not where I suspected. Fix forthcoming.
      
    2. login: "apnadkarni"
    3. mimetype: "text/plain"
  6. Ticket change [a9b1af4949] (rid 216554) by apnadkarni on 2023-07-16 07:27:34:

    1. closedate changed to: "2460141.81081139"
    2. closer changed to: "apnadkarni"
    3. 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.
      
    4. login: "apnadkarni"
    5. mimetype: "text/x-fossil-plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"