-
Bug
-
Resolution: Cannot Reproduce
-
P3
-
None
-
1.4.2
-
generic
-
solaris_9
###@###.### 2003-06-30
When compiling a large file (machine generated parser),
the compiler throws a stack overflow error.
timf@cuprum[20] /usr/local/java/j2sdk1.4.2/bin/javac -d /space/timf/transtech-build com/sun/tlis/filters/de_segmenter/*.java
The system is out of resources.
Consult the following stack trace for details.
java.lang.StackOverflowError
However, this worked fine using j2sdk 1.4.1_03 :
/usr/local/java/j2sdk1.4.1_03/bin/javac -d /space/timf/transtech-build de_segmenter/com/sun/tlis/filters/de_segmenter/*.java
<just worked - no output>
My machine is a 1gb ram sunblade 2000 running s9_58shwpl3 - and
it was under the same load for each test.
The 1.4.2 command line help didn't appear to give any
workaround, and the error message didn't suggest an alternative.
From reading the tool-docs, I was able to add a -J-ss option,
which seems to have done the trick, but it wasn't terribly
intuitive for the uneducated user (see workaround)
I've attached the source files that trigger this bug - it's a
javacc/jjtree sentence segmenter (runs over a paragraph of
german plaintext, and spits out the sentences)
When compiling a large file (machine generated parser),
the compiler throws a stack overflow error.
timf@cuprum[20] /usr/local/java/j2sdk1.4.2/bin/javac -d /space/timf/transtech-build com/sun/tlis/filters/de_segmenter/*.java
The system is out of resources.
Consult the following stack trace for details.
java.lang.StackOverflowError
However, this worked fine using j2sdk 1.4.1_03 :
/usr/local/java/j2sdk1.4.1_03/bin/javac -d /space/timf/transtech-build de_segmenter/com/sun/tlis/filters/de_segmenter/*.java
<just worked - no output>
My machine is a 1gb ram sunblade 2000 running s9_58shwpl3 - and
it was under the same load for each test.
The 1.4.2 command line help didn't appear to give any
workaround, and the error message didn't suggest an alternative.
From reading the tool-docs, I was able to add a -J-ss option,
which seems to have done the trick, but it wasn't terribly
intuitive for the uneducated user (see workaround)
I've attached the source files that trigger this bug - it's a
javacc/jjtree sentence segmenter (runs over a paragraph of
german plaintext, and spits out the sentences)