[lldb-dev] LLDB kernel panic on OSX

Greg Clayton gclayton at apple.com
Wed Jan 8 10:08:44 PST 2014


Try top of tree with no modifications now:

% svn commit
Sending        source/Host/macosx/Host.mm
Transmitting file data .
Committed revision 198776.

I added dynamic OS version checking and we don't use the flag for 10.7 and earlier.

Greg


On Jan 8, 2014, at 12:49 AM, Andrew MacPherson <andrew.macp at gmail.com> wrote:

> Hi Greg,
> 
> That was exactly it, removing those lines makes the kernel panic go away.
> 
> Thanks for the help!
> 
> Andrew
> 
> 
> On Wed, Jan 8, 2014 at 12:25 AM, Greg Clayton <gclayton at apple.com> wrote:
> Try modifying the function in Host.mm:
> 
> static short GetPosixspawnFlags (ProcessLaunchInfo &launch_info)
> 
> by commenting out the following lines:
> 
> #ifdef POSIX_SPAWN_CLOEXEC_DEFAULT
>     // Close all files exception those with file actions if this is supported.
>     flags |= POSIX_SPAWN_CLOEXEC_DEFAULT;
> #endif
> 
> 
> Using this flag used to cause kernel panics. Maybe it still does on 10.7? Let me know if this fixes things and if it does, then I will place a dynamic MacOSX version check for 10.8 and above.
> 
> Greg
> 
> On Jan 7, 2014, at 4:14 AM, Andrew MacPherson <andrew.macp at gmail.com> wrote:
> 
> > Hello,
> >
> > I've tried building the latest LLDB + LLVM from trunk on two different OSX machines running Lion (10.7.5) and the resulting lldb binary seems to cause a kernel panic when run. I'm not an OSX developer normally so it's quite possible that I'm doing something wrong and I'm wondering if anyone has any pointers.
> >
> > I have tried with both clang 3.2 (the default for Xcode 4.6) as well as clang 3.3 from MacPorts with the following configure line:
> >
> > ./configure --enable-optimized --enable-assertions --enable-cxx11 --enable-libcpp
> >
> > The lldb binary can be run but crashes when trying to launch a process.
> >
> > lldb /usr/bin/python
> > (lldb) r
> > <kernel panic>
> >
> > Any ideas are welcome.
> >
> > Thanks,
> > Andrew
> > _______________________________________________
> > 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