Fatal error à l'appel d'une librairie .so
Bonjour,
J'essaie d'appeler une librairie c++ via jni. La compilation c'est bien passé, mais lors du chargement de la bibliothèque via System.load(""); Il y aune "fatal error".
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| #
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f15cbde2b9b, pid=2458, tid=139731394008832
#
# JRE version: 6.0_24-b24
# Java VM: OpenJDK 64-Bit Server VM (20.0-b12 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea6 1.11.5
# Distribution: Ubuntu 12.04 LTS, package 6b24-1.11.5-0ubuntu1~12.04.1
# Problematic frame:
# C [libc.so.6+0x53b9b] _IO_vfscanf+0x6b
#
# An error report file with more information is saved as:
# /home/cheminade/workspace/Under/hs_err_pid2458.log
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
# https://bugs.launchpad.net/ubuntu/+source/openjdk-6/
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
# |
J'utilise des fonction fscanf dans mon code et le message d'erreur semble suggérer que le problème pourrait venir de là, mais pour une exécution classique en C++ via un main. Le code tourne très bien.
Quelqu'un serait il susceptible de m'aider à lever cette erreur?