#525 (expt 10 10000000) segfaults

clisp (525)

cvs head, linux x86_64

[6]> (progn (expt 10 10000000) nil)

Program received signal SIGSEGV, Segmentation fault.
0x000000000057b13a in square_2bigloop_down (sourceptr=0x7fff690ae750,
len=54427, destptr=0x7fff690794c8) at ../src/intmal.d:199
199 square_2loop_down(sum_LSDptr,sum_len,prodmid_LSDptr);
(gdb) where
#0 0x000000000057b13a in square_2bigloop_down (sourceptr=0x7fff690ae750,
len=54427, destptr=0x7fff690794c8) at ../src/intmal.d:199
#1 0x000000000057ae05 in square_2loop_down (sourceptr=0x7fff690ae750,
len=54427, destptr=0x7fff690794c8) at ../src/intmal.d:147
#2 0x000000000057b13f in square_2bigloop_down (sourceptr=0x7fff691ed748,
len=108853, destptr=0x7fff69183258) at ../src/intmal.d:199
#3 0x000000000057ae05 in square_2loop_down (sourceptr=0x7fff691ed748,
len=108853, destptr=0x7fff69183258) at ../src/intmal.d:147
#4 0x000000000057b13f in square_2bigloop_down (sourceptr=0x7fff6946b5bc,
len=217706, destptr=0x7fff69396c00) at ../src/intmal.d:199
#5 0x000000000057ae05 in square_2loop_down (sourceptr=0x7fff6946b5bc,
len=217706, destptr=0x7fff69396c00) at ../src/intmal.d:147
#6 0x000000000057b13f in square_2bigloop_down (sourceptr=0x3347daa0c,
len=435412, destptr=0x7fff697bddc0) at ../src/intmal.d:199
#7 0x000000000057ae05 in square_2loop_down (sourceptr=0x3347daa0c,
len=435412, destptr=0x7fff697bddc0) at ../src/intmal.d:147
#8 0x000000000057b6b8 in I_square_I (x={one_o = 10133112925394608})
at ../src/intmal.d:294
#9 0x000000000057ce01 in I_I_expt_I (x={one_o = 9007199254741002}, y=
{one_o = 9007199254740994}) at ../src/intmal.d:809
#10 0x0000000000587dfb in RA_I_expt_RA (x={one_o = 9007199254741002}, y=
{one_o = 9007199264740992}) at ../src/rational.d:742
#11 0x00000000005a20c5 in R_I_expt_R (x={one_o = 9007199254741002}, y=
{one_o = 9007199264740992}) at ../src/realelem.d:1149
#12 0x00000000005b10fe in N_I_expt_N (x={one_o = 9007199254741002}, y=
{one_o = 9007199264740992}) at ../src/comptran.d:275
#13 0x00000000005b17e3 in N_N_expt_N (x={one_o = 9007199254741002}, y=
{one_o = 9007199264740992}) at ../src/comptran.d:393
#14 0x00000000005ba984 in C_expt () at ../src/lisparit.d:926


  • Sam Steingold

    Sam Steingold - 2009-06-22
    • assigned_to: haible --> sds
    • status: open --> closed-fixed
  • Sam Steingold

    Sam Steingold - 2009-06-22

    thank you for your bug report.
    the bug has been fixed in the CVS tree.
    you can either wait for the next release (recommended)
    or check out the current CVS tree (see http://clisp.cons.org\)
    and build CLISP from the sources (be advised that between
    releases the CVS tree is very unstable and may not even build
    on your platform).


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks