I am attempting to utilize some recent work of Andrea for interacting with the gdal/ogr libraries via bridj. Unfortunately I am having little success with it on OSX. As far as I can tell the library is loaded fine but the first call to it results in:
My question is how i can get some more useful information. I have tried re-running jnearator with verbose settings but haven't been able to yield anything useful out of that. I have also tried using gdb to get a backtrace of where the segfault occurs, and that yields the following:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x4c6498dc
0x00384f3f in JVM_Lseek ()
(gdb) where
#0 0x00384f3f in JVM_Lseek ()
#1 0x0038f7e8 in JVM_Lseek ()
#2 0x003a78f0 in JVM_MonitorWait ()
#3 0x003a786d in JVM_MonitorWait ()
#4 0x0ff8adca in Java_org_bridj_JNI_getLibrarySymbols ()
Not sure if that is terribly useful either.
I have read some reports of similar issues running under 64 bit. So i tried to recompile the ogr library for 32 bit and started the jvm with -d32 but it yields the same result.
Anyways, I guess i am looking for some general pointers for some strategies that i might be able to employ to figure out where the issues might lie.
Thanks!
-Justin