I have a Java application which uses several native libraries through JNA. The application works fine on many different systems. However, on Ubuntu 10.04 LTS - 32bit when I close the application a segmentation fault occurs. 64bit works fine and the error does not occur on other 32bit distributions. Windows works fine too. The segmentation fault occurs in the delete function of glibc within an empty destructor.
The problem is solved, if I increase the maximum stack size of the JVM to 32mb (e.g. java -Xss32m ...)
Does anyone have an idea why this error only happens on Ubuntu 10.04 32bit? I have tested several distribution within a VM.
I am using Java 8 and the default maximum stack size is 4MB. I dont know if this is relevant to the JVM, but ulimit -s is 8MB.