[lldb-dev] Java ::posix_spawnp permission denied

Yin Ma yin at affinic.com
Fri Nov 22 16:46:36 PST 2013


Thank you for so many replies. Actually, this problem is from one of 
our users. I am asking him more detail about this error.
What I know so far is he compiled .java to .exe by a certain compiler
and debugged .exe by lldb. It seems there is no limitation from lldb.
I will see what I can do for him. Really appreciate for your comments.


-----Original Message-----
From: jingham at apple.com [mailto:jingham at apple.com] 
Sent: Friday, November 22, 2013 4:30 PM
To: Yin Ma
Cc: lldb-dev
Subject: Re: [lldb-dev] Java ::posix_spawnp permission denied

lldb doesn't know anything about launching Java applications.  At present lldb knows about ordinary Unix executables, in which case we pass the binary to posix_spawn, or a .app bundle, in which case we look up the Executable key in the bundle's Info.plist and pass that to posix_spawn.  I also don't know anything about how Java applications are packaged on OS X.  But it would not at all surprise me if it isn't straight-forward, in which case you will have to figure out what actually gets launched when running your Java application and get lldb to run that by hand somehow.


On Nov 22, 2013, at 1:37 PM, Yin Ma <yin at affinic.com> wrote:

> Hi,
> When using lldb with Maverick to debug a java application, a permission deny error on posix_spawnp.
> Error: error: ::posix_spawnp( pid => 88852, path = … err = permission denied.
> Does lldb has any limitation on this? What’s the possible way to fix this?
> Thanks,
> Yin
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

More information about the lldb-dev mailing list