public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* PCH bit me
@ 2003-11-27  8:22 Alan Modra
  2003-11-27  8:35 ` Daniel Jacobowitz
  2003-11-30  1:11 ` Geoff Keating
  0 siblings, 2 replies; 5+ messages in thread
From: Alan Modra @ 2003-11-27  8:22 UTC (permalink / raw)
  To: gcc

Yesterday I ran into lots of errors in the libstdc++ testsuite, all due
to segfaults.

The scenario was:
1) full bootstrap in clean dir, run testsuite.
2) patch a few things, rebuild, run testsuite looking for regressions.
I forget now exactly how I did the rebuild, probably just with plain
"make".  It certainly wasn't in a clean dir, as the changes I made were
relatively minor and I didn't want to wait hours for a bootstrap to
complete.  (Actually, the "patch a few things" was reverting back to
a clean tree.)

The segfaults were due to size_htab->hash_f being set to some location
inside size_htab_hash rather than to the start of the function.  As you
can imagine, this messed up the stack.  A little snooping with gdb
revealed hash_f being changed:

0x0ff249ac in memcpy () from /lib/libc.so.6
(gdb) bt
#0  0x0ff249ac in memcpy () from /lib/libc.so.6
#1  0x0ff16358 in _IO_file_xsputn () from /lib/libc.so.6
#2  0x0ff17258 in _IO_sgetn () from /lib/libc.so.6
#3  0x0ff09838 in fread () from /lib/libc.so.6
#4  0x10259fe0 in gt_pch_restore (f=0x1)
    at /src/gcc-ppc64-34/gcc/ggc-common.c:576
[snip]

So, the question is, am I just a sorry loser in expecting this scenario
to work, or is pch restoring things it shouldn't?  (or both!)

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-11-30  1:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-27  8:22 PCH bit me Alan Modra
2003-11-27  8:35 ` Daniel Jacobowitz
2003-11-27  9:27   ` Alan Modra
2003-11-30  1:44     ` Geoff Keating
2003-11-30  1:11 ` Geoff Keating

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).