[llvm-commits] [PATCH] AddressSanitizer: allow disabling __cxa_throw at runtime

Alexander Potapenko glider at google.com
Thu Dec 29 01:36:16 PST 2011


On Thu, Dec 29, 2011 at 3:48 AM, Kostya Serebryany <kcc at google.com> wrote:
> If we don't wrap __cxa_throw, we will have stack-buffer-overflow false
> positives (the stack will be poisoned on entry and never unpoisoned on
> exit).
>
> Maybe, if we build asan-rt w/ exceptions (removeĀ -fno-exceptions
> fromĀ compiler-rt/make/config.mk) the bug will get fixed,
> but I'd really like to find another solution (ideally, asan-rt should not
> require libstdc++ at all, and on linux this seems to work)
>
> --kcc
>
Please disregard the above patch.
I suppose we can use -fno-exceptions together with -funwind-tables to
fix the issue




More information about the llvm-commits mailing list