Re: cannot create vm, crash in /lib/tls/glibc.so.6

"Grzegorz B. Prokopski" <[email protected]>
Newsgroups gmane.comp.java.vm.sablevm.devel
Organization SableVM - LGPL'ed Free Java VM http://sablevm.org
Message-ID <[email protected]>
On Mon, 2004-11-22 at 02:56, yangfei wrote:
> 	I build sablevm-1.1.7 and the corresponding classpath on RH9.0 (gcc 3.4.3,
> jikes1.18) usr configure --with-debugging-features successfully, when I try to run
> it , I get a "cannot create vm" error. The detailed information is:

This should have been --enable-debugging-features, and NOT
--with-debugging-features.  You can always check what options are
available by issuing:

	./configure --help

Did you *also* build sablevm-classpath-1.1.7 ?  If not you should.

Can you also show us *full* options you passed to configure?

> 	[verbose jni: JNI_CreateJavaVM]
>  	[verbose class: loading "java/lang/Object"]
> 	[verbose class: loading "java/io/Serializable"]
> 	[verbose class: loading "java/lang/Cloneable"]
> 	[verbose class: creating "[B"]
> 	[verbose class: loading "java/lang/VMClass"]
> 	[verbose class: loading "java/lang/Class"]  	
> 	sablevm: cannot create vm
> 
> 	The reason a segmentation fault is:
> 
> 	Program received signal SIGSEGV, Segmentation fault.
> 	[Switching to Thread 1082812096 (LWP 28560)]
> 	_svmf_interpreter (_env=0x0) at interpreter.c:258
> 	258         _svmt_method_info *method = frame->method;
> 
> 	(gdb) backtrace
> 	
> 	#0  _svmf_interpreter (_env=0x0) at interpreter.c:258
> 	#1  0x40076a1d in JNI_CreateJavaVM (pvm=0xbffff4a0, penv=0xbffff4a4, 		_vm_args=0xbffff4b0) at invoke_interface.c:295
> 	#2  0x08049f95 in main (argc=0, argv=0x0) at sablevm.c:1353
> 	#3  0x42015574 in __libc_start_main () from /lib/tls/libc.so.6
> 
> 
> 	I find a glibc.so.6 in /lib as well as in /lib/tls, but they are different in size.
> Can anybody help explain what's going on ?

Doesn't look like a libc problem to me :-)

After rebuilding sablevm with the right options, as described above,
please also include output of 

	sablevm -V

command.  This will tell us for sure what is the configuration you're
running so we'll be able to help you better.

Cheers,

				Grzegorz B. Prokopski
-- 
Grzegorz B. Prokopski           <[email protected]>
SableVM - Free, LGPL'ed Java VM  http://sablevm.org
Why SableVM ?!?                  http://sablevm.org/wiki/Features
Debian GNU/Linux - the Free OS   http://www.debian.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.