question about linux stack checks

Keith McGuigan Keith.McGuigan at Sun.COM
Mon Mar 31 12:56:56 PDT 2008


Hello,

Someone posted this to the message board, can any suggest any help for him?

 >
 > <http://forum.java.sun.com/forum.jspa?forumID=37>
 > or
 > <http://forum.java.sun.com/thread.jspa?threadID=5280023>
 >
 > For your convenience, the new message is included below:
 > --------------------------------------------------------------
 > Hi.
 > I see the code in os::Linux::capture_initial_stack() checks the 
__libc_stack_end symbol to try to discern where the initial stack 
section is for the VM. I have a case where an executable (over which I 
have no control) loads a shared library I've written, but does so in a 
"stack sandbox". My shared library creates a VM through a JNI call. The 
VM gets the stack section for the main program, but is running in this 
sandbox and a crash occurs pretty quickly. Specifically in the 
guarantee(get_thread() == thread) assertion.
 >
 > Are there any mechanisms for helping in this situation? From my 
reading of the code, my only option is to recompile the VM with a 
modified capture_initial_stack(), which is a little daunting (the 
recompile process -- not the code modification).
 >
 > Is this even the right forum to be asking this question?
 >
 > Thanks.
 > nall.
 > --------------------------------------------------------------
 >
 > To respond to this post, please click the following link:
 > <http://forum.java.sun.com/thread.jspa?messageID=10175527>



More information about the hotspot-runtime-dev mailing list