This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Starting from the dynamic loader
- From: Jost Boekemeier <jost2345 at yahoo dot de>
- To: java at gcc dot gnu dot org
- Date: 07 Oct 2003 23:44:09 +0200
- Subject: Starting from the dynamic loader
- Organization:
Hi,
[I hope this is not a FAQ]
I am currently trying to create an apache module which uses (a library
which in turn uses) libgcj. Interestingly gcj aborts() because it is
not yet initialized: _Jv_createJavaVM hasn't been called at this early
stage (see stack trace below).
Can somebody please explain where frame_dummy() comes from; which
component generates this?
I think I should start the JVM somewhere in the libraries _init()
method, or is there a better way to handle this?
#0 0xffffe002 in ?? ()
#1 0x42028a73 in abort () from /lib/tls/libc.so.6
#2 0x40dbb45a in _Jv_Abort(char const*, char const*, int, char const*)
(
message=0x0) at prims.cc:317
#3 0x40ddd88b in _Jv_RegisterClassHookDefault (klass=0xbfffc0b0)
at java/lang/natClassLoader.cc:428
#4 0x40ddd76b in _Jv_RegisterClasses (classes=0xbfffc0cc)
at java/lang/natClassLoader.cc:397
#5 0x40404ece in frame_dummy ()
from /home/src/test/httpd/dist/lib/libmy_dsotest.so
#6 0x40404da8 in _init ()
from /home/src/test/httpd/dist/lib/libmy_dsotest.so
#7 0x4000c4b1 in _dl_init_internal () from /lib/ld-linux.so.2
#8 0x4210dfb2 in dl_open_worker () from /lib/tls/libc.so.6
#9 0x4000c266 in _dl_catch_error_internal () from /lib/ld-linux.so.2
#10 0x4210da49 in _dl_open () from /lib/tls/libc.so.6
#11 0x401a6eeb in dlopen_doit () from /lib/libdl.so.2
#12 0x4000c266 in _dl_catch_error_internal () from /lib/ld-linux.so.2
#13 0x401a6316 in _dlerror_run () from /lib/libdl.so.2
#14 0x401a6e92 in dlopen@GLIBC_2.0 () from /lib/libdl.so.2
#15 0x4013dc5d in apr_dso_load (res_handle=0x0, path=0x0,
pool=0x80ba7b8)
at dso.c:169
#16 0x0807b838 in load_module (cmd=0xbfffe980, dummy=0x0,
---Type <return> to continue, or q <return> to quit---q
Jost