bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

seg fault in mpz_root


From: Jason Moxham
Subject: seg fault in mpz_root
Date: Tue, 10 Dec 2002 17:43:28 +0000
User-agent: KMail/1.4.1

config.guess is 
athlon-linux-pc-gnu

using gmp-4.1.1 and glibc-2.2.5

the following program seg faults when I use gcc-2.95.3 , 3.1.1 and 3.2.1
but not when gcc-3.0.4 is used


#include "gmp.h"

int     main(void)
{mpz_t q,n;

mpz_init(q);
mpz_init(n);
mpz_set_str(n,"8296069735939823775046991005762725396506084757429493227965727072920685686354816909943034124886330765640239667717946583960348341063237912191437886531350181532382250260593592995435954472861577469144695844779805011398774671357368542662068901172",10);
mpz_root(q,n,800);
return 0;}


gmp built with


#!/bin/bash
# put gmp-x.y.z.tar.gz and this script in same directory and run it
CCCC=gcc-3.2.1
rm -rf gmp-4.1.1
tar xvjf gmp-4.1.1.tar.bz2
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
cd gmp-4.1.1
cp ../gmperr.c .
./configure --disable-shared CC=$CCCC
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
make 
if [ $? -ne 0 ] ; then echo -e "error\a" ; exit 1 ; fi
$CCCC gmperr.c  .libs/libgmp.a -o gmperr
./gmperr


Can someone else confirm this ?

thanks

jason




reply via email to

[Prev in Thread] Current Thread [Next in Thread]