5 messages in net.java.dev.jna.users[jna-users] jna crashes - serious pro...
FromSent OnAttachments
evgeni shafranJul 16, 2008 1:37 am.log
Timothy WallJul 16, 2008 4:28 am 
evgeni shafranJul 16, 2008 4:51 am 
Timothy WallJul 16, 2008 5:18 am 
evgeni shafranJul 16, 2008 5:25 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[jna-users] jna crashes - serious problem!!!Actions...
From:evgeni shafran (yavj@gmail.com)
Date:Jul 16, 2008 1:37:58 am
List:net.java.dev.jna.users
Attachments:

i have multi thread daemon using JNA which frequently crashes with the folowing error (full dump attached):

# # An unexpected error has been detected by Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00000034c36723bc, pid=14041, tid=1093912928 # # Java VM: Java HotSpot(TM) 64-Bit Server VM (10.0-b22 mixed mode linux-amd64) # Problematic frame: # C [libc.so.6+0x723bc] memcpy+0x1c # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # --------------- T H R E A D --------------- Current thread (0x0000002adcb37000): JavaThread "Thread-5" daemon [_thread_in_native, id=14119, stack(0x000000004123c000,0x000000004133d000)] siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0000002ae3c7b675

The daemon uses FFMPEG library (libavcodec) through Java-FFMPEG bindings, which in turn use JNA.

I need any way to either solve the issue, or to isolate the crashing thread and not allow the crash to propogate to the rest of the daemon.

Please assist, I'm trying to solve this for the entire last week.

If the source code required, any tips of locating the offending FFMPEG C++ function would be appreciated (currently, as you see, it only shows the point of crash but not the c++ functions stack).

Thanks to anyone who will reply.