<div dir="ltr">I've filed <a href="https://code.google.com/p/address-sanitizer/issues/detail?id=224">https://code.google.com/p/address-sanitizer/issues/detail?id=224</a> for the record.<div><br></div><div>--kcc </div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 18, 2013 at 12:45 PM, Kostya Serebryany <span dir="ltr"><<a href="mailto:kcc@google.com" target="_blank">kcc@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Wed, Sep 18, 2013 at 12:30 PM, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@google.com" target="_blank">chandlerc@google.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div><br>
<div class="gmail_quote">On Wed, Sep 18, 2013 at 1:19 AM, Kostya Serebryany <span dir="ltr"><<a href="mailto:kcc@google.com" target="_blank">kcc@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>This can be solved with sigaltstack() and AddressSanitizer does this under a separate </div>


<div>(experimental) flag ASAN_OPTIONS=use_sigaltstack=1</div></blockquote></div><br></div>Is there a bug tracking what is needed to enable this by default? Might be a nice project for folks that want to improve support for this situation.</div>

</div></blockquote><div><br></div></div></div><div>Not that I know of. There will be users who would not like this by default. </div><div>sigaltstack in asan is not cheap -- it currently costs 32K RAM per thread.</div><div>
We have users with default 64K per thread stack and they set this strict limit for a good reason -- they have thousands of threads. </div>
<div>So, adding 50% to their stack size is not great. </div><div>remember that sigaltstack does not help to detect any new bugs -- it just makes the SEGV a bit more verbose. <br></div><div><br></div><div>Having said that, I am actually not opposed to setting use_sigaltstack=1 by default.</div>

<div>It's just that we didn't spend much time evaluating it. </div><div><br></div><div>--kcc </div></div><br></div></div>
</blockquote></div><br></div>