diff options
| author | Maxim Ostapenko <m.ostapenko@partner.samsung.com> | 2016-05-16 07:20:53 +0000 |
|---|---|---|
| committer | Maxim Ostapenko <m.ostapenko@partner.samsung.com> | 2016-05-16 07:20:53 +0000 |
| commit | 187043f61eccbe5f9940906fb42477149e7616aa (patch) | |
| tree | c6a9ee4f4cf56affa082af95e358545619aeae63 /lldb/packages/Python/lldbsuite/test/functionalities | |
| parent | 1aa231e3aaf2c2f4cbf73f2d02b896c05d072cdb (diff) | |
| download | bcm5719-llvm-187043f61eccbe5f9940906fb42477149e7616aa.tar.gz bcm5719-llvm-187043f61eccbe5f9940906fb42477149e7616aa.zip | |
[asan] Fix asan initialization failure with newer (2.23+) glibc in use.
This patch tries to fix https://llvm.org/bugs/show_bug.cgi?id=27310 by using the same hack for malloc as we use for calloc: allocate corresponding memory from internal buffer when ASan is not initialized.
This way we could avoid nasty '==6987==AddressSanitizer CHECK failed: ../../../../libsanitizer/asan/asan_rtl.cc:556 "((!asan_init_is_running && "ASan init calls itself!")) != (0)" (0x0, 0x0)' errors in
environments with glibc 2.23+ in use, where _dl_signal_error, called from dlsym for undefined symbols calls malloc in order to get a buffer for error message.
Differential Revision: http://reviews.llvm.org/D20235
llvm-svn: 269633
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities')
0 files changed, 0 insertions, 0 deletions

