On 02/05/14 02:22, fredvs wrote:
Hello.
When a java class use a fpc library that call jni.CallVoidMethod inside a
thread it crash the application.
If the fpc library call jni.CallVoidMethod directly (not via a thread) =>
perfect, it works.
Is that a known problem ?
Maybe does it exist something else than jni.CallVoidMethod for inside a
thread (like synchronize or queue for procedure of object) ?
Here the java error message :
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f6d0e405be1, pid=5145, tid=140105962755840
#
# JRE version: OpenJDK Runtime Environment (7.0_51) (build 1.7.0_51-b00)
# Java VM: OpenJDK 64-Bit Server VM (24.45-b08 mixed mode linux-amd64
compressed oops)
# Problematic frame:
# V [libjvm.so+0x4debe1]
Exceptions::throw_stack_overflow_exception(Thread*, char const*, int,
methodHandle)+0x211
#
# Failed to write core dump. Core dumps have been disabled. To enable core
dumping, try "ulimit -c unlimited" before starting Java again
Did you use AttachCurrentThread and DetachCurrentThread?
Pay attention to the validity of local references as well as their number.
Posting some code might help.
Stephano
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal