irrecoverable stack overflow caused by library with executable stack

Bug #625820 reported by Douglas Simon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
New
Undecided
Unassigned

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

Revision history for this message
Douglas Simon (dnsimon) wrote :

Native code for test case.

Revision history for this message
Douglas Simon (dnsimon) wrote :

Java code for test case.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.