<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 6, 2020 at 6:44 AM Gabriele Svelto <<a href="mailto:gsvelto@mozilla.com">gsvelto@mozilla.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 05/05/20 23:38, Nicholas Nethercote wrote:<br>
> As for why that check is there... do opt builds produce any stack traces in<br>
> tests? Normal assertions aren't enabled on opt builds, but<br>
> diagnostic/release assertions are. I can't remember off the top of my head<br>
> if they produce stacks traces in opt builds, and likewise with crashes.<br>
<br>
Stack traces are printed out only on debug builds:<br>
<br>
<a href="https://searchfox.org/mozilla-central/rev/7908ce29657cfd623993046bd8e38664e1c0b28e/mfbt/Assertions.h#451-454" rel="noreferrer" target="_blank">https://searchfox.org/mozilla-central/rev/7908ce29657cfd623993046bd8e38664e1c0b28e/mfbt/Assertions.h#451-454</a><br>
<br>
So optimized debug builds will print assertions, but regular optimized<br>
builds we have on automation will not.<br></blockquote><div><br></div><div>I see. What about crashes during regular optimized builds? I'd hope those print stacks.</div><div><br></div>Markus</div></div>