33 messages in net.java.dev.jna.usersRe: [jna-users] Linux SIGSEGV under J...
FromSent OnAttachments
Mark ClickJun 4, 2009 4:59 pm.txt
Timothy WallJun 4, 2009 6:47 pm 
Mark ClickJun 4, 2009 8:50 pm 
Timothy WallJun 5, 2009 4:12 am 
Mark ClickJun 5, 2009 11:10 am 
Timothy WallJun 5, 2009 11:30 am 
Mark ClickJun 5, 2009 1:27 pm 
Timothy WallJun 5, 2009 1:41 pm 
Mark ClickJun 5, 2009 1:54 pm 
Timothy WallJun 5, 2009 3:21 pm 
Mark ClickJun 5, 2009 3:24 pm 
Timothy WallJun 5, 2009 3:28 pm 
Mark ClickJun 5, 2009 3:45 pm 
Mark ClickJun 5, 2009 4:36 pm 
Timothy WallJun 5, 2009 5:02 pm 
Mark ClickJun 7, 2009 3:55 pm 
Timothy WallJun 7, 2009 5:30 pm 
Mark ClickJun 8, 2009 9:22 am 
Mark ClickJun 8, 2009 1:46 pm 
Timothy WallJun 8, 2009 2:13 pm 
Timothy WallJun 8, 2009 2:16 pm 
Mark ClickJun 8, 2009 3:07 pm 
Mark ClickJun 8, 2009 3:08 pm 
Timothy WallJun 8, 2009 3:33 pm 
Timothy WallJun 9, 2009 5:18 am 
Timothy WallJun 9, 2009 6:13 am 
Timothy WallJun 9, 2009 7:08 am 
Mark ClickJun 9, 2009 9:54 am 
Mark ClickJun 9, 2009 10:04 am 
Mark ClickJun 9, 2009 10:07 am 
Mark ClickJun 9, 2009 10:09 am 
Mark ClickJun 9, 2009 2:05 pm 
Mark ClickJun 10, 2009 1:46 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] Linux SIGSEGV under JNA but not C?Actions...
From:Mark Click (mark@gmail.com)
Date:Jun 9, 2009 2:05:03 pm
List:net.java.dev.jna.users

On Tue, Jun 9, 2009 at 10:07 AM, Mark Click <mark@gmail.com> wrote:

On Tue, Jun 9, 2009 at 6:13 AM, Timothy Wall <twal@dev.java.net>wrote:

On Jun 8, 2009, at 6:09 PM, Mark Click wrote:

On Mon, Jun 8, 2009 at 2:17 PM, Timothy Wall <twal@dev.java.net> wrote: Also make sure you use the same Java test program to test both scenarios, so that you've ensured that the Java environment is otherwise identical.

Examine libjnidispatch.so and your 3rd-party shared library using ldd; see if there are any dependent library conflicts (e.g. libc.so).

Here's the ldd output for the libraries, http://pastebin.com/m3c041b92

It looks like everything is normal/correct?

What happens when your JNI code dynamically loads your 3rd-party library, e.g.

void * handle = dlopen("/path/to/lib3rdparty.so", RTLD_LAZY); void (*func)(wchar_t*) = (void (*)(wchar_t*))dlsym("entryPoint"); (*func)(NULL); dlclose(handle);

Everything works still, just as the JNI without it.

Does JNA pin memory allocated by native code as JNI does? There's no way memory used for the deserialization could be getting garbage collected before use? Sorry, grasping at straws at this point.

- Mark