<div dir="ltr"><div>AvoidMessageBoxHook does "*Return = 1" while CRTReportHook sets it to zero.  Setting it to one is what gives us the stack trace, but it may also trigger the just in time debugger.  I'm really not sure what controls the system crash dialog, unfortunately.  Does someone else know more?</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 25, 2013 at 2:10 PM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">> I complicated things by adding yet another env var called<br>
> LLVM_ENABLE_CRT_REPORT, which tries to suppress the "abort, retry, ignore"<br>
> dialog raised by assertion failures when using the Visual CRT.  I think both<br>
> of these vars are basically trying to achieve the same behavior of<br>
> suppressing dialogs and slow system forensics gathering, so they could be<br>
> merged.<br>
><br>
> Currently, LLVM_DISABLE_CRASH_REPORTING turns off stack dumping on Windows<br>
> but not on Mac.  This seems unintentional to me, and it means we don't get<br>
> crash stack traces from 'check-clang' on Windows.  It'd be nice to get those<br>
> without a dialog.<br>
<br>
</div>What about the attached patch?<br>
<br>
It merges  LLVM_ENABLE_CRT_REPORT, gets a stack trace printed, "not<br>
--crash" works and at least on my<br>
system I don't get any dialog window.<br>
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br></div>