Thank you, it solves the problem! ----- Original Message ----- From: Илья Шипицин <chipits...@gmail.com> To: flamese...@yahoo.co.jp Cc: "haproxy@formilux.org" <haproxy@formilux.org> Date: 2019/7/5, Fri 00:44 Subject: Re: Error with AddressSanitizer did you also use USE_OBSOLETE_LINKER=1 ?asan is supposed to be used together with obsolete linking
чт, 4 июл. 2019 г. в 19:14, <flamese...@yahoo.co.jp>: Hi I got this error when trying to debug a problem in haproxy compile haproxy using clang with -fsanitize=address and start haproxy: ================================================================= ==27669==ERROR: AddressSanitizer: global-buffer-overflow on address 0x0000019795c8 at pc 0xb28240 bp 0x7ffd7682c2d0 sp 0x7ffd7682c2c8 READ of size 8 at 0x0000019795c8 thread T0 #0 0xb2823f in main src/haproxy.c:2710 #1 0x7fb34cee8444 in __libc_start_main /usr/src/debug/glibc-2.17-c758a686/csu/../csu/libc-start.c:274 #2 0x49299c in _start (haproxy+0x49299c) 0x0000019795c8 is located 56 bytes to the left of global variable '__initcb_509' from 'src/task.c' (0x1979600) of size 8 0x0000019795c8 is located 0 bytes to the right of global variable '__initcb_1860' from 'src/log.c' (0x19795c0) of size 8 SUMMARY: AddressSanitizer: global-buffer-overflow src/haproxy.c:2710 main Shadow bytes around the buggy address: 0x000080327260: 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 0x000080327270: 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 0x000080327280: 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 0x000080327290: 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 0x0000803272a0: 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 =>0x0000803272b0: 00 f9 f9 f9 f9 f9 f9 f9 00[f9]f9 f9 f9 f9 f9 f9 0x0000803272c0: 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 0x0000803272d0: 00 f9 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 0x0000803272e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0000803272f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x000080327300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Heap right redzone: fb Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack partial redzone: f4 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 ASan internal: fe ==27669==ABORTING