Skip to content
Tcl Source Code History Of Ticket 6022b9f946
Login

History Of Ticket 6022b9f946

Artifacts Associated With Ticket 6022b9f946

  1. Ticket change [cb3a25bc39] (rid 215031) by jan.nijtmans on 2023-05-17 15:22:04:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      When running the Tk testsuite against Tcl 9.0, there are 3 test-failures:
      
      See: [https://github.com/tcltk/tk/actions/runs/5000425737/jobs/8962784135]
      
      But the build with 8.7 and 9.1 (unofficial) is OK. This points to a problem in the current trunk, not actually in Tk:
      
      <pre>
      imgPhoto.test
      
      
      ==== imgPhoto-4.79 ImgPhotoCmd, transparency get: no option FAILED
      ==== Contents of test case:
      
          set pixelCoords {{156 239} {76 207} {153 213} {139 43} {75 112}}
          foreach coord $pixelCoords {
      	lappend result [photo1 transparency get {*}$coord]
          }
          set result
      
      ---- Test generated error; Return code was: 1
      ---- Return code should have been one of: 0 2
      ---- errorInfo: can't read "coord": no such variable
          while executing
      "photo1 transparency get {*}$coord"
          ("foreach" body line 2)
          invoked from within
      "foreach coord $pixelCoords {
      	lappend result [photo1 transparency get {*}$coord]
          }"
          ("uplevel" body line 3)
          invoked from within
      "uplevel 1 $script"
      ---- errorCode: TCL LOOKUP VARNAME coord
      ==== imgPhoto-4.79 FAILED
      
      
      
      ==== imgPhoto-4.81 ImgPhotoCmd, transparency get: -alpha FAILED
      ==== Contents of test case:
      
          set pixelCoords {{156 239} {76 207} {153 213} {139 43} {75 112}}
          foreach coord $pixelCoords {
      	lappend result [photo1 transparency get {*}$coord -alpha]
          }
          set result
      
      ---- Test generated error; Return code was: 1
      ---- Return code should have been one of: 0 2
      ---- errorInfo: can't read "coord": no such variable
          while executing
      "photo1 transparency get {*}$coord -alpha"
          ("foreach" body line 2)
          invoked from within
      "foreach coord $pixelCoords {
      	lappend result [photo1 transparency get {*}$coord -alpha]
          }"
          ("uplevel" body line 3)
          invoked from within
      "uplevel 1 $script"
      ---- errorCode: TCL LOOKUP VARNAME coord
      ==== imgPhoto-4.81 FAILED
      
      imgSVGnano.test
      listbox.test
      main.test
      menu.test
      menuDraw.test
      menubut.test
      message.test
      msgbox.test
      obj.test
      oldpack.test
      option.test
      pack.test
      packgrid.test
      panedwindow.test
      
      
      ==== panedwindow-17.1 MoveSash, move right FAILED
      ==== Contents of test case:
      
          panedwindow .p -showhandle false -borderwidth 0 -sashpad 0 -sashwidth 2
          foreach w {.f1 .f2} c {red blue} {
              .p add [frame $w -height 20 -width 20 -bg $c] -sticky nsew
          }
      
          # Get the requested width of the paned window
          lappend result [winfo reqwidth .p]
      
          .p sash place 0 30 0
      
          # Get the reqwidth again, to make sure it hasn't changed
          lappend result [winfo reqwidth .p]
      
          # Check that the sash moved
          lappend result [.p sash coord 0]
      
      ---- Test generated error; Return code was: 1
      ---- Return code should have been one of: 0 2
      ---- errorInfo: unknown color name "3"
          (processing "-bg" option)
          invoked from within
      "frame $w -height 20 -width 20 -bg $c"
          ("foreach" body line 2)
          invoked from within
      "foreach w {.f1 .f2} c {red blue} {
              .p add [frame $w -height 20 -width 20 -bg $c] -sticky nsew
          }"
          ("uplevel" body line 3)
          invoked from within
      "uplevel 1 $script"
      ---- errorCode: TK LOOKUP COLOR 3
      ==== panedwindow-17.1 FAILED
      
      pkgconfig.test
      ...
      </pre>
      
      Looking at the build history, this build was done using Tcl commit [427bc951fbcffe81], which the previous successfull build was done using Tcl commit [8181a7f089ec83e0].
      
      There are 3 suspicious commits in this range:
      
      * [427bc951fbcffe81] Fix memory leaks and remove unnecessary reference count bounce.
      
      * [40af0258ecad67cd] New function, TclDuplicatePureObj(), ....
      
      * [0785828c472b53ea] Add Tcl_DecrRefCount() missing from [4b1a20629e].
      
      Which of those 3 commit's is the coolpit, I don't know.
      
    5. foundin initialized to: "9.0"
    6. is_private initialized to: "0"
    7. login: "jan.nijtmans"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "0c50e5320704d174412e57b873d8932de15303e0"
    10. resolution initialized to: "None"
    11. severity initialized to: "Severe"
    12. status initialized to: "Open"
    13. submitter initialized to: "jan.nijtmans"
    14. subsystem initialized to: "10. Objects"
    15. title initialized to: "Tk when built against Tcl 9.0 broken"
    16. type initialized to: "Bug"
  2. Ticket change [6e574c8bb4] (rid 215032) by jan.nijtmans on 2023-05-17 15:22:28:

    1. assignee changed to: "pooryorick"
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
  3. Ticket change [330b41de1f] (rid 215033) by jan.nijtmans on 2023-05-17 15:55:13:

    1. icomment:
      I did a bisect, in order to locate the problem. Fossil tells me:
      <pre>
      bisect complete
        1 BAD     2023-05-16 06:25:19 8e4d8a60539e13a9
        4 BAD     2023-05-16 05:25:31 40af0258ecad67cd CURRENT
        3 GOOD    2023-05-15 20:49:43 0785828c472b53ea
        2 GOOD    2023-05-14 08:21:50 8181a7f089ec83e0
      </pre>
      
      So, the problematic commit is: [40af0258ecad67cd]: New function, TclDuplicatePureObj(), doesn't duplicate the string ....
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  4. Ticket change [c3b619cf62] (rid 215054) by pooryorick on 2023-05-17 19:26:20:

    1. icomment:
      Commit [1452a806b7] is the wrong fix for this issue, as it was already fixed in [ [c405bdd1f0].  Therefore, I've backed out [c405bdd1f0].
      
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"
  5. Ticket change [55d6b9b487] (rid 215055) by pooryorick on 2023-05-17 19:28:13:

    1. icomment:
      Ooops,scratch that last comment.  It should have read as follows:
      
      Commit [1452a806b7] is the wrong fix for this issue, as it was already fixed in [c405bdd1f0]. Therefore, I've backed out [1452a806b7].
      
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"
  6. Ticket change [a0d21bf6ca] (rid 215056) by pooryorick on 2023-05-17 19:55:32:

    1. login: "pooryorick"
    2. mimetype: "text/plain"
    3. resolution changed to: "Fixed"
    4. status changed to: "Pending"
  7. Ticket change [2c0155f78d] (rid 215057) by pooryorick on 2023-05-17 19:55:48:

    1. login: "pooryorick"
    2. mimetype: "text/plain"
    3. severity changed to: "Important"
  8. Ticket change [cd33527b63] (rid 215058) by jan.nijtmans on 2023-05-17 19:57:01:

    1. icomment: "Commit war starting again ...."
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  9. Ticket change [2ff0d7a0e6] (rid 215059) by jan.nijtmans on 2023-05-17 20:07:44:

    1. closedate changed to: "2460082.33870458"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      It - indeed - appears that [c405bdd1f0] already fixed this. How could I have known that?
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. status changed to: "Closed"
  10. Ticket change [956642180a] (rid 215060) by jan.nijtmans on 2023-05-17 20:12:28:

    1. closedate changed to: "2460082.34200139"
    2. icomment:
      By the way, I like the Tcl_DuplicatePureObj() function and the error-checking that you added. But ... the proper way of "causing no harm" is testing it in a branch first. The "main" branch is not for experimenting, as you are doing.
      
      My commit was not a fix, it was just backing out the harmful commit. I don't want to spend time correcting your mistakes
      
    3. login: "jan.nijtmans"
    4. mimetype: "text/x-fossil-wiki"
  11. Ticket change [efd945185c] (rid 215074) by pooryorick on 2023-05-18 08:11:45:

    1. closer changed to: "nobody"
    2. icomment:
      Before committing to trunk I tested each commit both with a
      --enable-symbols=debug CFLAGS='-DPURIFY' build, along with a complete
      valgrind run, and also with a --enable-symbols=mem build.  If the C/I
      system were currently testing branches other than the main lines of
      development, I would have let it run on a separate branch before merging
      it.  I do what I can to make sure errors don't make it to trunk. I
      consider Tcl_DuplicatePureObj() a needed enhancement, not an experiment,
      but it did stem from an experimental branch, pyk-objinterface.
      
      Maybe I'll start testing Tcl with Tk too before merging with trunk.  On
      my platform hundreds of Tk tests fail every time, so I'll have to run
      the tests both before  and after, and compare the differences.
      
      I don't want spend time correcting other peoples' mistakes either, but I
      do it when necessary.  You could have reproduced the failure using the
      latest commit to trunk before reporting it.  That's what I always do.
      
    3. login: "pooryorick"
    4. mimetype: "text/x-fossil-wiki"
    5. status changed to: "Pending"
  12. Ticket change [3509c43123] (rid 215246) by pooryorick on 2023-05-22 20:43:24:

    1. closedate changed to: "2460087.36348108"
    2. closer changed to: "pooryorick"
    3. login: "pooryorick"
    4. mimetype: "text/plain"
    5. status changed to: "Closed"
  13. Ticket change [164ce01bde] (rid 216427) by pooryorick on 2023-07-12 14:03:53:

    1. closedate changed to: "2460138.08603023"
    2. icomment:
      The last trouble reported with TclDuplicatePureObj() was fixed almost two months ago, in [c405bdd1f0].  Since then there have been no test failures until the merge of TIP 636.  That clearly indicates that the trouble is with the TIP 636 merge, and that's what should be reverted here.
      
    3. login: "pooryorick"
    4. mimetype: "text/x-fossil-wiki"
  14. Ticket change [c7e0010c21] (rid 216429) by pooryorick on 2023-07-12 14:05:47:

    1. closedate changed to: "2460138.08735076"
    2. icomment:
      Oops, please disregard the previous  repeated message.  Here is the new message:
      
      
      The last trouble reported with TclDuplicatePureObj() was fixed almost two months ago, in [c405bdd1f0]. Since then there have been no test failures until the merge of TIP 636. That clearly indicates that the trouble is with the TIP 636 merge, and that's what should be reverted here.
      
    3. login: "pooryorick"
    4. mimetype: "text/x-fossil-wiki"
  15. Ticket change [d9431d13c2] (rid 216431) by pooryorick on 2023-07-12 14:07:52:

    1. closedate changed to: "2460138.08879983"
    2. icomment:
      Note, the previous two messages belong on [a34733451b2cf189], not here.
      
    3. login: "pooryorick"
    4. mimetype: "text/x-fossil-wiki"