Swing GUI using JNI crashes

Posted by Div on Stack Overflow See other posts from Stack Overflow or by Div
Published on 2010-06-09T17:46:52Z Indexed on 2010/06/09 17:52 UTC
Read the original article Hit count: 265

Filed under:
|
|
|

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

=============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 
#

© Stack Overflow or respective owner

Related posts about java

Related posts about swing