9 messages in net.java.dev.jna.usersRe: [jna-users] jna segfaults on wind...
FromSent OnAttachments
Nick EvgenievJan 31, 2008 12:03 pm 
Timothy WallJan 31, 2008 1:18 pm 
Nick EvgenievFeb 1, 2008 6:29 am 
Timothy WallFeb 1, 2008 6:34 am 
Nick EvgenievFeb 1, 2008 7:07 am 
Timothy WallFeb 1, 2008 7:47 am 
Nick EvgenievFeb 4, 2008 8:14 am 
Timothy WallFeb 4, 2008 8:23 am 
Nick EvgenievFeb 4, 2008 8:37 am 
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] jna segfaults on windows 2003 serverActions...
From:Timothy Wall (twal@dev.java.net)
Date:Feb 1, 2008 6:34:47 am
List:net.java.dev.jna.users

What version JNA are you using?

Callbacks are the only thing that use dynamically allocated executable memory, and they have been fixed on windows to avoid problems with DEP. If there's still a problem with DEP, you should file a bug report for it.

On Feb 1, 2008, at 9:29 AM, Nick Evgeniev wrote:

Hi,

On Feb 1, 2008 12:19 AM, Timothy Wall <twal@dev.java.net> wrote:

There's no reason why windows 2003 32-bit x86 shouldn't work. Can you run the JNA testsuite on it?

Providing the dump file generated by the VM would be a start. Also include the C API you are calling, and the JNA mapping you are using.

Analyzing jvm crash report I found that the source of crash was jump to data segment in jna...invokeInt() call. The difference between platforms is that on windows 2003 execution prevention is turned on by default for all programs unlike vista & xp.

Once I turned off execution prevention off in 2003 everything is working just fine. thank you.