[vmkit-commits] J3 crushes on HelloWorld

nicolas geoffray nicolas.geoffray at gmail.com
Wed Jul 14 11:34:22 PDT 2010


Hi Minas,

Could you test with the 32 bits version whether you get the same stack
trace? The fact that "this" is null in loadClassFromAsciiz is surprising,
and unfortunately, I don't have access to a 64bit machine.

Thanks,
Nicolas

On Wed, Jul 14, 2010 at 1:31 AM, Minas Abrahamyan <minas.subs at gmail.com>wrote:

> In both versions, 32 bit and 64-bit I now have VMkit is crushing:
>
> [bin]$ java HW
> Hello, world!
> [bin]$ ./j3 HW
> I received a SIGSEGV: either the VM code or an external
> native method is bogus. Aborting...
> Segmentation fault (core dumped)
> [bin]$
>
> Didn't look deep inside of 32bit version, but in 64bit it fails as:
> (gdb) bt
> #0  0x0000000000ae1ba3 in j3::JnjvmClassLoader::loadClassFromAsciiz
> (this=0x0,
>     asciiz=0x7ffff7b524f8 "gnu/classpath/Pointer64", doResolve=true,
> doThrow=true) at JnjvmClassLoader.cpp:537
> #1  0x0000000000b057c5 in FindClass (env=0x1c35910, asciiz=0x7ffff7b524f8
> "gnu/classpath/Pointer64")
>     at Jni.cpp:75
> #2  0x00007ffff7b4fdcd in JNI_OnLoad (vm=<value optimized out>,
> reserved=<value optimized out>) at jcl.c:73
> #3  0x0000000000b24fe0 in callOnLoad (res=0x7ffff027e0b0, loader=0x1c326b0,
> vm=0x1c35578)
>     at ClasspathVMRuntime.inc:95
> #4  0x0000000000b250cd in Java_java_lang_VMRuntime_nativeLoad
> (str=0x7ffff039ede0, javaLoader=0x0)
>     at ClasspathVMRuntime.inc:126
> #5  0x00007ffff7ef3a51 in ?? ()
> #6  0x00007ffff0104e76 in ?? ()
> #7  0x00000001200fdbd0 in ?? ()
> #8  0x00000001200fdbd0 in ?? ()
> #9  0x00007ffff7ef4447 in ?? ()
> #10 0x00007ffff01fa618 in ?? ()
> #11 0x0000000000000000 in ?? ()
> ==
> No symbols now yet, but hope it could somehow help.
>
> /** cat HW.java */
> public class HW {
>   public static void main(final String args[]) {
>     System.out.println("Hello, world!");
>   }
> }
>
>
> -Minas
>
> _______________________________________________
> vmkit-commits mailing list
> vmkit-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/vmkit-commits/attachments/20100714/ae423093/attachment.html>


More information about the vmkit-commits mailing list