-
Notifications
You must be signed in to change notification settings - Fork 83
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
Bridj - Multithreading crashes the JVM #450
Comments
Hi @dbuchhorn , Thanks a lot for your report, and sorry for the trouble! I've recently modified the "last error" code, it looks like I might have introduced some wrong pointer cast somewhere... Investigating this now :-) Cheers |
If you have a chance, could you please try to run with Likewise, a full dump of the logs with Thanks |
(update: |
For the first run I only use "-Dbridj.veryVerbose=true", for the second test I use "-Dbridj.direct=false" too. |
Hi @dbuchhorn , Sorry for the delay, this should be fixed in the latest 0.7-SNAPSHOT. Cheers |
Hello Olivier,
the actuell bridj 0.7-SNAPSHOT version (bridj-0.7-20130922.224652-51) crashes the JVM. I use multiple threads to make some image manipulations over the ImageMagic C API. I use JDK 1.6 32bit and JDK 1.7 32bit on a Windows 8 64bit OS. My program is executed in a JBoss 5.1 application server.
The JVM often crashes after some minutes.
Here are some JVM reports:
Report 1:
Report 2:
Report 3:
Sometimes in the log4j log files I found a java.lang.StackOverflowError like this one:
javax.ejb.EJBException: Unexpected Error
java.lang.StackOverflowError
at de.fup.magick.wand.MagickWandAPI.DestroyMagickWand(Native Method)
at de.fup.magick.wand.MagickWand.dispose(MagickWand.java:134)
It seems the error occurs during cleanup the native allocated memory.
A test with the latest 0.6.3-SNAPSHOT version works fine (no crash after a 16 hour test). I also test the JDK 1.7 64bit version and the JVM don't crashes too (12 hour test).
I use google to search for some reasons. Can it be the internal JVM runtime paraters like Xss (thread stack size) and so on? These parameters are different on each OS and JVM version. I also try to set the Xss parameter to a higher value the JVM still crashes. I tried these because my program runs inside the JBoss application server. All classes are executed with a deep stack. But maybe there is a bug in the 32bit bridj version. (it can be in the 64bit version too but currently not appeared)
Any help are welcome.
The text was updated successfully, but these errors were encountered: