views:

87

answers:

0

Hi,

A java swing application(GUI) using JNI code to communicate with native C code. The Swing application launches properly and works fine. The GUI is used to start some customized system level tests(io,memory,cpu) and show their progress. The tests have to be left running at-least overnight to get the results. But, the next morning, GUI crashes and throws following message.

Any pointers on source of the issue will be greatly appreciated.

Java version: java 1.5 / java 1.6 OS: Solaris 10.

Thanks, Div (Also posted on javaranch.com for ideas.http://www.coderanch.com/t/498651/java/java/Swing-GUI-crashes-JNI)

=============MESSAGES================== 
# uname -a 
SunOS Generic_127127-11 sun4v sparc SUNW, 
# 
# # 
# An unexpected error has been detected by HotSpot Virtual Machine: 
# 
# SIGSEGV (0xb) at pc=0xff268924, pid=9473, tid=272 
# 
# Java VM: Java HotSpot(TM) Server VM (1.5.0_14-b03 mixed mode) 
# Problematic frame: 
# C [libc.so.1+0x68924] strstr+0x20 
# 
# An error report file with more information is saved as hs_err_pid9473.log 
# 
# If you would like to submit a bug report, please visit: 
# HotSpot Virtual Machine Error Reporting Page 
# 

============================= 

Another machine:

# A fatal error has been detected by the Java Runtime Environment: 
# 
# SIGSEGV (0xb) at pc=0xff231fd0, pid=1406, tid=180 
# 
# JRE version: 6.0_18-b07 
# Java VM: Java HotSpot(TM) Server VM (16.0-b13 mixed mode solaris-sparc ) 
# Problematic frame: 
# C [libc.so.1+0x31fd0] strcpy+0x70 
# 
# An error report file with more information is saved as: 
# /usr/sunvts/bin/hs_err_pid1406.log 
#