mhuhtala n00b
Joined: 27 Oct 2002 Posts: 16 Location: Finland
|
Posted: Mon Dec 23, 2002 11:48 am Post subject: gcc 3.2/binutils 2.13: system calls segfault |
|
|
Ran into a very strange problem trying to use a C++ program compiled
on Gentoo 1.4. I have got
gcc 3.2
binutils 2.13.90.0.4 20020814
The program compiles with some warnings about the use of old standard
library headers (strstream.h etc.) and other minor things. I have
compiled a lot of stuff on this system that give the same warnings,
but the binaries have always run more or less without problems. This
one, however, segfaults at the first system call, which happens to be
times(). If I comment that out in the source and recompile, it will
segfault at next system call. Gdb does not show anything other than a
SIGSEV at each and every system call. The binary seems somehow
completely incorrectly linked. GCC 3.2 is the only compiler on the
system.
The same source compiles and executes correctly on Mandrake 8.2 with
GCC 3.2 and binutils 2.12.xx (compiler and binutils updated from
standard installation). This binary will also only segfault on
Gentoo. I haven't got the faintest idea what is going on. Is this sort
of thing known to happen with binutils 2.13.90?
M |
|