This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
JvCreateJavaVM evil segfault
- From: Andrew Haley <aph at redhat dot com>
- To: Andrew Shuttlewood <andrew dot shuttlewood at futureroute dot co dot uk>
- Cc: java at gcc dot gnu dot org
- Date: Thu, 27 Mar 2003 15:35:32 +0000 (GMT)
- Subject: JvCreateJavaVM evil segfault
- References: <1048776791.6709.13.camel@keel.futureroute.co.uk>
Andrew Shuttlewood writes:
> I'm trying to integrate libgcj into an application we're writing, and
> I've hit a nasty problem with trying to create the VM. In a standard
> alone test app (the one somewhere on gcc.gnu.org), it works fine. It's
> fine and dandy. When I put it as the first line in main() of our normal
> code, however, it fails unpleasantly with a segfault.
>
> For some reason gdb is totally unhelpful (it seems to get further
> sometimes, and not so far other times), but it's dying around line 582
> of natRuntime.cc (this worked out primarily through stepping through.
>
> It explodes somewhere within the GC allocator, but the lines leading up
> to it are:
>
> 454 if (++size > threshold)
> (gdb)
> 461 e = new HashEntry(key, value);
> (gdb)
> (this is in hashtable).
>
> I'm not quite sure exactly why it appears to hate me so much, but I'm
> willing to help perform any debugging or rebuilding necessary. This is
> with gcc-3.3 CVS, pulled about 2-3 days ago (and I have the same problem
> of stack traces not working for native code, but I have absolutely no
> clue how to fix that....)
gcj on both 3.3 branch and trunk is unstable. Please try with a
release version.
Andrew.