[vmkit-commits] J3 crushes on HelloWorld

Minas Abrahamyan minas.subs at gmail.com
Thu Jul 15 01:17:41 PDT 2010


Hi Nicolas,

I've rebuilt 32-bit version and it passed this "HelloWorld" test ok, maybe
error was in classpath of 64 version I moved before to there. ...

64-bits continue with same error, 'this' is null, because loader is null,
etc.

Regards,
Minas

On Wed, Jul 14, 2010 at 11:34 PM, nicolas geoffray <
nicolas.geoffray at gmail.com> wrote:

> 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
>>
>>
>
> _______________________________________________
> 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/20100715/469bd755/attachment.html>


More information about the vmkit-commits mailing list