Address Sanitizer SEGV

Hi there,

I just started running address sanitize AddressSanitizer and I received a report that I am having trouble parsing:

ASAN:SIGSEGV

Hi Pedro!

Yes, this is most likely the problem in ASan (ASan stack unwinder uses
pointers to stack top/bottom in a given thread, and these
pointers are not yet initialized in your case). Can you make a
standalone reproducer for this issue?
I'll take a look at the code to see if we can properly fix it, or at
least add a workaround.

(side note: once again we are hit by calling functions from libpthread
in GetThreadStackTopAndBottom, sigh).

does this happen with the fresh clang trunk?

Hi Pedro!

Yes, this is most likely the problem in ASan (ASan stack unwinder uses
pointers to stack top/bottom in a given thread, and these
pointers are not yet initialized in your case). Can you make a
standalone reproducer for this issue?

Correction: this shouldn't happen, as stack boundaries are initialized
with zeroes,
so FastUnwindStack should exit early.

Hi Pedro!

Yes, this is most likely the problem in ASan (ASan stack unwinder uses
pointers to stack top/bottom in a given thread, and these
pointers are not yet initialized in your case). Can you make a
standalone reproducer for this issue?

Correction: this shouldn't happen, as stack boundaries are initialized
with zeroes,
so FastUnwindStack should exit early.

FTR: this check was added in r184190

Hi guys,

I haven’t been able to reproduce this issue since it first happened. I’ll keep an eye out.

-pp