Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

JNI segfault

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm generating a segfault while trying to wrap a piece of C code from the GNU scientific library (http://www.gnu.org/software/gsl/).

When I return a dummy value from the callee before anything happens, it returns the dummy and then throws the error ex post facto.

Googling the problem suggests it may be a pointer error or misplaced NULL value, but the calling method only uses a few simple structures and executes appropriately as well as passes the "electric fence test".

When I call the c method from the command line, everything runs appropriately.

Neither does it seem to matter if I'm calling from my IDE (idea) or not.

I'd appreciate any thoughts.

Details:

uname -a
Linux empedocles 2.6.15-1.1833_FC4smp #1 SMP Wed Mar 1 23:55:52 EST 2006 x86_64 x86_64 x86_64 GNU/Linux

java -version
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_07-b03, mixed mode)

Error message:

/usr/local/java/bin/java -Djava.library.path=/home/jason/IdeaProjects/JNI/clib:/usr/local/lib/gsl -Xcheck:jni -Didea.launcher.port=7532 -Didea.launcher.bin.path=/home/jason/programs/idea-4267/bin -Dfile.encoding=UTF-8 -classpath /usr/local/jdk1.5.0_07/jre/lib/charsets.jar:/usr/local/jdk1.5.0_07/jre/lib/jce.jar:/usr/local/jdk1.5.0_07/jre/lib/jsse.jar:/usr/local/jdk1.5.0_07/jre/lib/rt.jar:/usr/local/jdk1.5.0_07/jre/lib/ext/localedata.jar:/usr/local/jdk1.5.0_07/jre/lib/ext/dnsns.jar:/usr/local/jdk1.5.0_07/jre/lib/ext/sunjce_provider.jar:/home/jason/IdeaProjects/JNI/classes:/home/jason/programs/idea-4267/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain gsl.Test
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0x0000000000041b66, pid=11438, tid=46912496340928
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_07-b03 mixed mode)
# Problematic frame:
# C 0x0000000000041b66
#
# An error report file with more information is saved as hs_err_pid11438.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#

Process finished with exit code 134


/////////////// GammaAdaptor.java ////////////////////

package gsl;

/**
* Created by IntelliJ IDEA.
* User: jason
* Date: Aug 7, 2006
* Time: 11:52:02 AM
* To change this template use File | Settings | File Templates.
*/
public class GammaAdaptor {

public GammaAdaptor() {
}

static{
System.loadLibrary("jni_gn_gsl_gamma");
}

native double overall_probability(double ln_x, int n);

}

//// end GammaAdaptor.java ////

/////////////////////// Test.java ///////////////////////////
package gsl;

/**
* Created by IntelliJ IDEA.
* User: jason
* Date: Aug 7, 2006
* Time: 11:53:01 AM
*/
public class Test {

public static void main(String[] args) {
GammaAdaptor ga = new GammaAdaptor();
double d = ga.overall_probability(-920.23, 807);
System.out.println("Result:\t" + d );
}

}

// end Test.java ////////////////////////////////////////

//////////////// jni_gn_gsl_gamma.c //////////////////////////
#include <jni.h>

#include "gsl_GammaAdaptor.h"

#include "gsl/gsl_sf_result.h"
#include "gsl/gsl_sf_gamma.h"
#include "gsl/gsl_math.h"
#include "gsl/gsl_errno.h"

#include <stdlib.h>
#include <stdio.h>

/*
compiled like:

gcc -fPIC -I. -I/usr/local/java/include -I/usr/local/java/include/linux -I/usr/include/gsl/libgslcblas.so -I/usr/include/gsl/libgsl.so -c jni_gn_gsl_gamma.c

ld -shared -f /usr/local/lib/gsl/libgsl.so -f /usr/local/lib/gsl/libgslclbas.so jni_gn_gsl_gamma.o -o libjni_gn_gsl_gamma.so

*/

double mybad(double ln_x, int n){
/*
fprintf(stderr, "***WARNING: SJC_overall_probability("
"ln_x=%.17g, n=%d) is trouble; returning +3.0 as "
"``p-value'' and continuing.\n", ln_x, n);
*/
return(+3.0);
}

/*
JNIEnv - java native interface environment - pointer to jre thread and housekeeping info
jobject - pointer to the caller method.
jdouble - arg ln_x from the caller
jint - arg n from the caller
*/

