JvCreateJavaVM evil segfault
Andrew Haley
aph@redhat.com
Thu Mar 27 15:35:00 GMT 2003
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.
More information about the Java
mailing list