Class layout question
Steve Ellcey
sje@cup.hp.com
Wed Jul 13 18:44:00 GMT 2005
Thanks for all the replies. I think the layout difference is a red
herring in terms of why my java programs don't run. I built HP-UX gcj
with --enable-threads=posix and Linux gcj without this option so that is
why the layout looks different. The code is probably the same because
nothing in the small program uses that field.
If anyone would like to help me with figuring out what my real problem
might be, here is what happens when I try to run a java program on IA64
HP-UX:
gcj -g x.java -mlp64 --main=x -o x
gdb x
(gdb) r
Starting program: /home/sje/java/x
Program received signal SIGSEGV, Segmentation fault
si_code: 2 - SEGV_ACCERR - Invalid Permissions for object.
0x9fffffffeeb177e0:1 in _Jv_Linker::verify_class (klass=0x9fffffffed6f13e0)
at /shale/sje/builddir_patch/gcc/libjava/link.cc:1579
1579 klass->engine->verify(klass);
Current language: auto; currently c++
(gdb) bt
#0 0x9fffffffeeb177e0:1 in _Jv_Linker::verify_class (klass=0x9fffffffed6f13e0)
at /shale/sje/builddir_patch/gcc/libjava/link.cc:1579
#1 0x9fffffffeeb19f60:0 in _Jv_Linker::wait_for_state (
klass=0x9fffffffed6f13e0, state=9)
at /shale/sje/builddir_patch/gcc/libjava/link.cc:1730
#2 0x9fffffffeeb5da80:0 in java::lang::Class::initializeClass (
this=0x9fffffffed6f13e0)
at /shale/sje/builddir_patch/gcc/libjava/java/lang/natClass.cc:684
#3 0x9fffffffef6b7f40 in _Jv_InitClass (klass=0x9fffffffed6f13e0)
at Class.h:582
#4 0x9fffffffeeacab60:0 in _Jv_CreateJavaVM (vm_args=0x0)
at /shale/sje/builddir_patch/gcc/libjava/prims.cc:1295
#5 0x9fffffffeeacaf90:0 in _Jv_RunMain (vm_args=0x0,
klass=0x6000000000000100, name=0x0, argc=1, argv=0x9ffffffffffff7d8,
is_jar=false) at /shale/sje/builddir_patch/gcc/libjava/prims.cc:1351
#6 0x9fffffffeeacb640:0 in _Jv_RunMain (klass=0x6000000000000100, name=0x0,
argc=1, argv=0x9ffffffffffff7d8, is_jar=false)
at /shale/sje/builddir_patch/gcc/libjava/prims.cc:1397
#7 0x9fffffffeeacb6f0:0 in JvRunMain (klass=0x6000000000000100, argc=1,
argv=0x9ffffffffffff7d8)
at /shale/sje/builddir_patch/gcc/libjava/prims.cc:1403
#8 0x40000000000011c0:0 in main (argc=1, argv=0x9ffffffffffff7d8)
at /var/tmp//ccBOu7rm.i:11
More information about the Java
mailing list