Skip to content
Tcl Source Code History Of Ticket da5e1bc7bc
Login

History Of Ticket da5e1bc7bc

Artifacts Associated With Ticket da5e1bc7bc

  1. Ticket change [bb80038fd9] (rid 241547) by dgp on 2025-06-16 19:37:25:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      $ make test-tcl TESTFLAGS='-singleproc 1 -file "exec.test process.test"'
      ...
      exec.test
      process.test
      
      
      ==== process-3.1 empty subprocess list FAILED
      ==== Contents of test case:
      
          llength [tcl::process list]
      
      ---- Result was:
      1
      ---- Result should have been (exact matching):
      0
      ==== process-3.1 FAILED
      
      
      
      ==== process-3.2 empty subprocess status FAILED
      ==== Contents of test case:
      
          dict size [tcl::process status]
      
      ---- Result was:
      1
      ---- Result should have been (exact matching):
      0
      ==== process-3.2 FAILED
      
      
      
      ==== process-4.1 exec one child FAILED
      ==== Contents of test case:
      
          tcl::process autopurge 0
          set pid [exec [interpreter] $path(exit) 0 &]
          set list [tcl::process list]
          set statuses [tcl::process status -wait]
          set status [lindex [tcl::process status $pid] 1]
          expr {
      	   [llength $list] eq 1
      	&& [lindex $list 0] eq $pid
      	&& [dict size $statuses] eq 1
      	&& [dict get $statuses $pid] eq $status
      	&& $status eq 0
          }
      
      ---- Result was:
      0
      ---- Result should have been (exact matching):
      1
      ==== process-4.1 FAILED
      
      
      
      ==== process-4.2 exec two children in parallel FAILED
      ==== Contents of test case:
      
          tcl::process autopurge 0
          set pid1 [exec [interpreter] $path(exit) 0 &]
          set pid2 [exec [interpreter] $path(exit) 0 &]
          set list [tcl::process list]
          set statuses [tcl::process status -wait]
          set status1 [lindex [tcl::process status $pid1] 1]
          set status2 [lindex [tcl::process status $pid2] 1]
          expr {
      	   [llength $list] eq 2
      	&& [lsearch $list $pid1] >= 0
      	&& [lsearch $list $pid2] >= 0
      	&& [dict size $statuses] eq 2
      	&& [dict get $statuses $pid1] eq $status1
      	&& [dict get $statuses $pid2] eq $status2
      	&& $status1 eq 0
      	&& $status2 eq 0
          }
      
      ---- Result was:
      0
      ---- Result should have been (exact matching):
      1
      ==== process-4.2 FAILED
      
      
      
      ==== process-4.3 exec 3-stage pipe FAILED
      ==== Contents of test case:
      
          tcl::process autopurge 0
          set pids [exec  [interpreter] $path(exit) 0  | [interpreter] $path(exit) 0  | [interpreter] $path(exit) 0  &]
          lassign $pids pid1 pid2 pid3
          set list [tcl::process list]
          set statuses [tcl::process status -wait]
          set status1 [lindex [tcl::process status $pid1] 1]
          set status2 [lindex [tcl::process status $pid2] 1]
          set status3 [lindex [tcl::process status $pid3] 1]
          expr {
      	   [llength $pids] eq 3
      	&& [llength $list] eq 3
      	&& [lsearch $list $pid1] >= 0
      	&& [lsearch $list $pid2] >= 0
      	&& [lsearch $list $pid3] >= 0
      	&& [dict size $statuses] eq 3
      	&& [dict get $statuses $pid1] eq $status1
      	&& [dict get $statuses $pid2] eq $status2
      	&& [dict get $statuses $pid3] eq $status3
      	&& $status1 eq 0
      	&& $status2 eq 0
      	&& $status3 eq 0
          }
      
      ---- Result was:
      0
      ---- Result should have been (exact matching):
      1
      ==== process-4.3 FAILED
      
      
      
      ==== process-5.1 exec one child FAILED
      ==== Contents of test case:
      
          tcl::process autopurge 0
          set f [open "|\"[interpreter]\" \"$path(exit)\" 0"]
          set pid [pid $f]
          set list [tcl::process list]
          set statuses [tcl::process status -wait]
          set status [lindex [tcl::process status $pid] 1]
          expr {
      	   [llength $list] eq 1
      	&& [lindex $list 0] eq $pid
      	&& [dict size $statuses] eq 1
      	&& [dict get $statuses $pid] eq $status
      	&& $status eq 0
          }
      
      ---- Result was:
      0
      ---- Result should have been (exact matching):
      1
      ==== process-5.1 FAILED
      
      
      
      ==== process-5.2 exec two children in parallel FAILED
      ==== Contents of test case:
      
          tcl::process autopurge 0
          set f1 [open "|\"[interpreter]\" \"$path(exit)\" 0"]
          set f2 [open "|\"[interpreter]\" \"$path(exit)\" 0"]
          set pid1 [pid $f1]
          set pid2 [pid $f2]
          set list [tcl::process list]
          set statuses [tcl::process status -wait]
          set status1 [lindex [tcl::process status $pid1] 1]
          set status2 [lindex [tcl::process status $pid2] 1]
          expr {
      	   [llength $list] eq 2
      	&& [lsearch $list $pid1] >= 0
      	&& [lsearch $list $pid2] >= 0
      	&& [dict size $statuses] eq 2
      	&& [dict get $statuses $pid1] eq $status1
      	&& [dict get $statuses $pid2] eq $status2
      	&& $status1 eq 0
      	&& $status2 eq 0
          }
      
      ---- Result was:
      0
      ---- Result should have been (exact matching):
      1
      ==== process-5.2 FAILED
      
      
      
      ==== process-5.3 exec 3-stage pipe FAILED
      ==== Contents of test case:
      
          tcl::process autopurge 0
          set f [open "|
      	  \"[interpreter]\" \"$path(exit)\" 0
      	| \"[interpreter]\" \"$path(exit)\" 0
      	| \"[interpreter]\" \"$path(exit)\" 0
          "]
          set pids [pid $f]
          lassign $pids pid1 pid2 pid3
          set list [tcl::process list]
          set statuses [tcl::process status -wait]
          set status1 [lindex [tcl::process status $pid1] 1]
          set status2 [lindex [tcl::process status $pid2] 1]
          set status3 [lindex [tcl::process status $pid3] 1]
          expr {
      	   [llength $pids] eq 3
      	&& [llength $list] eq 3
      	&& [lsearch $list $pid1] >= 0
      	&& [lsearch $list $pid2] >= 0
      	&& [lsearch $list $pid3] >= 0
      	&& [dict size $statuses] eq 3
      	&& [dict get $statuses $pid1] eq $status1
      	&& [dict get $statuses $pid2] eq $status2
      	&& [dict get $statuses $pid3] eq $status3
      	&& $status1 eq 0
      	&& $status2 eq 0
      	&& $status3 eq 0
          }
      
      ---- Result was:
      0
      ---- Result should have been (exact matching):
      1
      ==== process-5.3 FAILED
      
    5. foundin initialized to: "9.0.2"
    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: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "dgp"
    14. subsystem initialized to: "69. Other"
    15. title initialized to: "test suite regression in Tcl 9.0.2"
    16. type initialized to: "Bug"
  2. Ticket change [0b8788f25f] (rid 241548) by dgp on 2025-06-16 19:38:50:

    1. icomment:
      
      Something in test file exec.test leaves an interpreter in
      a state where the tests of tcl::process in process.test
      cannot pass.
      
      Whatever the problem is, it seems to have arrived as a
      regression since Tcl 9.0.1
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  3. Ticket change [5076cfdc86] (rid 241549) by dgp on 2025-06-16 19:48:48:

    1. assignee changed to: "apnadkarni"
    2. icomment:
      
      Bisecting says this is the fault of TIP 716.
      
      Most likely its additions to exec.test.
      
    3. login: "dgp"
    4. mimetype: "text/plain"
  4. Ticket change [b24d78368c] (rid 241550) by dgp on 2025-06-16 19:52:49:

    1. icomment:
      
      -skip exec-22.1
      
      makes the failures go away.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  5. Ticket change [a6736685f3] (rid 241555) by apnadkarni on 2025-06-17 04:35:13:

    1. icomment:
      Thanks for the diagnosis. Proposed fix in branch [bug-da5e1bc7bc](https://core.tcl-lang.org/tcl/ci/bug-da5e1bc7bc).
      
      Channel was not being closed in this and other error paths leaving the child process around and causing the process tests to fail in singleproc mode.
      
    2. login: "apnadkarni"
    3. mimetype: "text/x-markdown"
  6. Ticket change [e55c9fadde] (rid 241623) by dgp on 2025-06-17 16:09:57:

    1. closedate changed to: "2460844.17358345"
    2. closer changed to: "dgp"
    3. icomment:
      
      The patch is an effective fix.  Merged to the 9-0-branch.
      Will merge other places from there.
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"