SIGSEGV in jc1

Per Bothner
Tue May 8 17:56:00 GMT 2001

"Boehm, Hans" <> writes:

> I still see this failure both in the branch and in (my hacked version of)
> the trunk.  I believe it's reproducible by
> 1) Downloading and unpacking

Did that (again).

> 2) Making sure that JAVAC in the Makefile is a usable Java to class file
> compiler, and that the gcj on the path is the right one.
> 3) Typing "make rpn_calc" in the root directory.

kelso<1148>make rpn_calc JAVAC=/opt/jdk1.3/bin/javac
/opt/jdk1.3/bin/javac -d .
gcj -O -o rpn_calc --main=rpn_calc com/sgi/math/*.class
kelso<1151>type gcj
gcj is /home/bothner/GNU/install-gcc3/bin/gcj

This is my cvs version of the gcc3 branch, checked out, built, and
installed yesterday evening, on my RH7 box.

> Based on the stack trace, I would guess that it also occurs in other cases
> in which you're compiling from .class files which include inner classes?


> Is there an easy way to diable the -ffilelist-file mechanism to work around
> this?

You could try commenting out line 378 in jvspec.c:
      || (saw_C && java_files_count > 1)

We need to figure out what is going on here.  Could some other people try
Hans's testcase using a branch or trunk tree, and report the result?
Doing so shold be trivial, once gcc is built.
	--Per Bothner

More information about the Java mailing list