That's great news also (the printing of Hello World!).<div><br></div><div>Congrats! :)<br><br><div class="gmail_quote">On Mon, Jul 19, 2010 at 7:15 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Wow, Alan!<br>
Thank you very much! You're like a magician, how did you know?<br>
<br>
It now works for me:<br>
<<<<br>
[bin]$ ./j3 HW 2>log.txt<br>
Hello, world!<br>
[bin]$<br>
>>><br>
<br>
Last lines of log.txt are:<br>
<<<<br>
compiling java/io/FileOutputStream.write()<br>
--> end compiling java/io/FileOutputStream.write()<br>
;resolve {Class gnu/java/nio/FileChannelImpl<br>
}resolve; //Class gnu/java/nio/FileChannelImpl<br>
compiling gnu/java/nio/FileChannelImpl.write()<br>
--> end compiling gnu/java/nio/FileChannelImpl.write()<br>
compiling gnu/java/nio/VMChannel.write()<br>
--> end compiling gnu/java/nio/VMChannel.write()<br>
native compile gnu/java/nio/VMChannel.write()<br>
--> end native compile gnu/java/nio/VMChannel.write()<br>
--> end native compile gnu/java/nio/VMChannel.write()<br>
Hello, world!<br>
compiling java/io/OutputStream.flush()<br>
--> end compiling java/io/OutputStream.flush()<br>
>>><br>
//except for "Hello, world!" printed on stdout<br>
<br>
I don't know what is right way to transfer classpath build system that<br>
 "no-omit" option, but what I did was<br>
change in ./configure script.<br>
<br>
See patch for it I'm attaching; to be applied with:<br>
patch ./configure.orig ./classpath_configure64.patch<br>
<br>
-Minas<br>
<br>
PS Allan, maybe you're compiling something other than "Hello World" -<br>
then, I hope, next my patch (related with Debug output) will help you.<br>
Thanks again!<br>
<br>
PPS<br>
JFYI, article "Getting the call stack without a frame pointer":<br>
<a href="http://www.yosefk.com/blog/getting-the-call-stack-without-a-frame-pointer.html" target="_blank">http://www.yosefk.com/blog/getting-the-call-stack-without-a-frame-pointer.html</a><br>
<div><div></div><div class="h5"><br>
On Mon, Jul 19, 2010 at 6:19 AM, Allan Tong <<a href="mailto:actong88@gmail.com">actong88@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I was having the same problem here.  It turns out that the 64-bit<br>
> build of Classpath was omitting frame pointers.  Once I recompiled<br>
> Classpath with -fno-omit-frame-pointer, the StackWalker was able to<br>
> get past the offending stack frame and find the calling Java method.<br>
> This resolves the segfault, though now I get a ClassNotFoundException<br>
> trying to find my main class, which I haven't looked into yet.<br>
><br>
>  - Allan<br>
</div></div><br>_______________________________________________<br>
vmkit-commits mailing list<br>
<a href="mailto:vmkit-commits@cs.uiuc.edu">vmkit-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits</a><br>
<br></blockquote></div><br></div>