Segmentation Fault in java
843829Sep 22 2005 — edited Oct 5 2005Hi,
We have a C program which creates JVM and invokes java methods of a wrapper class. The wrapper class invokes a method on EJB (stateless session bean) and the bean is protected and authorization is delegated to a Security component. (a separate java component) . We authenticate to the Security Component and get the ticket and pass it while creating the javax.naming.InitialContext. Then lookup the bean and invoke the methods.
The C process is a record processing system. It runs continuously. It sleeps till it receives records. For each record, the bean method is invoked to fetch information.
Suppose we get a record for processing at Time X. It is processed correctly.
At time X + <1 hour> (assume that session with security component timesout ). So the bean call fails with AccessException. When we try to recreate the session and reinitialize context. Sometimes, it runs fine. Sometimes it crashes with Signal 11 and dumps core.
When we look at the core using dbx,
a) "where" command does not show the java class stack trace.
It shows some addresses. Not the exact class names and methods. So we are not able to debug it
b) the hs_..log file generated by java at crash time.. has only the last call. It does not include the stack trace.
I am on solaris and running java 1.4.2_06.
Please let me know if somebody has any idea on what is going on.
why does not dbx display the java stack trace (compiled java code runs.. why does not dbx unwind java stack trace ) ?