This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Linux egcs g++ segfaults on fputs() & co
- To: egcs-bugs at cygnus dot com
- Subject: Re: Linux egcs g++ segfaults on fputs() & co
- From: Rob Browning <rlb at cs dot utexas dot edu>
- Date: 23 Oct 1997 02:48:12 -0500
- References: <2092.877563499@hurl.cygnus.com>
Jeffrey A Law <law@cygnus.com> writes:
> > For instance, the following program:
> > will give a segmentation fault in something called _IO_stdout_ (), but only
> > if I compile it with g++, not with gcc.
> Is this still happening?
Well, we just experienced something like this here with any simple
program containing sprintf, cout, etc. I discussed it with some of
the people I know, and at least in our case, it's apparently a known
libc6 (glibc) 2.0.5 issue.
It also seems to go away if you use static linking. One person noted
that this was because you avoid some weak bindings from libpthread
that are causing the segfault. I'm not positive that you're having
the same problem, but it sounds similar.
--
Rob Browning <rlb@cs.utexas.edu>
PGP fingerprint = E8 0E 0D 04 F5 21 A0 94 53 2B 97 F5 D6 4E 39 30