From: David Mosberger <davidm@AZStarNet.COM>
Subject: Re: (re)compiling gcc-2.7.2.1 under linux alpha: note && question
Date: Mon, 21 Oct 1996 16:47:49 -0700 (MST) [thread overview]
Message-ID: <199610212347.QAA16251@web.azstarnet.com> (raw)
> > Not only would the cc1 I was building core-dump doing _anything_ --
> > even being invoked with no arguments -- running gdb on it would core-
> > dump gdb! The closest I got to finding the problem was getting into
> > where init_lex() calls xmalloc(), and stepping into the call to
> > malloc() would core-dump. But, so would breaking on an _earlier_
> > xmalloc() call and running from there!
> Well, I have found that single-stepping on malloc coredumps gdb every
> time and with every program (and both c and c++). So this is probably
> not your problem. If you set a breakpoint further away it works.
Most likely this is due to insufficient debug info in libc.
Unfortunately, gdb on Alpha does not handle this situation well (and,
even in the best case, there is only so much gdb can do without
debugging info---the DEC Unix calling convention is highly optimized
and just looking at the code etc will not give you all the information
to, say, backtrack in the stack).
I can guarantee you that gdb works just fine on malloc---I've spent
many long hours tracking a bug or two in it and it definitively works.
On pre-4.0 systems, you can link against -lg (instead of -lc) to get
debug info for the standard libc. I'm not sure there is an easy way
of doing this on 4.0 (short of recompiling libc). Maybe the next
release of RH will include debug info for all shared libraries. The
only cost of doing this is that the shared libs take up some extra
space, but given the current diskprices, I think it's well worth it.
As for compilation problems due to the 8MB stack limit: all I can say
is that I have built gcc and lots of other stuff many times without
having seen any problems like that. Not to say that the 8MB stack
limit isn't too small, but maybe there is something else that makes
the problem more acute.
--david
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
next reply other threads:[~1996-10-21 23:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-10-21 23:47 David Mosberger [this message]
1996-10-22 12:55 ` (re)compiling gcc-2.7.2.1 under linux alpha: note && question Andreas Johansson
-- strict thread matches above, loose matches on Subject: below --
1996-10-27 1:15 Matthew Jacob
1996-10-27 0:22 Matthew Jacob
1996-10-26 21:27 Craig Burley
1996-10-26 18:21 Matthew Jacob
1996-10-26 9:53 Craig Burley
1996-10-26 12:50 ` Richard Henderson
1996-10-22 2:21 Matthew Jacob
1996-10-21 18:09 Craig Burley
1996-10-21 22:23 ` Andreas Johansson
1996-10-21 16:02 Matthew Jacob
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