JNIEXPORT jdouble JNICALL Java_gsl_GammaAdaptor_overall_1probability (JNIEnv * env, jobject method, jdouble ln_x, jint n)
{

// return 2; <-- still blows up if I uncomment this line.

//static int firstTime=1;
gsl_sf_result* r_ptr = (gsl_sf_result*) malloc( 1 * sizeof(gsl_sf_result) );
r_ptr->val = 0.0;
r_ptr->err = 0.0;
gsl_sf_result result = *r_ptr;
int status;

//if( firstTime ){ firstTime = 0; gsl_set_error_handler_off(); } <-- doesn't seem to matter

status = gsl_sf_gamma_inc_Q_e(n, -ln_x, &result);

if(status != GSL_SUCCESS) return mybad(ln_x,n);
if(!gsl_finite(result.val)) return mybad(ln_x,n);
if(!gsl_finite(result.err)) return mybad(ln_x,n);
if(result.val < -0.001) return mybad(ln_x,n);
if(result.val > +1.001) return mybad(ln_x,n);
if(result.err < 0.0) return mybad(ln_x,n);

if(result.val <= +0.0) result.val = +0.0;
else if(result.val > +1.0) result.val = +1.0;

if(result.val >= 1e-300) { if(result.err > 0.1*result.val) return mybad(ln_x,n); }
else if(result.err >= 1e-300) return mybad(ln_x,n);

return(result.val);
}

int main(void){

int n = 820;
double ln_x = -920.834;
gsl_sf_result result;
int status = gsl_sf_gamma_inc_Q_e(n, -ln_x, &result);

printf( "status is:\t%d\nresult is:\t%g\nerror is:\t%g\n", status, result.val, result.err );
}
//////////// end jni_gn_gsl_gamma.c /////////////////////////////


/////////////////// core dump ///////////////////////////////////

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0x0000000000041b66, pid=11582, tid=46912496340928
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_07-b03 mixed mode)
# Problematic frame:
# C 0x0000000000041b66
#

--------------- THREAD ---------------

Current thread (0x0000000040116080): JavaThread "main" [_thread_in_native, id=11582]

siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x0000000000041b66

Registers:
RAX=0x0000000000000000, RBX=0x00007fffff8c2420, RCX=0x00000039a7632728, RDX=0x0000000040129240
RSP=0x00007fffff8c2378, RBP=0x00007fffff8c24f0, RSI=0x0000000000000050, RDI=0x00007fffff8c23c0
R8 =0x00002aaaab335470, R9 =0x00002aaaab3213a8, R10=0x0000000000000c10, R11=0x00002aaaab0a4b70
R12=0x00002aaaae96f540, R13=0x00002aaab1ce2028, R14=0x00007fffff8c2590, R15=0x0000000040116080
RIP=0x0000000000041b66, EFL=0x0000000000010203, CSGSFS=0x0000000000000033, ERR=0x0000000000000014
TRAPNO=0x000000000000000e

Top of Stack: (sp=0x00007fffff8c2378)
0x00007fffff8c2378: 00002aaafa62dac5 0000000000014b0e
0x00007fffff8c2388: 00002aaaab0226ef 00007fffff8c2490
0x00007fffff8c2398: 00002aaaaae53d22 0000000040116080
0x00007fffff8c23a8: 405c4eb851eb8520 4089380000000000
0x00007fffff8c23b8: 00000000401172c0 0000000000000010
0x00007fffff8c23c8: 0000000040117740 0000000340116080
0x00007fffff8c23d8: 0000000040116080 00007fffff8c24d0
0x00007fffff8c23e8: 00002aaafa62e243 4089380000000000
0x00007fffff8c23f8: 0000000040117380 0000000200000001
0x00007fffff8c2408: 408cc1d70a3d70a4 0000000040116640
0x00007fffff8c2418: 00000000401172b0 00000000401172c0
0x00007fffff8c2428: 0000000040117698 0000000000000000
0x00007fffff8c2438: 00007fffff8c24d0 00002aaaae96f540
0x00007fffff8c2448: 00002aaafa62e982 00002aaab1ce2028
0x00007fffff8c2458: 00007fffff8c2590 0000000040116080
0x00007fffff8c2468: 00000039a746cb3b 00002aaab1ce2028
0x00007fffff8c2478: 00002aaab1ce2028 00002aaab1ce2028
0x00007fffff8c2488: 00002aaafa417582 00007fffff8c24e0
0x00007fffff8c2498: 00002aaaaae54050 00000000ff8c25d0
0x00007fffff8c24a8: 00000000401176f0 0000032740116080
0x00007fffff8c24b8: c08cc1d70a3d70a4 00007fffff8c2590
0x00007fffff8c24c8: 00000000401161d0 0000000000000000
0x00007fffff8c24d8: 0000000000000000 0000000040129240
0x00007fffff8c24e8: 00002aaaae96f401 00007fffff8c2558
0x00007fffff8c24f8: 00002aaaae96f562 00000000401172c0
0x00007fffff8c2508: 0000000040117698 0000000040116080
0x00007fffff8c2518: 0000000040116080 00007fffff8c2520
0x00007fffff8c2528: 00002aaab1ce2028 00007fffff8c2590
0x00007fffff8c2538: 00002aaab1ce2410 0000000000000000
0x00007fffff8c2548: 00002aaab1ce2028 00007fffff8c2578
0x00007fffff8c2558: 00007fffff8c25d0 00002aaaae965ec5
0x00007fffff8c2568: 0000000000000000 00002aaaae96c49a

