instalation problem

Chris Dornan cdornan@arm.com
Wed Apr 12 03:59:00 GMT 2000


Hi,

[I mailed the list a couple of days ago about a SEGV while installing
and testing gcj on a trivial test program and about link errors when
compiling with threads.]

I have concentrated on a plain build and rebuilt gcc-2.95.2 with
default options (no threads) and libgcj-2.95.1, also with standard
options.

It works fine in generating JVM code for Hello.java but when I
generate an a.out it generates a segmentation violation.

On running it under gdb and skipping past the first SEGV generated by
the garbage collector, it generates this SEGV:


	Program received signal SIGSEGV, Segmentation fault.
	_Jv_equalUtf8Consts (a=0x0, b=0xff2d436a)
	    at ../../../libgcj-2.95.1/libjava/prims.cc:89
	89        if (a->hash != b->hash)

	(gdb) print a
	$1 = (Utf8Const *) 0x0
	(gdb) print b
	$2 = (Utf8Const *) 0xff2d436a
	(gdb) print *b
	$3 = {hash = 56350, length = 8, data = "f"}
	(gdb) continue
	Continuing.

	Program terminated with signal SIGSEGV, Segmentation fault.

Any suggestions?

Cheers,

Chris Dornan
cdornan@arm.com


More information about the Java mailing list