Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4885532

Stackoverflow on compiling machine-generated parser

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 1.4.2
    • tools
    • 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)

            ahe Peter Ahe
            timf Tim Foster (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: