<br><div class="gmail_quote">On Tue, Jul 20, 2010 at 12:28 PM, Minas Abrahamyan <span dir="ltr"><<a href="mailto:minas.subs@gmail.com">minas.subs@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Tue, Jul 20, 2010 at 6:56 PM, Joshua Warner <<a href="mailto:joshuawarner32@gmail.com">joshuawarner32@gmail.com</a>> wrote:<br>
> Hi Minas,<br>
><br>
> I tried recompiling Classpath with -fno-omit-frame-pointer, and now, instead<br>
> of printing an error message, j3 just segfaults in<br>
> "j3::JnjvmClassLoader::loadClassFromAsciiz(char const*, bool, bool) ()"<br>
><br>
<br>
</div>Could you please run it under gdb like<br>
$ gdb --args ./j3 HelloWorld<br>
and print here backtrace at fall?<br>
<div class="im"><br></div></blockquote><div><br>Below is the output of the gdb session:<br>
<br>
$ gdb --args ./j3 HelloWorld<br>
GNU gdb (GDB) 7.1-ubuntu<br>
Copyright (C) 2010 Free Software Foundation, Inc.<br>
License GPLv3+: GNU GPL version 3 or later 
<<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>><br>
This is free software: you are free to change and redistribute it.<br>
There is NO WARRANTY, to the extent permitted by law.  Type "show 
copying"<br>
and "show warranty" for details.<br>
This GDB was configured as "x86_64-linux-gnu".<br>
For bug reporting instructions, please see:<br>
<<a href="http://www.gnu.org/software/gdb/bugs/">http://www.gnu.org/software/gdb/bugs/</a>>...<br>
Reading symbols from 
/home/jowarner/code/vmkit/Release+Asserts/bin/j3...(no debugging symbols
 found)...done.<br>
(gdb) r<br>
Starting program: /home/jowarner/code/vmkit/Release+Asserts/bin/j3 
HelloWorld<br>
[Thread debugging using libthread_db enabled]<br>
[New Thread 0x1200ff700 (LWP 16322)]<br>
[New Thread 0x1201ff700 (LWP 16323)]<br>
[New Thread 0x1202ff700 (LWP 16324)]<br>
<br>
Program received signal SIGSEGV, Segmentation fault.<br>
[Switching to Thread 0x1200ff700 (LWP 16322)]<br>
0x000000000052d725 in j3::JnjvmClassLoader::loadClassFromAsciiz(char 
const*, bool, bool) ()<br>
(gdb) bt<br>
#0  0x000000000052d725 in j3::JnjvmClassLoader::loadClassFromAsciiz(char
 const*, bool, bool) ()<br>
#1  0x0000000000558633 in FindClass(_Jv_JNIEnv*, char const*) ()<br>
#2  0x00007ffff60d531d in JNI_OnLoad () from 
/usr/lib/classpath/libjavanio.so<br>
#3  0x000000000055d558 in callOnLoad ()<br>
#4  0x0000000000569630 in Java_java_lang_VMRuntime_nativeLoad ()<br>
#5  0x00007ffff7f07491 in ?? ()<br>
#6  0x0000000000000000 in ?? ()<br>
(gdb) list<br>
1    events.c: No such file or directory.<br>
    in events.c<br>
(gdb) f 1<br>
#1  0x0000000000558633 in FindClass(_Jv_JNIEnv*, char const*) ()<br>
(gdb) list<br>
1    in events.c<br>
(gdb) <br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
> I ran llcj under strace and found that it is not even opening the input or<br>
> output files, but is otherwise running normally.<br>
</div>Let's make things clear (to me):<br>
Have you pass these steps:<br>
<a href="http://vmkit.llvm.org/use_aot.html" target="_blank">http://vmkit.llvm.org/use_aot.html</a>  - Java Ahead of Time (AOT) Compilation ?<br></blockquote><div><br>I followed those instructions - no different result.<br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
If yes, how is it finished process of making glibj.zip into native code?<br>
I didn't pass it on my 64-bit machine. Interesting if you get there<br></blockquote><div><br>I'm not sure what you mean.  There were no errors in the build, and both llcj and vmcj seem otherwise functional (they both run and print usage information just fine).<br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>
> Updating to the latest SVN version (revision 108831) didn't change anything<br>
> (I was only a few days out of date).<br>
><br>
> I'm not sure where to go from here.  Does this fit with any of the known<br>
> problems under 64-bit linux?<br>
<br>
</div>Not know yet :)<br>
<br>
><br>
> Thanks,<br>
> Joshua<br>
<br>
Thanks,<br>
<font color="#888888">Minas<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br>