<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Aug 23, 2012, at 7:44 PM, Gary Byers wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Matt opened a ticket for the problem that Wade reported a couple of weeks ago (and that he'd been seeing); see <<a href="http://trac.clozure.com/ccl/ticket/1005">http://trac.clozure.com/ccl/ticket/1005</a>>.<br>Matt was able to reproduce the problem and investigated; the short version is<br>that a data structure that CCL allocates whenever a thread is first made known<br>to lisp has to be in the low 32 bits of the address space and the way we'd<br>historically tried to do that (calling #_malloc repeatedly until it returned<br>a 32-bit pointer) could take an extremely long time.  I don't think that we'd<br>ever seen or heard of it doing so prior to 10.8, but I think that that was just<br>due to luck (and good clean living ...).  It's possible that 10.8 tries to do<br>some sort of address space randomization (this is sometimes seen as a way of<br>minimizing the damage after malicious could forces a buffer overflow) that previous<br>OSX versions didn't,  and that may explain why the problem seems to have just<br>surfaced with 10.8.  (It didn't: the "call #_malloc and cross your fingers"<br>strategy has never been a viable one.)<br><br>This was fixed in r15437 (but I was nervous about some thread-safety issues<br>and tried to deal with them better in r15439.)  Both of those changes were<br>just made to the trunk; they haven't yet been propagated to the 1.8 tree but<br>likely will fairly soon.<br><br>This particular problem (trying to force a pointer to be allocated in<br>the low 32 bits of the address space and doing so in bounded time)<br>obviously only affects the 64-bit version of CCL.</span></blockquote><br></div><div><br></div><div>Yikes, that does not explain our problem then. Did you see my other email with the test program? It appears to be able to crash CCL 64 and 32 bit versions on Mountain Lion. </div><div><br></div><div>Alex</div><div><br></div><div><br></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Prof. Alexander Repenning</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><br class="khtml-block-placeholder"></p><p style="margin: 0.0px 0.0px 0.0px 0.0px">University of Colorado</p><p style="margin: 0.0px 0.0px 0.0px 0.0px">Computer Science Department</p><p style="margin: 0.0px 0.0px 0.0px 0.0px">Boulder, CO 80309-430</p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><br class="khtml-block-placeholder"></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">vCard: <a href="http://www.cs.colorado.edu/~ralex/AlexanderRepenning.vcf">http://www.cs.colorado.edu/~ralex/AlexanderRepenning.vcf</a></font></p><br class="Apple-interchange-newline"></span></span></span></span>
</div>
<br></body></html>