Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ochafik opened this issue Mar 18, 2015 · 0 comments
Open

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

ochafik opened this issue Mar 18, 2015 · 0 comments

Comments

@ochafik
Copy link
Member

ochafik commented Mar 18, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant