Re: clang address sanitizer findings

2019-05-05 Thread Willy Tarreau
On Sun, May 05, 2019 at 08:49:10PM +0200, Willy Tarreau wrote: > Bingo! Alignment was forced to 2^5 when using the sanitizer, which > causes it not only to detect issues, but may even cause some crashes > upon startup when trying to dereference padding as function pointers. > > You may want to

Re: clang address sanitizer findings

2019-05-05 Thread Willy Tarreau
On Sun, May 05, 2019 at 11:36:46PM +0500, ??? wrote: > with sanitizer: > 27 init_STG_POOL 0800 00afb3a0 00afb3a0 006fa3a0 > 2**5 > CONTENTS, ALLOC, LOAD, DATA > 28 init_STG_LOCK 02c0 00afbba0 00afbba0 006faba0 > 2**5 >

Re: clang address sanitizer findings

2019-05-05 Thread Илья Шипицин
with sanitizer: $ objdump -h haproxy haproxy: file format elf64-x86-64 Sections: Idx Name Size VMA LMA File off Algn 0 .interp 001c 004002e0 004002e0 02e0 2**0 CONTENTS, ALLOC, LOAD, READONLY,

Re: clang address sanitizer findings

2019-05-05 Thread Willy Tarreau
On Sun, May 05, 2019 at 03:04:22PM +0500, ??? wrote: > Hello, > > I run fedora 30, it includes clang-8, I built haproxy using > > make CC=clang V=1 TARGET=$TARGET $FLAGS DEBUG_CFLAGS="-fsanitize=address > -ggdb" LDFLAGS="-fsanitize=address" > > when running reg-tests, the following is