Karim BELABAS on Wed, 12 Jun 2002 20:52:19 +0200 (MEST) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: 64bit HPUX binary buggy |
On Wed, 12 Jun 2002, Igor Schein wrote: > OK, I'm including the complete log of bnfinit(x^2+1) at \g9 on HPUX. > It's identical compared to that on Solaris 64bit, except that on > Solaris it goes on after outputing > > #### Looking for 12 relations (small norms) OK, I guess the problem occurs in minim_alloc (should be entered only once), probably in init_dalloc() or in dalloc() [ allocate a double * on the pari stack ], presumably the latter. void init_dalloc() { /* correct alignment for dalloc */ avma -= avma % sizeof(double); if (avma < bot) err(errpile); } double * dalloc(size_t n) { gpmem_t av = avma - n; if ((long)av < 0 || avma < bot) err(errpile); avma = av; return (double*)avma; } Can you set a breakpoint on the two err(errpile) lines and check which one overflows ? Then check the values of all local variables just before the overflow ? Karim. -- Karim Belabas Tel: (+33) (0)1 69 15 57 48 Dép. de Mathematiques, Bat. 425 Fax: (+33) (0)1 69 15 60 19 Université Paris-Sud Email: Karim.Belabas@math.u-psud.fr F-91405 Orsay (France) http://www.math.u-psud.fr/~belabas -- PARI/GP Home Page: http://www.parigp-home.de/