<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:st="" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place" /><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]--><style>
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;}
p
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";}
code
{font-family:"Courier New";}
pre
{margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:824856187;
mso-list-template-ids:218111174;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:36.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
-->
</style>
</head>
<body lang="NL" link="blue" vlink="blue">
<div class="Section1">
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">Thanks Todd for your hints.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">I did’t compile stuff myself, all tools came from Apple’s Command_Line_Tools_OS_X_10.11_for_Xcode_7.2.dmg which I installed
on a “fresh” El Capitan VM. I have requested more info about where this image came from, but the guys are on holiday.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">Here’s a bit of the install history:<o:p></o:p></span></font></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><code><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">sudo installer -store -pkg "Command Line Tools (OS X 10.11).pkg" -target /</span></font></code><span lang="EN-GB">
<o:p></o:p></span></p>
<p><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;
font-family:Arial;color:navy">Installer output:</span></font><font color="navy"><span lang="EN-GB" style="color:navy"><o:p></o:p></span></font></p>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">installer: Note: running installer as an admin user (instead of root) gives bett<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">er Mac App Store fidelity<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">installer: Warning: Command Line Tools (OS X 10.11).pkg was signed with a certif<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">icate that is not valid for store submission.<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">installer: Installation Check: Passed<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">installer: Volume Check: Passed<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">installer: Bundle com.apple.LLDB.framework will be installed to /Library/Develop<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">er/CommandLineTools/Library/PrivateFrameworks/LLDB.framework<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">installer: Bundle com.MyCompany.InstallerPlugin.TestPackage will be installed to<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt"> /System/Library/Frameworks/Python.framework/Examples/PyObjC/2.5.1/InstallerPlug<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">inSample/InstallerPluginsTestPackage.pkg<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">installer: Starting install<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">installer: Install 0.0% complete<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">installer: Install 5.1% complete<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">installer: Install 11.0% complete<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">installer: Install 15.1% complete<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">installer: Install 21.0% complete<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">installer: Install 25.1% complete<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">installer: Install 30.4% complete<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">installer: Install 35.1% complete<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">installer: Install 42.2% complete<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">installer: Install 86.9% complete<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">installer: Install 95.2% complete<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">installer: Install 100.0% complete<o:p></o:p></span></font></pre>
<pre><font size="2" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt">installer: Finished install<o:p></o:p></span></font></pre>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">Is this complete?<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">I rebooted the VM instance since my previous post and I modified file a.c modified as follows…<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">#include "stdio.h"<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">int main ()<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">{<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy"> printf("hello world\n");<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">}<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">…and this nicely outputs “hello world”. Then…<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">tst$ file a.out<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">a.out: Mach-O 64-bit executable x86_64
<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">tst$<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">tst$ lldb a.out<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">(lldb) target create "a.out"<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">Current executable set to 'a.out' (x86_64).<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">(lldb) run<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">error: process exited with status -1 (unable to attach)<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">(lldb) run<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">error: process exited with status -1 (unable to attach)<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy"> (lldb) run<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">error: process exited with status -1 (unable to attach)<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy"> (lldb)<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"> <o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">Running ps –ef from another session:<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">tst2$ ps -ef|grep lldb<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy"> 502 3015 908 0 10:24AM ttys000 0:00.22 /Library/Developer/CommandLineT<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">ools/usr/bin/lldb a.out<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">tst2$ ps -ef|grep 3015<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy"> 502 3015 908 0 10:24AM ttys000 0:00.22 /Library/Developer/CommandLineT<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">ools/usr/bin/lldb a.out<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy"> 502 3165 3015 0 10:25AM ttys000 0:00.00 /Users/tst/a.out<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy"> 502 3705 3015 0 10:27AM ttys000 0:00.00 /Users/tst/a.out<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy"> 502 3724 3015 0 10:27AM ttys000 0:00.00 /Users/tst/a.out<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">tst2$<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">tst2$ ps -ef|grep debugserver<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New";color:navy">tst2$<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">There doesn’t seem to be a debugserver. Am I missing that?<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">Exiting lldb:<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">(lldb) exit<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">tst$<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">New processes snapshot:<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">tst2$ ps -ef|grep 3015<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">tst2$<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">tst2$ ps -ef|grep a.out<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy"> 502 3165 1 0 10:25AM ttys000 0:00.00 /Users/tst/a.out<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy"> 502 3705 1 0 10:27AM ttys000 0:00.00 /Users/tst/a.out<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy"> 502 3724 1 0 10:27AM ttys000 0:00.00 /Users/tst/a.out<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">tst2$<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">Sudo kill -9 has no effect:<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">tst2$ sudo kill -9 2173<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">Password:<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">tst2$<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">tst2$ ps -ef|grep a.out<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy"> 502 3165 1 0 10:25AM ttys000 0:00.00 /Users/tst/a.out<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy"> 502 3705 1 0 10:27AM ttys000 0:00.00 /Users/tst/a.out<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy"> 502 3724 1 0 10:27AM ttys000 0:00.00 /Users/tst/a.out<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">tst2$<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span lang="EN-GB" style="font-size:12.0pt">> To have lldb use the official Xcode version of lldb's debugserver (assuming you have Xcode installed and aren't trying to use just the command line tools),
you should be able to build with a command line like this:<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span lang="EN-GB" style="font-size:12.0pt"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span lang="EN-GB" style="font-size:12.0pt">xcodebuild -scheme desktop -configuration Debug DEBUGSERVER_USE_FROM_SYSTEM=1 <<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">tst$ xcodebuild<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer dire<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">ctory '/Library/Developer/CommandLineTools' is a command line tools instance<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">tst $<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">tst$ xcodebuild -scheme desktop -configuration Debug DEBUGSER<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">VER_USE_FROM_SYSTEM=1<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer dire<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">ctory '/Library/Developer/CommandLineTools' is a command line tools instance<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">tst$<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">>
</span></font><span lang="EN-GB">Or from within Xcode itself, locally adjust your Xcode project to set the "DEBUGSERVER_USE_FROM_SYSTEM" user variable to 1. <<o:p></o:p></span></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">Not sure what “from within Xcode itself” means (GUI?) but I tried this:<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">tst$ export DEBUGSERVER_USE_FROM_SYSTEM=1<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">tst$ set|grep DEBUG<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">DEBUGSERVER_USE_FROM_SYSTEM=1<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">This doesn’t seem to help.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">>
</span></font><span lang="EN-GB">I'm not sure if you already did this, but you may need to turn on your dev tools security via:<o:p></o:p></span></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span lang="EN-GB" style="font-size:12.0pt">sudo DevToolSecurity –enable <<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">tst$ sudo find / -name DevToolSecurity<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">find: /dev/fd/3: Not a directory<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">find: /dev/fd/4: Not a directory<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">find: /Volumes/VMware Shared Folders: Input/output error<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Courier New"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:navy">tst$<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">I have a feeling that my install is not complete. What can I do from within the ssh session? As I’m remote (ssh only) I’d
have to ask the local admin to tweak settings using the Xcode gui, if needed. What would you suggest?<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">Thanks,<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy">Andre<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span lang="EN-GB" style="font-size:10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">
<hr size="2" width="100%" align="center" tabindex="-1">
</span></font></div>
<p class="MsoNormal"><b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma;font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma"> Todd Fiala
[mailto:todd.fiala@gmail.com] <br>
<b><span style="font-weight:bold">Sent:</span></b> maandag 28 december 2015 19:19<br>
<b><span style="font-weight:bold">To:</span></b> Andre Vergison<br>
<b><span style="font-weight:bold">Cc:</span></b> lldb-dev@lists.llvm.org<br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [lldb-dev] lldb 340.4.119 unable to attach (<st1:place w:st="on">El Capitan</st1:place>)</span></font><span lang="EN-US"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"><o:p> </o:p></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">Hi Andre,<o:p></o:p></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"><o:p> </o:p></span></font></p>
</div>
<div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">On Sat, Dec 26, 2015 at 3:53 AM, Andre Vergison via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a>> wrote:<o:p></o:p></span></font></p>
<div link="blue" vlink="purple">
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New"">Hi,</span></font><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New"">I tried Jason Molenda’s test code on El Capitan, lldb-340.4.119 (Jason Molenda via lldb-dev
| 3 Oct 02:59 2015).</span></font><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New"">I’m connected to a remote VM using ssh.</span></font><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New""> </span></font><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New"">tst$ echo 'int main () { }' > /tmp/a.c</span></font><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New"">tst$ xcrun clang /tmp/a.c -o /tmp/a.out</span></font><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New"">tst$ xcrun lldb /tmp/a.out</span></font><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New"">(lldb) target create "/tmp/a.out"</span></font><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New"">Current executable set to '/tmp/a.out' (x86_64).</span></font><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New"">(lldb) r</span></font><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New"">error: process exited with status -1 (unable to attach)</span></font><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New"">(lldb) run</span></font><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New"">error: process exited with status -1 (unable to attach)</span></font><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New"">(lldb) quit</span></font><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New"">tst$ ps -ef|grep a.out</span></font><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New""> 502 33174 1 0 12:20PM ttys000 0:00.00 /tmp/a.out</span></font><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:"Courier New""> 502 33187 1 0 12:20PM ttys000 0:00.00 /tmp/a.out</span></font><o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"><o:p> </o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">Just shooting in the dark, but perhaps the a.out is either not in a state where it can be touched (yet), could be zombified or something. Have you tried 'sudo kill
-9' on them? Also, if you look for a debugserver or lldb in the process list (either of which could be a parent of it), are they hanging around? If so, killing them might allow the a.out processes to die.<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"><o:p> </o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">Are you using an lldb that you built? If so, the underlying attach problem could be due to some kind signing/permissions with debugserver. To have lldb use the official
Xcode version of lldb's debugserver (assuming you have Xcode installed and aren't trying to use just the command line tools), you should be able to build with a command line like this:<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"><o:p> </o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">xcodebuild -scheme desktop -configuration Debug DEBUGSERVER_USE_FROM_SYSTEM=1<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"> <o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">Or from within Xcode itself, locally adjust your Xcode project to set the "DEBUGSERVER_USE_FROM_SYSTEM" user variable to 1.<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"><o:p> </o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">I'm not sure if you already did this, but you may need to turn on your dev tools security via:<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">sudo DevToolSecurity --enable<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"><o:p> </o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">Let us know if that gets you any further.<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"><o:p> </o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">Thanks!<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"><o:p> </o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt">-Todd<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"><o:p> </o:p></span></font></p>
</div>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"><o:p> </o:p></span></font></p>
</div>
</div>
</div>
</body>
</html>