Public bug reported:

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

** Affects: openjdk-6 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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 Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to