From: Zach <zab@zabbo.net>
Subject: Re: segmentation fault with math lib
Date: Thu, 8 May 1997 15:14:57 -0700 (PDT) [thread overview]
Message-ID: <1efe0753d19f47127cbd395a302ec6ba.axp-list@archive.invalid> (raw)
In-Reply-To: <m3n2q5hom4.fsf@spunky.virginia.edu>
> Have you tried to link with -lieee? I was having wierd segfaults from
> over and underflow until I did.
the stuff i'm compiling doesn't even use floating point..
-------
$ cat test.c
#include <stdio.h>
void main(void) {
printf("Hello\n");
}
$ gcc -o test test.c
$ ./test
Hello
$ gcc -o test -pg test.c
$ ./test
Segmentation fault
$ gdb ./test
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (alpha-unknown-linux), Copyright 1996 Free Software Foundation,
Inc...
(gdb) run
Starting program: /usr/local/src/./test
Program received signal SIGSEGV, Segmentation fault.
__ieee_set_fp_control ()
at ../sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S:29
../sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S:29: No such file or
directory.
Current language: auto; currently asm
---------
adding -lieee or /usr/lib/libc_p.a doesn't help a bit.
note that this all works in an intel/linux box based on redhat 4.1 with
the updates just fine. there seems to be some weirdness hiding somewhere
in glibc/gcc for the alpha [maybe this is that odd gas bug?]
-- zach
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next parent reply other threads:[~1997-05-08 22:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <m3n2q5hom4.fsf@spunky.virginia.edu>
1997-05-08 22:14 ` Zach [this message]
[not found] <Pine.LNX.3.95.970508134813.3342B-100000@thebrain>
1997-05-08 23:09 ` segmentation fault with math lib Richard Henderson
[not found] <199705081801.NAA24268@stommel.tamu.edu>
1997-05-08 21:01 ` Zach
1997-05-08 17:15 Hunter A. Ware
[not found] <M.050797.205427.14@LOCALNAME>
1997-05-08 0:19 ` Andrew D. Isaacson
1997-05-08 18:01 ` Richard Henderson
-- strict thread matches above, loose matches on Subject: below --
1997-05-07 18:54 m.de.beurs
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox