Artifacts Associated With Ticket 1601380fffffffff
Ticket change [76c6467837] (rid 105639) by alhernau on 2006-11-22 20:27:34:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
I've compiled both 8.5a4 and 8.5a5 on a Linux RedHad t EL x86_64 box. Both fails evaluating "expr 2**63" and exits/crashes with following error: "UpdateStringOfBignum: string length limit exceeded" Also evaluating "expr pow(2,63)" twice give a result on first call, then a "Floating point exception" followed by crash on second one. Let me know if the compilation log is suitable (~200kB) TCL_LIBRARY=~/compilation/tcl/tcl8.5a5/library LD_LIBRARY_PATH=~/compilation/tcl/tcl8.5a5/unix/Linux64 ~/compilation/tcl/tcl8.5a5/unix/Linux64/tclsh % expr 2**63 UpdateStringOfBignum: string length limit exceeded Aborted --- % expr pow(2,63) 9.223372036854776e+18 % expr pow(2,63) Floating point exception
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "alhernau"
- subsystem initialized to: "None"
- title initialized to:
"UpdateStringOfBignum" error with tcl 8.5a5 on x86_64
- type initialized to: "Bug"
Ticket change [54880d2576] (rid 93964) by dgp on 2006-11-23 04:03:45:
- assignee changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Originator: NO We've fixed some bugs in the ** operator since 8.5a5 was released. Can you repeat the problem in current development sources?
- login: "dgp"
- mimetype: "text/plain"
- subsystem changed to: "10. Objects"
- username: "dgp"
Ticket change [1f839d69bb] (rid 91157) by dgp on 2006-11-23 04:13:33:
- icomment:
Logged In: YES user_id=80530 Originator: NO please note the two issues you report are almost certainly not related. Open two reports.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [23e03b7091] (rid 131009) by dgp on 2006-11-24 23:49:34:
- assignee changed to: "kennykb"
- icomment:
Logged In: YES user_id=80530 Originator: NO Can you check that the mp_radix_size() call on line 2619 of tclObj.c is in fact returning the value 3 ? If so, can you explain why? Perhaps there's a libtommath bug here?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Ticket change [a4df779bdc] (rid 110277) by alhernau on 2006-11-27 21:04:15:
- icomment:
Logged In: YES user_id=818162 Originator: YES I've finally managed to get CVS code and recompile it again (got 64bit machine at work and CVS access at home). I reproduce same behaviour: the tclsh binary exits with "UpdateStringOfBignum" error. The values returned by mp_radix_size are: status=0, size=3 It seems the problem comes from mp_div_d, into following code portion, it returns 2 on first call, then 0, leading to "digs" being set to 1. while (mp_iszero (&t) == MP_NO) { if ((res = mp_div_d (&t, (mp_digit) radix, &t, &d)) != MP_OKAY) { mp_clear (&t); return res; } ++digs; } I unfortunately have no time left to dig further today ... - login: "alhernau"
- mimetype: "text/plain"
- username: "alhernau"
- icomment:
Ticket change [6722c02087] (rid 102849) by dgp on 2006-11-27 21:20:56:
- icomment:
Logged In: YES user_id=80530 Originator: NO "returns 2 on first call" Are you referring to the return value stored in "res", or to the value of &t after the mp_div_d call returns?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [862173cb95] (rid 131450) by dgp on 2006-11-27 22:04:39:
- icomment:
Logged In: YES user_id=80530 Originator: NO Can you check that sizeof(mp_word) > 2*DIGIT_BIT + 1 ?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [c3f84d75d3] (rid 111763) by dgp on 2006-12-18 22:55:53:
- icomment:
Logged In: YES user_id=80530 Originator: NO see 1617840
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [542d70d9e6] (rid 93894) by kennykb on 2007-02-13 10:55:48:
- closedate changed to: "2007-02-13T03:55:48"
- closer changed to: "kennykb"
- icomment:
Logged In: YES user_id=99768 Originator: NO gcc appears to have some grievous bugs near the handling of __attributes(mode(TI))__. I've patched the code that uses those attributes out of our fork of libtommath. Can you retest with the current HEAD in a clean sandbox?
- login: "kennykb"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Pending"
- username: "kennykb"
Ticket change [f2d645bf6d] (rid 109625) by alhernau on 2007-02-22 22:37:04:
- icomment:
Logged In: YES user_id=818162 Originator: YES Seems fixed, pow(2,63) no more crashes tclsh (tested with cvs code downloaded on Feb, 14th)
- login: "alhernau"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "alhernau"
- icomment:
Ticket change [215f0884e7] (rid 130570) by kennykb on 2007-02-22 22:44:51:
- closedate changed to: "2007-02-22T15:44:51"
- closer changed to: "kennykb"
- status changed to: "Closed"