Skip to content
Tcl Source Code History Of Ticket 2933089
Login

History Of Ticket 2933089

Artifacts Associated With Ticket 2933089

  1. Ticket change [c20a31c813] (rid 111431) by cosmoweezer on 2010-01-15 21:02:51:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The info frame sub-command gives incorrect results for source type line info under some conditions as illustrated by the attached sample file. This was tested against 8.5.6 and 8.5.8 on Windows. Prior versions such as 8.4.16 with TIP 280 and 8.5.1 provided correct results.
      
    4. foundin initialized to: "obsolete: 8.5.8"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "cosmoweezer"
    10. subsystem initialized to: "17. Commands I-L"
    11. title initialized to: "info frame incorrect source type results"
    12. type initialized to: "Bug"
  2. Add attachment "info_frame.tcl" [1e10432945] (rid 90909) by cosmoweezer on 2010-01-16 04:02:51.

  3. Ticket change [5fc9bb14bf] (rid 115878) by cosmoweezer on 2010-01-16 04:02:52:

    1. icomment:
      
      
      File Added - 359106: info_frame.tcl
      
      
      
    2. login: "cosmoweezer"
    3. mimetype: "text/plain"
    4. username: "cosmoweezer"
  4. Ticket change [9a8d525273] (rid 110964) by dkf on 2010-01-16 07:21:01:

    1. assignee changed to: "andreas_kupries"
  5. Ticket change [3edf84ef6d] (rid 121348) by andreas_kupries on 2010-01-21 06:58:25:

    1. icomment:
      At first glance I thought that it is calling of get_info_frame through an execution trace which is the problem ... Doesn't seem to be the case however.
      
      A comparison of 8.4.19, 8.5.8, and 8.6 CVS head further shows that 8.6 is OK. It shows the correct line number for the uh-oh case, i.e. 35 ...
      
      And that brought me on the right track. The 'else' branches of all the if conditions are identical, character for character. I.e. they are the same literal, and the byte code compiler maps them to a single Tcl_Obj value in the generated bytecode.
      
      Why is that important ? Because some of the #280 info is tacked on the Tcl_Obj, and the older versions of the core then get confused. When I fixed the tracking of continuation lines in the CVS head (8.6+) I also did some literal-sharing work ... TclCompileObj, in tclExecute.c ... Hm. I thought there (per my comments) that 8.5 would not need such a fix. It seems I am mistaken.
      
      I will have a look, see if my 8.6 work i nthat area can be back-ported easily.
      
      A workaround for you is to change one of the else branches, for example by adding a space somewhere ... Then the strings are not identical and are not mapped to a single Tcl_Obj, and the line-counting logic gets it right.
      
      Side note: $$y ? That is very brittle Tcl, not idiomatic. See http://wiki.tcl.tk/8662 for a discussion of the subject.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  6. Ticket change [0e31664f63] (rid 94568) by andreas_kupries on 2010-02-03 03:51:29:

    1. icomment:
      The fix I had done in 8.6 backported cleanly and without change.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. resolution changed to: "Fixed"
    5. username: "andreas_kupries"
  7. Ticket change [240871a036] (rid 131039) by andreas_kupries on 2010-02-03 03:52:16:

    1. icomment:
      Committed to CVS head of 8.5 branch.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  8. Ticket change [568205f07f] (rid 94332) by andreas_kupries on 2010-02-03 03:52:17:

    1. closedate changed to: "2010-02-02T20:52:17"
    2. closer changed to: "andreas_kupries"
    3. icomment:
      
      
      allow_comments - 1
      
      
      
    4. login: "andreas_kupries"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "andreas_kupries"