Artifacts Associated With Ticket 1468858fffffffffffffffffffffffffffffffff
Ticket change [d061204560] (rid 113171) by kingbrian on 2006-04-11 21:13:00:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Trying to do some basic calculations with expr and format is barfing on the first run and working on subsequent on a P4: tcl>set prefix 0x03000000 tcl>set mask 0xff000000 tcl>set j [expr $prefix | ~$mask+1] tcl>set last [format 0x%08x $j] Error: tcl>set last [format 0x%08x $j] tcl>set last [format 0x%08x $j] tcl>set last [format 0x%08x $j] This is on an AMD64: tcl>set prefix 0x03000000 tcl>set mask 0xff000000 tcl>set j [expr $prefix | ~$mask+1] tcl>set last [format 0x%08x $j] tcl>puts $last 0xffffffff03000000 This is on a P3 tcl>set prefix 0x03000000 tcl>set mask 0xff000000 tcl>set j [expr $prefix | ~$mask+1] tcl>set last [format 0x%08x $j] Error: tcl>set last [format 0x%08x $j] tcl>puts $last 0x03000000 This is with default redhat packages.
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "kingbrian"
- subsystem initialized to: "None"
- title initialized to: "format bugs on P4's and AMD64's"
- type initialized to: "Bug"
Ticket change [3a0f2be5d0] (rid 112497) by hobbs on 2006-04-12 04:39:07:
- assignee changed to: "dgp"
- resolution changed to: "Invalid"
- status changed to: "Pending"
Ticket change [47f1e6e006] (rid 99798) by hobbs on 2006-04-12 04:39:08:
- closedate changed to: "2006-04-11T21:39:08"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 What version of Tcl was this with? I cannot repro the problem on AMD64 and P4 using SuSE 9.2 on both, either in 8.4 or 8.5.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
Ticket change [21f3fd7b5a] (rid 130668) by kingbrian on 2006-04-12 04:47:31:
- icomment:
Logged In: YES user_id=1500042 This is on FC3 with tcl-8.4.7-2
- login: "kingbrian"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "kingbrian"
- icomment:
Ticket change [0f6b426584] (rid 94788) by hobbs on 2006-04-12 04:50:58:
- closedate changed to: "2006-04-11T21:50:58"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 Please retest with the head (8.4.13) or you can grab ActiveTcl 8.4.12 at http://www.activestate.com/ for a quick test.
- login: "hobbs"
- mimetype: "text/plain"
- status changed to: "Pending"
- username: "hobbs"
Ticket change [cfd4c4062c] (rid 113058) by dgp on 2006-04-12 10:06:55:
- icomment:
Logged In: YES user_id=80530 It's a bit difficult to follow the original report (some pasting errors?), but it looks like the issue is whether 0x03000000 or 0xffffffff03000000 is the correct result of [format 0x%08x -4244635648] ? The answer is that the correct result is platform-dependent and varies depending on the value of ::tcl_platform(wordSize), I think. Which result do you want your script to produce portably?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [7e819d645b] (rid 97422) by sf-robot on 2006-04-26 09:20:27:
- closedate changed to: "2006-04-26T02:20:27"
- closer changed to: "sf-robot"
- icomment:
Logged In: YES user_id=1312539 This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).
- login: "sf-robot"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "sf-robot"