JAVA program crash with SIGSEGV
843829Mar 12 2008 — edited Mar 26 2008Hi!
I have written a Java program that uses JMF and javax.comm.
When i run the program in Windows (in netbeans) then the program works perfectly fine.
When i move the java files to a computer with LINUX, compile an run the program then
the program some times crashes with the following message:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0x4c94986c, pid=2673, tid=2979568528
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode, sharing)
# Problematic frame:
# C [libc.so.6+0x6886c]
#
IS THIS A BUG IN MY JAVA PROGRAM OR IS A LINUX RELATED PROBLEM?
My guess (as a not very experinced JAVA programmer) is that it actually is a Linux related problem.
Any programming bug would have been caught by a exception in Java.
I have tried several JAVA versions (1.5.0, 1.6.0 ... ) and they all behave similar.
The Linux dist i use is Fedora 7. (I have also tried Fedora 8 with the same result.
Some times when it crashes it points out that the crash happened outside the JVM:
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
From the logfiles i can read out that libc seems to be involved and that it occur after a malloc or calloc.
Stack: [0xb5356000,0xb53a7000], sp=0xb53a4e30, free space=315k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libc.so.6+0x66072]
C [libc.so.6+0x680bd]
C [libc.so.6+0x69ebe] __libc_malloc+0x7e
C [libfontmanager.so+0x42d42]
.
.
.
IS THIS A BUG IN MY JAVA PROGRAM OR IS A LINUX RELATED PROBLEM?