Artifacts Associated With Ticket 0af9450e56
Ticket change [07f813fcf4] (rid 229952) by dgp on 2024-08-12 16:43:04:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
I see this on the 8.6 branch, not later branches. ==== incr-1.31 no overflow in TclCompileIncrCmd and Tcl_IncrObjCmd, bug [7179c6724cd38271] FAILED ==== Contents of test case: # TclCompileIncrCmd: compiled incr TEBC with immutable constant offs (INST_INCR_*_IMM instructions): lappend res [set i 0; incr i 0x7FFFFFFF] lappend res [set i 0; incr i 0xFFFFFF80] lappend res [set i 0; incr i 0xFFFFFF81] lappend res [set i 0; incr i 0xFFFFFFFF] lappend res [set i 0; incr i 0x10000007F] lappend res [set i 0; incr i 0x100000080] lappend res [set i 0; incr i 0x7FFFFFFFFFFFFFFF] lappend res [set i 0; incr i 0xFFFFFFFFFFFFFF80] lappend res [set i 0; incr i 0xFFFFFFFFFFFFFF81] lappend res [set i 0; incr i 0xFFFFFFFFFFFFFFFF] lappend res [set i 0; incr i 0x1000000000000007F] lappend res [set i 0; incr i 0x10000000000000080] # TclCompileIncrCmd: compiled incr TEBC with dynamic offs (INST_INCR_* instructions without _IMM): lappend res [set i 0; incr i [set x 0x7FFFFFFF]] lappend res [set i 0; incr i [set x 0xFFFFFF80]] lappend res [set i 0; incr i [set x 0xFFFFFF81]] lappend res [set i 0; incr i [set x 0xFFFFFFFF]] lappend res [set i 0; incr i [set x 0x10000007F]] lappend res [set i 0; incr i [set x 0x100000080]] lappend res [set i 0; incr i [set x 0x7FFFFFFFFFFFFFFF]] lappend res [set i 0; incr i [set x 0xFFFFFFFFFFFFFF80]] lappend res [set i 0; incr i [set x 0xFFFFFFFFFFFFFF81]] lappend res [set i 0; incr i [set x 0xFFFFFFFFFFFFFFFF]] lappend res [set i 0; incr i [set x 0x1000000000000007F]] lappend res [set i 0; incr i [set x 0x10000000000000080]] # Tcl_IncrObjCmd: non-compiled incr command (or NRE): set cmd incr lappend res [set i 0; $cmd i 0x7FFFFFFF] lappend res [set i 0; $cmd i 0xFFFFFF80] lappend res [set i 0; $cmd i 0xFFFFFF81] lappend res [set i 0; $cmd i 0xFFFFFFFF] lappend res [set i 0; $cmd i 0x10000007F] lappend res [set i 0; $cmd i 0x100000080] lappend res [set i 0; $cmd i 0x7FFFFFFFFFFFFFFF] lappend res [set i 0; $cmd i 0xFFFFFFFFFFFFFF80] lappend res [set i 0; $cmd i 0xFFFFFFFFFFFFFF81] lappend res [set i 0; $cmd i 0xFFFFFFFFFFFFFFFF] lappend res [set i 0; $cmd i 0x1000000000000007F] lappend res [set i 0; $cmd i 0x10000000000000080] ---- Result was: 2147483647 4294967168 -127 -1 4294967423 4294967424 9223372036854775807 18446744073709551488 18446744073709551489 18446744073709551615 18446744073709551743 18446744073709551744 2147483647 4294967168 4294967169 4294967295 4294967423 4294967424 9223372036854775807 18446744073709551488 18446744073709551489 18446744073709551615 18446744073709551743 18446744073709551744 2147483647 4294967168 4294967169 4294967295 4294967423 4294967424 9223372036854775807 18446744073709551488 18446744073709551489 18446744073709551615 18446744073709551743 18446744073709551744 ---- Result should have been (exact matching): 2147483647 4294967168 4294967169 4294967295 4294967423 4294967424 9223372036854775807 18446744073709551488 18446744073709551489 18446744073709551615 18446744073709551743 18446744073709551744 2147483647 4294967168 4294967169 4294967295 4294967423 4294967424 9223372036854775807 18446744073709551488 18446744073709551489 18446744073709551615 18446744073709551743 18446744073709551744 2147483647 4294967168 4294967169 4294967295 4294967423 4294967424 9223372036854775807 18446744073709551488 18446744073709551489 18446744073709551615 18446744073709551743 18446744073709551744 ==== incr-1.31 FAILED - foundin initialized to: "8.6"
- is_private initialized to: "0"
- login: "dgp"
- priority initialized to: "5 Medium"
- private_contact initialized to: "8e2300e85be5dd1445b9666eb9429055951e33be"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "17. Commands I-L"
- title initialized to: "test incr-1.31 fails"
- type initialized to: "Bug"
Ticket change [3def008583] (rid 230088) by oehhar on 2024-08-14 12:36:26:
- icomment:
Hi Don, thanks for the bug report. Jan marked this with a knownBug attribute by commit [bcdd7f1efb]. I tried current core-8-6-branch with MS-VC6 32 bit compile on 64 bit Windows. A new compile warning: <verbatim> generic\tclProc.c(2275) : warning C4550: expression evaluates to a function which is missing an argument list </verbatim> For me, the test passed. I used the following command line to also run knownBug tests (which are otherwise skipped): <verbatim> nmake -f makefile.vc test TESTFLAGS="-constraints knownBug -verbose tes -file incr.test" </verbatim> All tests pass. I first thought, this issue was introduced by the fix for [7179c6724cd38271] (by magic Sergey). But I do not see the issue, sorry. Thank you all, Harald
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"
- icomment:
Ticket change [ef7d901617] (rid 230089) by oehhar on 2024-08-14 12:48:35:
- icomment:
As Jans commit note on [bcdd7f1efb] says "Not fixed on 64 bit", I tried with 64 bit MS-VS2015. All incr tests including 1-31 pass. Perhaps, my command line is wrong. I used the same as in my last comment. Anyway. Thank you all, Harald
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"
- icomment:
Ticket change [57fe1a6770] (rid 230090) by jan.nijtmans on 2024-08-14 14:25:22:
- assignee changed to: "sebres"
- icomment:
> Perhaps, my command line is wrong Don't worry, you command line is OK!!!!! I should be more accurate in my description: The testcase only fails on systems where sizeof(long) == 64. So, on 32-bit linux and on Windows (32-bit and 64-bit) everything works fine. On 64-bit Linux and MacOS, it's still not fixed. @Sergey, you still have something to do ;-) No high prio, because it's only on 8.6
- login: "jan.nijtmans"
- mimetype: "text/plain"
Ticket change [50abd1f58e] (rid 230175) by sebres on 2024-08-17 14:29:37:
- icomment:
I know... Just the power supply of my PC got broken as I was worked on the next fix, the new one is ordered, I'm waiting for the delivery (may be monday). By the way, I tend to backport my TclGetSignedIntFromObj as suggested in [7179c6724cd38271]. Basically one can almost never use Tcl?_?GetIntFromObj safely, because of its "unsafety" for overflow from wide.
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [98635f7c4c] (rid 230642) by sebres on 2024-08-21 13:29:53:
- closedate changed to: "2460544.06242583"
- closer changed to: "sebres"
- icomment:
Seems to be fixed in [536af5cb81feb742]. Thus close now.
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"