Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3d6898ce60d9c3068cbd41a4279250cc860aa07325eec33075c641d8e3f5e7c3
Ticket: c0573789867c68d4eb40ae0cd8132d61d6243be7
exec-19.1 test failure on Ubuntu (WSL)
User & Date: apnadkarni on 2026-06-13 08:08:20
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    I see this consistent failure on trunk, I don't recall seeing before.
    
    Tests began at 2026-06-13 13:34:13 IST
    exec.test
    
    
    ==== exec-19.1 exec >> uses O_APPEND FAILED
    ==== Contents of test case:
    
        # Note that we have to allow for the current contents of the temporary
        # file, which is why the result is 14 and not 12
        exec /bin/sh -c  {for a in 1 2 3; do sleep 1; echo $a; done} >>$tmpfile &
        exec /bin/sh -c  {for a in 4 5 6; do sleep 1; echo $a >&2; done} 2>>$tmpfile &
        exec /bin/sh -c  {for a in a b c; do sleep 1; echo $a; done} >>$tmpfile &
        exec /bin/sh -c  {for a in d e f; do sleep 1; echo $a >&2; done} 2>>$tmpfile &
        # The above four shell invocations take about 3 seconds to finish, so allow
        # 5s (in case the machine is busy)
        after 5000
        # Check that no bytes have got lost through mixups with overlapping
        # appends, which is only guaranteed to work when we set O_APPEND on the
        # file descriptor in the [exec >>...]
        file size $tmpfile
    
    ---- Result was:
    22
    ---- Result should have been (exact matching):
    26
    ==== exec-19.1 FAILED
    
  5. is_private changed to: "0"
  6. login: "apnadkarni"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "apnadkarni"
  13. subsystem changed to: "- New Builtin Commands"
  14. title changed to: "exec-19.1 test failure on Ubuntu (WSL)"
  15. type changed to: "Bug"