Skip to content
Tcl Source Code History Of Ticket 767676ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 767676ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 767676ffffffffffffffffffffffffffffffffff

  1. Ticket change [9eedc1a277] (rid 96560) by hgiese on 2003-07-08 11:08:32:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Hello out there,
      on Win98 there are 4 failing tests in winpipe.test (not
      Borland specific). They all follow this pattern:
      
      ==== winpipe-4.2 Tcl_WaitPid: return of exception
      codes, SIGFPE FAILED
      ==== Contents of test case:
      
          set f [open "|[tcltest::interpreter]" w+]
          set pid [pid $f]
          puts $f "testexcept float_underflow"
          set status [catch {close $f}]
          list $status [expr {$pid == [lindex $::errorCode
      1]}] [lindex $::errorCode 2]
      
      ---- Result was:
      1 0 SIGFPE
      ---- Result should have been (exact matching):
      1 1 SIGFPE
      
      The reason:
      - On Win9x PIDs are *large* values (like 0xFFFFhhhh)
      - TclCleanupChildren() (in tclpipe.c) uses
      TclFormatInt() to convert the PID to a string,
      resulting in something like -5432.
      - [pid ...] aparently returns an unsigned int (or its
      string equivalent)
      - and the test on equality fails.
      
      The patch proposes to do instead (see the attached diff
      file)
      
      #ifdef __WIN32__
              sprintf(msg1, "%lu", resolvedPid);
      #else
              TclFormatInt(msg1, (long) resolvedPid);
      #endif
      
      (and the equivalent for msg2).
      
      I used a conditional __WIN32__, however it seems to me
      that on *any* platform the PID should be considered
      unsigned, so IMHO there is no need for a conditional.
      Best regards
      Helmut Giese
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "hgiese"
    9. subsystem initialized to: "25. Channel System"
    10. title initialized to: "Patch for failing tests"
    11. type initialized to: "Patch"
  2. Ticket change [35e60b3c08] (rid 107017) by hgiese on 2003-07-08 18:08:32:

    1. icomment:
      
      
      File Added - 55236: tclPipe_c.diff
      
      
      
    2. login: "hgiese"
    3. mimetype: "text/plain"
    4. username: "hgiese"
  3. Add attachment "tclPipe_c.diff" [129e57502f] (rid 124063) by hgiese on 2003-07-08 18:08:32.

  4. Ticket change [b3172cd6ab] (rid 98457) by andreas_kupries on 2004-10-27 02:20:04:

    1. assignee changed to: "davygrvy"
  5. Ticket change [384548d197] (rid 112172) by andreas_kupries on 2004-10-27 02:20:05:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      David, does this make sense ?
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  6. Ticket change [47eb89f0de] (rid 99793) by davygrvy on 2004-10-27 03:29:13:

    1. closedate changed to: "2004-10-26T20:29:13"
    2. closer changed to: "davygrvy"
    3. icomment:
      Logged In: YES 
      user_id=7549
      
      fixed. committed to HEAD
      
      
    4. login: "davygrvy"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "davygrvy"