From: "Boehm, Hans" <hans_boehm@hp.com>
To: "'Christian Jönsson'" <c.christian.joensson@telia.com>,
"Tom Tromey" <tromey@redhat.com>
Cc: "Boehm, Hans" <hans_boehm@hp.com>, java@gcc.gnu.org
Subject: RE: gcc-3.1 2002-04-03 libjava failures on sparc-linux?
Date: Tue, 09 Apr 2002 23:39:00 -0000 [thread overview]
Message-ID: <40700B4C02ABD5119F000090278766443BF1AB@hplex1.hpl.hp.com> (raw)
> -----Original Message-----
> From: Christian Jönsson [mailto:c.christian.joensson@telia.com]
> (gdb) r
> Starting program:
> /share2/gcc-rel/objdir-gcc-3.1+binutils-2.12-cvs/sparc-linux/l
> ibjava/testsuite/cxxtest
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x506d6f60 in GC_push_all_eager (bottom=0xeaffe3d4 "P\0022H@",
> top=0xf0000000 <Address 0xf0000000 out of bounds>)
> at /share2/gcc-rel/gcc/boehm-gc/mark.c:1349
> 1349 q = *p;
> (gdb) bt
> #0 0x506d6f60 in GC_push_all_eager (bottom=0xeaffe3d4 "P\0022H@",
> top=0xf0000000 <Address 0xf0000000 out of bounds>)
> at /share2/gcc-rel/gcc/boehm-gc/mark.c:1349
> #1 0x506d7058 in GC_push_all_stack_partially_eager (
> bottom=0xeaffe3d4 "P\0022H@",
> top=0xf0000000 <Address 0xf0000000 out of bounds>,
> cold_gc_frame=0xeaffe5bc "") at
> /share2/gcc-rel/gcc/boehm-gc/mark.c:1386
This is actually rather suggestive. It was trying to mark a stack between
0xeaffe3d4 and 0xf0000000. That's a big stack. I suspect one of the
following:
1) Java is compiled with thread support, but the collector gets configures
without GC_LINUX_THREADS defined. Thus it's trying to mark between a thread
stack pointer and the base of the main stack.
2) The default stack base of (specified in gcconfig.h) of 0xf0000000 is
wrong on your machine. Try stopping a toy program in main and print $sp
from gdb to see whether the stack base looks plausible.
Hans
next reply other threads:[~2002-04-10 1:19 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-09 23:39 Boehm, Hans [this message]
2002-04-10 5:17 ` Christian Jönsson
-- strict thread matches above, loose matches on Subject: below --
2002-04-17 10:19 Boehm, Hans
2002-04-17 10:54 ` Christian Jönsson
2002-04-17 13:00 ` Christian Jönsson
2002-04-15 20:03 Boehm, Hans
2002-04-15 23:08 ` Christian Jönsson
2002-04-16 3:31 ` Christian Jönsson
2002-04-16 16:33 ` Tom Tromey
2002-04-17 0:28 ` Christian Jönsson
2002-04-17 1:05 ` Christian Jönsson
2002-04-10 12:21 Boehm, Hans
2002-04-15 0:13 ` Christian Jönsson
2002-04-05 9:29 Christian Jönsson
2002-04-05 9:50 ` Christian Jönsson
2002-04-08 13:15 ` Tom Tromey
2002-04-08 14:27 ` Christian Jönsson
2002-04-09 9:48 ` Christian Jönsson
2002-04-09 15:02 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40700B4C02ABD5119F000090278766443BF1AB@hplex1.hpl.hp.com \
--to=hans_boehm@hp.com \
--cc=c.christian.joensson@telia.com \
--cc=java@gcc.gnu.org \
--cc=tromey@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).