Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

How can I get the stack trace when Java JVM/JNI crashes ?

Thread view: 
for.fun@laposte.net - 05 Jan 2006 09:52 GMT
Hi everybody,

I am developping a JNI DLL using Visual Studio .NET 2003 (VC++ 7.1)
under Windows XP SP2 running on a Intel CPU.
I am using JDK 1.5

I succeeded in entering in my JNI C++ code with VS .NET (I start the
"java" process from VS .NET and then stop on the breakpoints I set in
my JNI C++)

Here is my problem :

My process works for hours and suddenly crashes with an unexpected
exception. Hotspot reports the stack trace with the methods' address. I
can retrieve the matching methods in my JNI C++ code but it is not very
convenient since I do not have the crash context.

Under Windows, we have Structured Exception Handler which allows you,
Dr. Watson or other crash handlers to inspect the crash context.
Unfortunately, it seems that Hotspot overrides the SEH and do not let
VS .NET catching the SEH exception.

Instead, I just have a "hs_err_pid<process_id>.log"

Does anybody know if there is a way to tell Hotspot (java) to let VS
.NET to catch SEH and then allow me to enter in the crash source code
from VS .NET keeping the context (memory, variables, stack ...) ?

Thanks in advance for your help.
for.fun@laposte.net - 06 Jan 2006 22:05 GMT
Because nobody replied and because I can not get rid of my problem, I
try again :

Does anybody know an issue to prevent Java Virtual Machine from
trapping crash exceptions (SEH) and let Windows trap it instead ?

... and let debuggers or Dr Watson tools do the job.

Thanks a lot if you have an idea.

PS: I tried "-Xrs" "java" option but it does not seem to change
anything.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.