openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #04444
[Bug 625820] Re: irrecoverable stack overflow caused by library with executable stack
Java code for test case.
** Attachment added: "StackOverflowCrash.java"
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/625820/+attachment/1525018/+files/StackOverflowCrash.java
--
irrecoverable stack overflow caused by library with executable stack
https://bugs.launchpad.net/bugs/625820
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.
Status in “openjdk-6” package in Ubuntu: New
Bug description:
Description: Ubuntu 10.04.1 LTS
Release: 10.04
This is a test case to demonstrate that stack overflow detection is broken on OpenJDK6+Linux when a Java application loads a library which denotes it requires an executable stack. The cause of this outlined in more detail here:
http://blogs.sun.com/dns/entry/stacks_with_split_personalities
To reproduce:
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
$JAVA_HOME/bin/javac StackOverflowCrash.java
gcc -c stackoverflowcrash.c -fPIC -I$JAVA_HOME/include -I$JAVA_HOME/include/linux
gcc -g -shared -lc stackoverflowcrash.o -o libstackoverflowcrash.so
$JAVA_HOME/bin/java -Djava.library.path=. -cp . StackOverflowCrash
References