6 messages in net.java.dev.jna.usersRe: [jna-users] Re: JNA (fork and exec)
FromSent OnAttachments
Timothy WallAug 27, 2007 12:59 pm 
Wayne MeissnerAug 27, 2007 5:28 pm 
Jagadeeswaran RajendiranAug 28, 2007 4:56 pm 
Timothy WallAug 28, 2007 6:51 pm 
Jagadeeswaran RajendiranAug 29, 2007 5:49 pm 
Timothy WallAug 29, 2007 8:48 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] Re: JNA (fork and exec)Actions...
From:Timothy Wall (twal@dev.java.net)
Date:Aug 29, 2007 8:48:29 pm
List:net.java.dev.jna.users

On Aug 29, 2007, at 8:49 PM, Jagadeeswaran Rajendiran wrote:

Do you see *any* strace activity from the java process? I haven't done this for a while.

Here's the only *strace* activity that I see (related to process mgmt...) which happens right at the launch of the application. Every time I try to run something from the GUI, nothing else happens (acc. to strace)...

You might try some strace option variants; ltrace might also prove useful.

Do a "kill -3" on the child process where execv fails. What does the thread dump show?

CommandThread_..._6 is the newly reused thread...(you see two commandthreads coz I use a 2-thread threadpool and the threadpool creates new threads until the limit is reached and then starts to reuse the threads whenever possible)...and its sitting the appropriate function-call "waitForCompletion"...

Why don't you isolate the fork/exec into a very simplified fixture, so that the noise of the rest of your app doesn't cloud your investigation.