建议你在linux底下编译so加-g选项,然后gdb java,进去以后可以b c函数名来设置断点,单步调试。或者生成core文件 ,再gdb java core看看崩溃堆栈上下文。推荐第一种方式。
声明下,在window环境中同样的项目是可以运行的,linux单独运行测试类型也是可以的,唯独放到tomcat上就不行## A fatal error has been detected by the Java Runtime Environment:## SIGSEGV (0xb) at pc=0x00b920c3, pid=8567, tid=3073481616## JRE version: 6.0_27-b07# Java VM: Java HotSpot(TM) Server VM (20.2-b06 mixed mode linux-x86 )# Problematic frame:# C short+0x33## 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.#太多贴不下,下面是代码package uap.util;public final class PmUtil{ static{ System.out.println(System.getProperty("java.library.path")); System.loadLibrary("pmlib"); } public static native int getPmlibNegShareKeyByASAddr(String strReq_ID