Skip to content

jnaerator-0.10-shaded java.lang.StackOverflowError #31

@ochafik

Description

@ochafik

From @rit001 on April 16, 2012 19:28

Hi, I've just started to look at the jnaerator-0.10-shaded release with the same library set that has thrown up a number of issues due to their quirky layout.

The final result is always

Parsing native headers...
Writing preprocessor output to '_jnaerator.preprocessed.c'
Writing preprocessor macros to '_jnaerator.macros.cpp'
Normalizing parsed code...
Writing raw parsed sources to '_jnaerator.rawParsed.cpp'
Writing normalized parsed sources to '_jnaerator.normalizedParsed.cpp'
Generating libraries...
java.lang.StackOverflowError
at com.ochafik.lang.jnaerator.JNAerator$1$2.setFinished(JNAerator.java:692)
at com.ochafik.lang.jnaerator.JNAerator.jnaerate(JNAerator.java:973)
at com.ochafik.lang.jnaerator.JNAerator$1.finished(JNAerator.java:727)
at com.ochafik.lang.jnaerator.JNAeratorCommandLineArgs$ArgsParser.parse(JNAeratorCommandLineArgs.java:135)
at com.ochafik.lang.jnaerator.JNAerator.main(JNAerator.java:238)
at com.ochafik.lang.jnaerator.JNAerator.main(JNAerator.java:211)

 ERROR: JNAeration failed !

  java.lang.StackOverflowError

It looks like there is a recursive error as I've pushed the stack out to 180Mbyte and the only difference is that the CPU is loaded at 100% for longer.

What can I post to allow you to debug the issue?

By the way thanks for the work you carried out for the last issue I posted.

Copied from original issue: nativelibs4java/nativelibs4java#303

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions