← Back to team overview

openjdk team mailing list archive

[Bug 625820] [NEW] irrecoverable stack overflow caused by library with executable stack

 

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 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





Follow ups

References