bug-gmp
[Top][All Lists]
Advanced

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

Re: Dynamic link segfaults on Linux box


From: Kevin Ryde
Subject: Re: Dynamic link segfaults on Linux box
Date: Thu, 22 Apr 2004 08:08:10 +1000
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux)

"Carlos D. Garza" <address@hidden> writes:
>
>    printf("This program isn't even useing libgmp\n");
>    return(0);
>   }
>
> Watch what happens when I compile it with libgmp
>
> address@hidden gmp-4.1.2]# cc -o test test.c -lgmp
> address@hidden gmp-4.1.2]# ./test
> Segmentation fault
> address@hidden gmp-4.1.2]# cc --static -o test test.c -lgmp
> address@hidden gmp-4.1.2]# ./test
> This program isn't even useing libgmp

You should try the same using some other shared library, to see if
this is specific to gmp.  I already advised this.

You can create a fresh shared library to try with

        gcc -shared foo.c -o libfoo.so

and run it from a mainline with

        LD_LIBRARY_PATH=. ./bar

You can add "-g" to the compiles to get better info from gdb, if it
dies, including building gmp with CFLAGS=-g to see what happens in
that case.

-- 
All followups to address@hidden only.




reply via email to

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