vmkit segmentation fault revision 107990

Hi Nicolas,

I found a 32bit Lucid machine (but it’d be great if there was a working 64bit
version though). Everything was checked out this morning.
I now am able to build vmkit with this configuration:

./configure --with-llvmsrc=/home/zoewolk/RESEARCH/llvm --with-llvmobj=/home/zoewolk/RESEARCH/llvm --with-gnu-classpath-glibj=/home/zoewolk/RESEARCH/classpath-0.97.2/lib --with-gnu-classpath-libs=/home/zoewolk/RESEARCH/classpath-0.97.2/lib

j3 Hello works

However, when I run this, I get the segfault below.
I compiled Hello.java with
$> javac -version
javac 1.6.0_18

My JDK is openjdk-6-jdk, 6b18-1.8-0ubuntu1

thanks

zoewolk@wizards:~/RESEARCH/vmkit$ gdb vmjc
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type “show copying”
and “show warranty” for details.
This GDB was configured as “i486-linux-gnu”.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>…
Reading symbols from /home/zoewolk/RESEARCH/vmkit/Release+Asserts/bin/vmjc…done.
(gdb) run Hello
Starting program: /home/zoewolk/RESEARCH/vmkit/Release+Asserts/bin/vmjc Hello
[Thread debugging using libthread_db enabled]
[New Thread 0x200ffb70 (LWP 12112)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x200ffb70 (LWP 12112)]
0x08947678 in llvm::FunctionPassManager::run(llvm::Function&) ()
(gdb) where
#0 0x08947678 in llvm::FunctionPassManager::run(llvm::Function&) ()
#1 0x08c73730 in ?? ()
#2 0x081b9e0c in j3::JavaLLVMCompiler::parseFunction(j3::JavaMethod*) ()
#3 0x081a3d68 in j3::JavaAOTCompiler::compileClass(j3::Class*) ()
#4 0x081af82c in mainCompilerStart(j3::JavaThread*) ()
#5 0x082281ae in mvm::thread::internalThreadStart(mvm::Thread*) ()
#6 0x0013396e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7 0x00368a4e in clone () from /lib/tls/i686/cmov/libc.so.6

Hello.java:
public class Hello {
public static void main(String args[]) {
System.err.println(“Hello there”);
}
}

Hi Zoe,

Sorry for the long delay, but I have fixed this issue, which only occurred when AOT-compiling a single file. Thanks for reporting the error!

Nicolas