[vmkit-commits] About j3-64bit crush

Allan Tong actong88 at gmail.com
Mon Jul 19 16:24:50 PDT 2010


On Mon, Jul 19, 2010 at 1:15 PM, Minas Abrahamyan <minas.subs at gmail.com> wrote:
> Thank you very much! You're like a magician, how did you know?

I used a debugger to trace the execution of getCallingClassLevel and
found that the stack frame for JNI_OnLoad in libjavanio.so had a NULL
as the frame pointer to the caller's frame, which obviously couldn't
be correct.  Inspecting the disassembly of JNI_OnLoad showed it was
missing the frame pointer setup prologue.  Vmkit's StackWalker needs
the frame pointer in order to walk up the stack, so it couldn't get
past JNI_OnLoad and thus never found the calling Java method
(MethodType == 1).

> I don't know what is right way to transfer classpath build system that
>  "no-omit" option, but what I did was
> change in ./configure script.

Not sure what the right way is either.  I added the flag to the
environment variables CFLAGS and CXXFLAGS.

 - Allan




More information about the vmkit-commits mailing list