Instructions: (pc=0x0000000000041b66)
0x0000000000041b56:
[error occurred during error reporting, step 100, id 0xb]

Stack: [0x00007fffff6c8000,0x00007fffff8c8000), sp=0x00007fffff8c2378, free space=2024k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C 0x0000000000041b66
j gsl.GammaAdaptor.overall_probability(DI)D+0
j gsl.Test.main([Ljava/lang/String V+15
v ~StubRoutines::call_stub
V [libjvm.so+0x382275]
V [libjvm.so+0x558749]
V [libjvm.so+0x382085]
V [libjvm.so+0x5a34da]
V [libjvm.so+0x5a62fa]
V [libjvm.so+0x3fd543]
C [libjava.so+0x168d5] Java_sun_reflect_NativeMethodAccessorImpl_invoke0+0x15
j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object Ljava/lang/Object;+0
j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object Ljava/lang/Object;+87
j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object Ljava/lang/Object;+6
j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object Ljava/lang/Object;+111
j com.intellij.rt.execution.application.AppMain.main([Ljava/lang/String V+120
v ~StubRoutines::call_stub
V [libjvm.so+0x382275]
V [libjvm.so+0x558749]
V [libjvm.so+0x382085]
V [libjvm.so+0x3af625]
V [libjvm.so+0x3a0797]
V [libjvm.so+0x3cca62]
C [java+0x1fd6] strcmp+0x796

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j gsl.GammaAdaptor.overall_probability(DI)D+0
j gsl.Test.main([Ljava/lang/String V+15
v ~StubRoutines::call_stub
j sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object Ljava/lang/Object;+0
j sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object Ljava/lang/Object;+87
j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object Ljava/lang/Object;+6
j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object Ljava/lang/Object;+111
j com.intellij.rt.execution.application.AppMain.main([Ljava/lang/String V+120
v ~StubRoutines::call_stub

--------------- PROCESS ---------------

Java Threads: ( => current thread )
0x00002aaaf70faff0 JavaThread "Monitor Ctrl-Break" daemon [_thread_in_vm, id=11600]
0x00002aaaf70e3a80 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=11598]
0x00002aaaf70e1fa0 JavaThread "CompilerThread1" daemon [_thread_blocked, id=11597]
0x00002aaaf70e0b80 JavaThread "CompilerThread0" daemon [_thread_blocked, id=11596]
0x00002aaaf70df710 JavaThread "AdapterThread" daemon [_thread_blocked, id=11595]
0x00002aaaf70de3b0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=11594]
0x00002aaaf70cc760 JavaThread "Finalizer" daemon [_thread_blocked, id=11593]
0x00002aaaf70cbe80 JavaThread "Reference Handler" daemon [_thread_blocked, id=11592]
=>0x0000000040116080 JavaThread "main" [_thread_in_native, id=11582]

Other Threads:
0x00002aaaf70c7bd0 VMThread [id=11591]
0x00002aaaf70e5850 WatcherThread [id=11599]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
PSYoungGen total 36608K, used 1257K [0x00002aaae16e0000, 0x00002aaae3fb0000, 0x00002aaaf6c30000)
eden space 31424K, 4% used [0x00002aaae16e0000,0x00002aaae181a430,0x00002aaae3590000)
from space 5184K, 0% used [0x00002aaae3aa0000,0x00002aaae3aa0000,0x00002aaae3fb0000)
to space 5184K, 0% used [0x00002aaae3590000,0x00002aaae3590000,0x00002aaae3aa0000)
PSOldGen total 83648K, used 0K [0x00002aaab6c30000, 0x00002aaabbde0000, 0x00002aaae16e0000)
object space 83648K, 0% used [0x00002aaab6c30000,0x00002aaab6c30000,0x00002aaabbde0000)
PSPermGen total 21248K, used 2835K [0x00002aaab1a30000, 0x00002aaab2ef0000, 0x00002aaab6c30000)
object space 21248K, 13% used [0x00002aaab1a30000,0x00002aaab1cf4e70,0x00002aaab2ef0000)

Dynamic libraries:
40000000-4000e000 r-xp 00000000 08:02 1210831 /usr/local/jdk1.5.0_07/bin/java
4010d000-40110000 rwxp 0000d000 08:02 1210831 /usr/local/jdk1.5.0_07/bin/java
40110000-40153000 rwxp 40110000 00:00 0 [heap]
40153000-40154000 ---p 40153000 00:00 0
40154000-40254000 rwxp 40154000 00:00 0
40254000-40255000 ---p 40254000 00:00 0
40255000-40355000 rwxp 40255000 00:00 0
40355000-40356000 ---p 40355000 00:00 0
40356000-40456000 rwxp 40356000 00:00 0
40456000-40457000 ---p 40456000 00:00 0
40457000-40557000 rwxp 40457000 00:00 0
40557000-40558000 ---p 40557000 00:00 0
40558000-40658000 rwxp 40558000 00:00 0
40658000-4065b000 ---p 40658000 00:00 0
4065b000-40759000 rwxp 4065b000 00:00 0
40759000-4075c000 ---p 40759000 00:00 0
4075c000-4085a000 rwxp 4075c000 00:00 0
4085a000-4085d000 ---p 4085a000 00:00 0
4085d000-4095b000 rwxp 4085d000 00:00 0
4095b000-4095e000 ---p 4095b000 00:00 0
4095e000-40a5c000 rwxp 4095e000 00:00 0
40a5c000-40a5f000 ---p 40a5c000 00:00 0
40a5f000-40b5d000 rwxp 40a5f000 00:00 0
40b5d000-40b60000 ---p 40b5d000 00:00 0
40b60000-40c5e000 rwxp 40b60000 00:00 0
40c5e000-40c61000 ---p 40c5e000 00:00 0
40c61000-40d5f000 rwxp 40c61000 00:00 0
40d5f000-40d60000 ---p 40d5f000 00:00 0
40d60000-40e60000 rwxp 40d60000 00:00 0
40e60000-40e63000 ---p 40e60000 00:00 0
40e63000-40f61000 rwxp 40e63000 00:00 0
39a7000000-39a701a000 r-xp 00000000 08:02 3790221 /lib64/ld-2.3.5.so
39a7119000-39a711a000 r-xp 00019000 08:02 3790221 /lib64/ld-2.3.5.so
39a711a000-39a711b000 rwxp 0001a000 08:02 3790221 /lib64/ld-2.3.5.so
39a7400000-39a752d000 r-xp 00000000 08:02 3790222 /lib64/libc-2.3.5.so
39a752d000-39a762c000 ---p 0012d000 08:02 3790222 /lib64/libc-2.3.5.so
39a762c000-39a7630000 r-xp 0012c000 08:02 3790222 /lib64/libc-2.3.5.so
39a7630000-39a7632000 rwxp 00130000 08:02 3790222 /lib64/libc-2.3.5.so
39a7632000-39a7636000 rwxp 39a7632000 00:00 0
39a7700000-39a7784000 r-xp 00000000 08:02 3790223 /lib64/libm-2.3.5.so
39a7784000-39a7884000 ---p 00084000 08:02 3790223 /lib64/libm-2.3.5.so
39a7884000-39a7885000 r-xp 00084000 08:02 3790223 /lib64/libm-2.3.5.so
39a7885000-39a7886000 rwxp 00085000 08:02 3790223 /lib64/libm-2.3.5.so
39a7900000-39a7902000 r-xp 00000000 08:02 3790224 /lib64/libdl-2.3.5.so
39a7902000-39a7a02000 ---p 00002000 08:02 3790224 /lib64/libdl-2.3.5.so
39a7a02000-39a7a03000 r-xp 00002000 08:02 3790224 /lib64/libdl-2.3.5.so
39a7a03000-39a7a04000 rwxp 00003000 08:02 3790224 /lib64/libdl-2.3.5.so
39a7d00000-39a7d0f000 r-xp 00000000 08:02 3790225 /lib64/libpthread-2.3.5.so
39a7d0f000-39a7e0f000 ---p 0000f000 08:02 3790225 /lib64/libpthread-2.3.5.so
39a7e0f000-39a7e10000 r-xp 0000f000 08:02 3790225 /lib64/libpthread-2.3.5.so
39a7e10000-39a7e11000 rwxp 00010000 08:02 3790225 /lib64/libpthread-2.3.5.so
39a7e11000-39a7e15000 rwxp 39a7e11000 00:00 0
39ad500000-39ad514000 r-xp 00000000 08:02 3790234 /lib64/libnsl-2.3.5.so
39ad514000-39ad613000 ---p 00014000 08:02 3790234 /lib64/libnsl-2.3.5.so
39ad613000-39ad614000 r-xp 00013000 08:02 3790234 /lib64/libnsl-2.3.5.so
39ad614000-39ad615000 rwxp 00014000 08:02 3790234 /lib64/libnsl-2.3.5.so
39ad615000-39ad617000 rwxp 39ad615000 00:00 0
2aaaaaaab000-2aaaaaaac000 rwxp 2aaaaaaab000 00:00 0
2aaaaaadf000-2aaaaaae2000 rwxp 2aaaaaadf000 00:00 0
2aaaaaae2000-2aaaab1a5000 r-xp 00000000 08:02 2614321 /usr/local/jdk1.5.0_07/jre/lib/amd64/server/libjvm.so
2aaaab1a5000-2aaaab2a4000 ---p 006c3000 08:02 2614321 /usr/local/jdk1.5.0_07/jre/lib/amd64/server/libjvm.so
2aaaab2a4000-2aaaab41e000 rwxp 006c2000 08:02 2614321 /usr/local/jdk1.5.0_07/jre/lib/amd64/server/libjvm.so
2aaaab41e000-2aaaab44e000 rwxp 2aaaab41e000 00:00 0
2aaaab44e000-2aaaab44f000 r-xp 2aaaab44e000 00:00 0
2aaaab44f000-2aaaab450000 rwxp 2aaaab44f000 00:00 0
2aaaab450000-2aaaab459000 r-xp 00000000 08:02 2614307 /usr/local/jdk1.5.0_07/jre/lib/amd64/native_threads/libhpi.so
2aaaab459000-2aaaab558000 ---p 00009000 08:02 2614307 /usr/local/jdk1.5.0_07/jre/lib/amd64/native_threads/libhpi.so
2aaaab558000-2aaaab55c000 rwxp 00008000 08:02 2614307 /usr/local/jdk1.5.0_07/jre/lib/amd64/native_threads/libhpi.so
2aaaab55c000-2aaaab564000 rwxs 00000000 08:02 2620695 /tmp/hsperfdata_jason/11582
2aaaab58f000-2aaaab599000 r-xp 00000000 08:02 3789980 /lib64/libnss_files-2.3.5.so
2aaaab599000-2aaaab699000 ---p 0000a000 08:02 3789980 /lib64/libnss_files-2.3.5.so
2aaaab699000-2aaaab69a000 r-xp 0000a000 08:02 3789980 /lib64/libnss_files-2.3.5.so
2aaaab69a000-2aaaab69b000 rwxp 0000b000 08:02 3789980 /lib64/libnss_files-2.3.5.so
2aaaab69b000-2aaaab6a8000 r-xp 00000000 08:02 2614299 /usr/local/jdk1.5.0_07/jre/lib/amd64/libverify.so
2aaaab6a8000-2aaaab7a7000 ---p 0000d000 08:02 2614299 /usr/local/jdk1.5.0_07/jre/lib/amd64/libverify.so
2aaaab7a7000-2aaaab7aa000 rwxp 0000c000 08:02 2614299 /usr/local/jdk1.5.0_07/jre/lib/amd64/libverify.so
2aaaab7aa000-2aaaab7cf000 r-xp 00000000 08:02 2614316 /usr/local/jdk1.5.0_07/jre/lib/amd64/libjava.so
2aaaab7cf000-2aaaab8ce000 ---p 00025000 08:02 2614316 /usr/local/jdk1.5.0_07/jre/lib/amd64/libjava.so
2aaaab8ce000-2aaaab8d4000 rwxp 00024000 08:02 2614316 /usr/local/jdk1.5.0_07/jre/lib/amd64/libjava.so
2aaaab8d4000-2aaaab8ea000 r-xp 00000000 08:02 2614305 /usr/local/jdk1.5.0_07/jre/lib/amd64/libzip.so
2aaaab8ea000-2aaaab9ec000 ---p 00016000 08:02 2614305 /usr/local/jdk1.5.0_07/jre/lib/amd64/libzip.so
2aaaab9ec000-2aaaab9ef000 rwxp 00018000 08:02 2614305 /usr/local/jdk1.5.0_07/jre/lib/amd64/libzip.so
2aaaab9ef000-2aaaadff3000 r-xs 00000000 08:02 2419439 /usr/local/jdk1.5.0_07/jre/lib/rt.jar
2aaaadff3000-2aaaae05c000 rwxp 2aaaadff3000 00:00 0
2aaaae05c000-2aaaae0e1000 r-xs 00000000 08:02 2419408 /usr/local/jdk1.5.0_07/jre/lib/jsse.jar
2aaaae0e1000-2aaaae0f6000 r-xs 00000000 08:02 2419436 /usr/local/jdk1.5.0_07/jre/lib/jce.jar
2aaaae0f6000-2aaaae963000 r-xs 00000000 08:02 2419414 /usr/local/jdk1.5.0_07/jre/lib/charsets.jar
2aaaae963000-2aaaaebd3000 rwxp 2aaaae963000 00:00 0
2aaaaebd3000-2aaab1963000 rwxp 2aaaaebd3000 00:00 0
2aaab1963000-2aaab196d000 rwxp 2aaab1963000 00:00 0
2aaab196d000-2aaab1a23000 rwxp 2aaab196d000 00:00 0
2aaab1a30000-2aaab2ef0000 rwxp 2aaab1a30000 00:00 0
2aaab2ef0000-2aaab6c30000 rwxp 2aaab2ef0000 00:00 0
2aaab6c30000-2aaabbde0000 rwxp 2aaab6c30000 00:00 0
2aaabbde0000-2aaae16e0000 rwxp 2aaabbde0000 00:00 0
2aaae16e0000-2aaae3fb0000 rwxp 2aaae16e0000 00:00 0
2aaae3fb0000-2aaaf6c30000 rwxp 2aaae3fb0000 00:00 0
2aaaf6c30000-2aaaf6c3b000 rwxp 2aaaf6c30000 00:00 0
2aaaf6c3b000-2aaaf6c59000 rwxp 2aaaf6c3b000 00:00 0
2aaaf6c59000-2aaaf6c82000 rwxp 2aaaf6c59000 00:00 0
2aaaf6c82000-2aaaf6dae000 rwxp 2aaaf6c82000 00:00 0
2aaaf6dae000-2aaaf6dc3000 rwxp 2aaaf6dae000 00:00 0
2aaaf6dc3000-2aaaf6e59000 rwxp 2aaaf6dc3000 00:00 0
2aaaf6e59000-2aaaf6e83000 rwxp 2aaaf6e59000 00:00 0
2aaaf6e83000-2aaaf6fb0000 rwxp 2aaaf6e83000 00:00 0
2aaaf6fb0000-2aaaf6fbb000 rwxp 2aaaf6fb0000 00:00 0
2aaaf6fbb000-2aaaf6fd9000 rwxp 2aaaf6fbb000 00:00 0
2aaaf7000000-2aaaf7100000 rwxp 2aaaf7000000 00:00 0
2aaaf7100000-2aaaf7128000 rwxp 2aaaf7100000 00:00 0
2aaaf7128000-2aaafa077000 r-xp 00000000 08:02 68397 /usr/lib/locale/locale-archive
2aaafa077000-2aaafa13b000 r-xs 00000000 08:02 2615323 /usr/local/jdk1.5.0_07/jre/lib/ext/localedata.jar
2aaafa13b000-2aaafa13d000 r-xs 00000000 08:02 2614283 /usr/local/jdk1.5.0_07/jre/lib/ext/dnsns.jar
2aaafa13d000-2aaafa164000 r-xs 00000000 08:02 2614285 /usr/local/jdk1.5.0_07/jre/lib/ext/sunjce_provider.jar
2aaafa164000-2aaafa182000 r-xs 00000000 08:07 1573231 /home/jason/programs/idea-4267/lib/idea_rt.jar
2aaafa200000-2aaafa221000 rwxp 2aaafa200000 00:00 0
2aaafa221000-2aaafa300000 ---p 2aaafa221000 00:00 0
2aaafa300000-2aaafa315000 r-xp 00000000 08:02 2614295 /usr/local/jdk1.5.0_07/jre/lib/amd64/libnet.so
2aaafa315000-2aaafa414000 ---p 00015000 08:02 2614295 /usr/local/jdk1.5.0_07/jre/lib/amd64/libnet.so
2aaafa414000-2aaafa417000 rwxp 00014000 08:02 2614295 /usr/local/jdk1.5.0_07/jre/lib/amd64/libnet.so
2aaafa417000-2aaafa418000 r-xp 00000000 08:07 1540907 /home/jason/IdeaProjects/JNI/clib/libjni_gn_gsl_gamma.so
2aaafa418000-2aaafa517000 ---p 00001000 08:07 1540907 /home/jason/IdeaProjects/JNI/clib/libjni_gn_gsl_gamma.so
2aaafa517000-2aaafa518000 rwxp 00000000 08:07 1540907 /home/jason/IdeaProjects/JNI/clib/libjni_gn_gsl_gamma.so
2aaafa518000-2aaafa6ad000 r-xp 00000000 08:02 2777187 /usr/local/lib/libgsl.so.0.9.0
2aaafa6ad000-2aaafa7ad000 ---p 00195000 08:02 2777187 /usr/local/lib/libgsl.so.0.9.0
2aaafa7ad000-2aaafa7c0000 rwxp 00195000 08:02 2777187 /usr/local/lib/libgsl.so.0.9.0
7fffff6c8000-7fffff6cb000 ---p 7fffff6c8000 00:00 0
7fffff6cb000-7fffff8c8000 rwxp 7fffff6cb000 00:00 0 [stack]
ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0 [vdso]

VM Arguments:
jvm_args: -Djava.library.path=/home/jason/IdeaProjects/JNI/clib:/usr/local/lib/gsl -Xcheck:jni -Didea.launcher.port=7532 -Didea.launcher.bin.path=/home/jason/programs/idea-4267/bin -Dfile.encoding=UTF-8
java_command: com.intellij.rt.execution.application.AppMain gsl.Test
Launcher Type: SUN_STANDARD

Environment Variables:
CLASSPATH=../lib/idea.jar:../lib/openapi.jar:../lib/jdom.jar:../lib/log4j.jar:../lib/extensions.jar:/usr/local/java/lib/tools.jar:
PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
LD_LIBRARY_PATH=/usr/local/jdk1.5.0_07/jre/lib/amd64/server:/usr/local/jdk1.5.0_07/jre/lib/amd64:/usr/local/jdk1.5.0_07/jre/../lib/amd64:.:
SHELL=/bin/bash
DISPLAY=localhost:12.0

Signal Handlers:
SIGSEGV: [libjvm.so+0x64ed50], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGBUS: [libjvm.so+0x64ed50], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGFPE: [libjvm.so+0x5579b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGPIPE: [libjvm.so+0x5579b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGILL: [libjvm.so+0x5579b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x559860], sa_mask[0]=0x00000004, sa_flags=0x14000004
SIGHUP: [libjvm.so+0x559330], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGINT: [libjvm.so+0x559330], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGQUIT: [libjvm.so+0x559330], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004
SIGTERM: [libjvm.so+0x559330], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004


--------------- S Y S T E M ---------------

OS:Fedora Core release 4 (Stentz)

uname:Linux 2.6.15-1.1833_FC4smp #1 SMP Wed Mar 1 23:55:52 EST 2006 x86_64
libc:glibc 2.3.5 NPTL 2.3.5
rlimit: STACK 10240k, CORE 0k, NPROC 65536, NOFILE 1024, AS infinity
load average:0.00 0.00 0.00

CPU:total 4 amd64 3dnow ht

Memory: 4k page, physical 8024916k(56440k free), swap 203647920k(203647800k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (1.5.0_07-b03) for linux-amd64, built on May 3 2006 00:29:54 by java_re with gcc 3.2.2 (SuSE Linux)
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic