<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">I was pointed at this mailing list to try and figure out what seems to be a pretty bad launchd bug.</div>
<div class=""><br class="">
</div>
I recently added an opentsdb formula to homebrew, including a launchd plist. However when I load the plist with
<span style="color: rgb(35, 227, 19); font-family: Menlo; background-color: rgb(50, 51, 51); font-variant-ligatures: no-common-ligatures;" class="">
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.opentsdb.plist</span>&nbsp;my system hangs, then kernel panics, then on reboot it just hangs and doesn’t ever finish booting, requiring me to boot into single user mode, fsck the filesystem, mount the fs as read/write
 and then delete the plist.
<div class=""><br class="">
</div>
<div class="">This is 100% reproducible on my MacBook Pro (Retina, 15-inch, Mid 2014) running OS X 10.11.5&nbsp;(15F34).</div>
<div class=""><br class="">
</div>
<div class="">Steps to reproduce (<b class="">warning</b>, this will almost certainly cause a kernel panic):</div>
<div class=""><span style="text-align: center;" class=""><br class="">
</span></div>
<div class=""><span style="text-align: center;" class="">/usr/bin/ruby -e &quot;$(curl -fsSL
<a href="https://raw.githubusercontent.com/Homebrew/install/master/install" class="">
https://raw.githubusercontent.com/Homebrew/install/master/install</a>)&quot;</span></div>
<div class="">brew install opentsdb</div>
<div class="">ln -s `brew --prefix hbase`/homebrew.mxcl.hbase.plist ~/Library/LaunchAgents/</div>
<div class="">ln -s `brew --prefix opentsdb`/homebrew.mxcl.opentsdb.plist ~/Library/LaunchAgents/</div>
<div class="">launchctl load ~/Library/LaunchAgents/homebrew.mxcl.hbase.plist</div>
<div class="">sleep 15 &amp;&amp; launchctl load ~/Library/LaunchAgents/homebrew.mxcl.opentsdb.plist</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Note that running hbase via launchd and starting opentsdb manually does not cause a kernel panic (or any other problems that I’ve noticed).</div>
<div class=""><br class="">
</div>
<div class="">Does anyone have any ideas about why this is happening?</div>
</body>
</html>