Skip to content
Tcl Source Code History Of Ticket 1601380
Login

History Of Ticket 1601380

Artifacts Associated With Ticket 1601380

  1. Ticket change [76c6467837] (rid 105639) by alhernau on 2006-11-22 20:27:34:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "alhernau"
    10. subsystem initialized to: "None"
    11. title initialized to:
      "UpdateStringOfBignum" error with tcl 8.5a5 on x86_64
      
    12. type initialized to: "Bug"
  2. Ticket change [54880d2576] (rid 93964) by dgp on 2006-11-23 04:03:45:

    1. assignee changed to: "dgp"
    2. 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?
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. subsystem changed to: "10. Objects"
    6. username: "dgp"
  3. Ticket change [1f839d69bb] (rid 91157) by dgp on 2006-11-23 04:13:33:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      please note the two issues
      you report are almost certainly
      not related.  Open two reports.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [23e03b7091] (rid 131009) by dgp on 2006-11-24 23:49:34:

    1. assignee changed to: "kennykb"
    2. 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?
      
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  5. Ticket change [a4df779bdc] (rid 110277) by alhernau on 2006-11-27 21:04:15:

    1. 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 ...
      
      
    2. login: "alhernau"
    3. mimetype: "text/plain"
    4. username: "alhernau"
  6. Ticket change [6722c02087] (rid 102849) by dgp on 2006-11-27 21:20:56:

    1. 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?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [862173cb95] (rid 131450) by dgp on 2006-11-27 22:04:39:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      Can you check that
      
        sizeof(mp_word) > 2*DIGIT_BIT + 1
      
      ?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [c3f84d75d3] (rid 111763) by dgp on 2006-12-18 22:55:53:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      see 1617840
      
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [542d70d9e6] (rid 93894) by kennykb on 2007-02-13 10:55:48:

    1. closedate changed to: "2007-02-13T03:55:48"
    2. closer changed to: "kennykb"
    3. 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?
      
      
    4. login: "kennykb"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Pending"
    8. username: "kennykb"
  10. Ticket change [f2d645bf6d] (rid 109625) by alhernau on 2007-02-22 22:37:04:

    1. 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)
      
      
    2. login: "alhernau"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "alhernau"
  11. Ticket change [215f0884e7] (rid 130570) by kennykb on 2007-02-22 22:44:51:

    1. closedate changed to: "2007-02-22T15:44:51"
    2. closer changed to: "kennykb"
    3. status changed to: "Closed"