today i try to find the reason for this problem and it seems the problem
totally vanish:-) which is a good news since we can use it, but a bad
news since nether gstreamer-java nor jna packages change since the
problem occurred (may be other packages).
Wayne Meissner wrote:
This is a bit of a stab in the dark, but check that the rpm build for
libffi has -DFFI_MMAP_EXEC_WRIT in CFLAGS for the build.
gst_object_unref() will do a C -> java callback, and if you're on a
system that disables the execute bit on normal malloc data (which
should be all of them these days), JNA callbacks will cause the jvm to
crash if libffi is not built to allocate the closure trampoline in
executable memory.
2008/7/22 Farkas Levente <lfarkas@lfarkas.org>:
Andrew Overholt wrote:
* Farkas Levente <lfarkas@lfarkas.org> [2008-07-20 18:17]:
[junit] # An error report file with more information is saved as:
[junit] # /tmp/gstreamer-java/hs_err_pid12123.log
What's in this file? The JVM is most likely crashing due to something
wrong in the JNI code.
attached.
or should i've to package the jna provided by gstreamer-java or
reuild the original jna and not use the fedora one?
This would be against the Fedora Packaging Guidelines.
ok but currently the situation is:
- not working with the jna in fedora,
- working with the jna bundled with gstreamer-java,
- working with the jna download from jna homepage.
so dare i assume there is some problem with the fedora jna package?
--
Levente "Si vis pacem para bellum!"
#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x6c9b4564, pid=5644, tid=1616784
#
# Java VM: OpenJDK Client VM (1.6.0-b09 mixed mode linux-x86)
# Problematic frame:
# C 0x6c9b4564
#
# If you would like to submit a bug report, please visit:
# http://icedtea.classpath.org/bugzilla
# 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 (0x09feac00): JavaThread "main" [_thread_in_native, id=5645, stack(0x0013a000,0x0018b000)]
Instructions: (pc=0x6c9b4564)
0x6c9b4554:
[error occurred during error reporting (printing registers, top of stack, instructions near pc), id 0xb]
Stack: [0x0013a000,0x0018b000], sp=0x00189a60, free space=318k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C 0x6c9b4564
C [libgstreamer-0.10.so+0x1b09f] gst_object_unref+0x8f
C [libgstreamer-0.10.so+0x1c785] gst_object_sink+0x105
C [libffi.so.5+0x44c7] ffi_call_SYSV+0x17
C [libffi.so.5+0x4306] ffi_call+0x86
C [libjnidispatch.so+0x7b5e]
C [libjnidispatch.so+0x874b] Java_com_sun_jna_Function_invokeVoid+0x3b
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::StubRoutines (1)
V [libjvm.so+0x193677]
V [libjvm.so+0x26c459]
V [libjvm.so+0x19294f]
V [libjvm.so+0x19c24a]
V [libjvm.so+0x1a752a]
C [java+0x2ef7] JavaMain+0xe57
C [libpthread.so.0+0x632f]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::StubRoutines (1)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 960K, used 71K [0x940b0000, 0x941b0000, 0x96810000)
eden space 896K, 5% used [0x940b0000, 0x940bbb08, 0x94190000)
from space 64K, 38% used [0x941a0000, 0x941a6378, 0x941b0000)
to space 64K, 0% used [0x94190000, 0x94190000, 0x941a0000)
tenured generation total 4096K, used 350K [0x96810000, 0x96c10000, 0xb40b0000)
the space 4096K, 8% used [0x96810000, 0x96867988, 0x96867a00, 0x96c10000)
compacting perm gen total 12288K, used 4141K [0xb40b0000, 0xb4cb0000, 0xb80b0000)
the space 12288K, 33% used [0xb40b0000, 0xb44bb4e8, 0xb44bb600, 0xb4cb0000)
No shared spaces configured.
vm_info: OpenJDK Client VM (1.6.0-b09) for linux-x86 JRE (1.6.0-b09), built on Jul 8 2008 11:26:24 by "mockbuild" with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)