Artifacts Associated With Ticket 767676ffffffffffffffffffffffffffffffffff
Ticket change [9eedc1a277] (rid 96560) by hgiese on 2003-07-08 11:08:32:
- assignee initialized to: "andreas_kupries"
- cmimetype initialized to: "text/plain"
- 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 - foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "hgiese"
- subsystem initialized to: "25. Channel System"
- title initialized to: "Patch for failing tests"
- type initialized to: "Patch"
Ticket change [35e60b3c08] (rid 107017) by hgiese on 2003-07-08 18:08:32:
- icomment:
File Added - 55236: tclPipe_c.diff
- login: "hgiese"
- mimetype: "text/plain"
- username: "hgiese"
- icomment:
Add attachment "tclPipe_c.diff" [129e57502f] (rid 124063) by hgiese on 2003-07-08 18:08:32.
Ticket change [b3172cd6ab] (rid 98457) by andreas_kupries on 2004-10-27 02:20:04:
- assignee changed to: "davygrvy"
Ticket change [384548d197] (rid 112172) by andreas_kupries on 2004-10-27 02:20:05:
- icomment:
Logged In: YES user_id=75003 David, does this make sense ?
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [47eb89f0de] (rid 99793) by davygrvy on 2004-10-27 03:29:13:
- closedate changed to: "2004-10-26T20:29:13"
- closer changed to: "davygrvy"
- icomment:
Logged In: YES user_id=7549 fixed. committed to HEAD
- login: "davygrvy"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "davygrvy"