GNU_STACK ELF header

David Holmes David.Holmes at oracle.com
Fri Aug 27 04:10:45 PDT 2010


Hi Doug,

Douglas Simon said the following on 08/27/10 16:25:
> As a result of stack overflow detection breaking in Maxine on Linux,
> I learnt about this ELF header. My experience is described here:
> http://blogs.sun.com/dns/entry/stacks_with_split_personalities
> 
> Is this issue known in HotSpot/JDK? If so, how exactly is the header
> being omitted from the HotSpot and JDK libraries and executables?

I could be mistaken but I think these kinds of issues (it occurred with 
exec-shield in the past - see bug 5099186) are why the Java launcher 
creates the JVM in a new thread (and why we recommend custom launchers 
do the same). That ways any OS machinations with the initial thread's 
stack don't impact on the JVM's stack management.

Cheers,
David Holmes


More information about the hotspot-dev mailing list