<div dir="ltr">Hi Greg,<br><br>That was exactly it, removing those lines makes the kernel panic go away.<br><br>Thanks for the help!<br><br>Andrew<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 8, 2014 at 12:25 AM, Greg Clayton <span dir="ltr"><<a href="mailto:gclayton@apple.com" target="_blank">gclayton@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Try modifying the function in Host.mm:<br>
<br>
static short GetPosixspawnFlags (ProcessLaunchInfo &launch_info)<br>
<br>
by commenting out the following lines:<br>
<br>
#ifdef POSIX_SPAWN_CLOEXEC_DEFAULT<br>
// Close all files exception those with file actions if this is supported.<br>
flags |= POSIX_SPAWN_CLOEXEC_DEFAULT;<br>
#endif<br>
<br>
<br>
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.<br>
<br>
Greg<br>
<div><div class="h5"><br>
On Jan 7, 2014, at 4:14 AM, Andrew MacPherson <<a href="mailto:andrew.macp@gmail.com">andrew.macp@gmail.com</a>> wrote:<br>
<br>
> Hello,<br>
><br>
> 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.<br>
><br>
> 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:<br>
><br>
> ./configure --enable-optimized --enable-assertions --enable-cxx11 --enable-libcpp<br>
><br>
> The lldb binary can be run but crashes when trying to launch a process.<br>
><br>
> lldb /usr/bin/python<br>
> (lldb) r<br>
> <kernel panic><br>
><br>
> Any ideas are welcome.<br>
><br>
> Thanks,<br>
> Andrew<br>
</div></div>> _______________________________________________<br>
> lldb-dev mailing list<br>
> <a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
<br>
</blockquote></div><br></div>