December 02, 2020
I try find a memory issue with ldc -betterC -g -fsanitize=address -disable-fp-elim, get invalid path to external symbolizer!

Is there a way to print the symbol and line ?



=================================================================
==113433==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6060000008a0 at pc 0x00000070dcf2 bp 0x7ffedf7514c0 sp 0x7ffedf7514b8
WRITE of size 8 at 0x6060000008a0 thread T0
==113433==WARNING: invalid path to external symbolizer!
==113433==WARNING: Failed to use and restart external symbolizer!
    #0 0x70dcf1  (/root/ncore+0x70dcf1)
    #1 0x5bea1f  (/root/ncore+0x5bea1f)
    #2 0x5be68b  (/root/ncore+0x5be68b)
    #3 0x5bd626  (/root/ncore+0x5bd626)
    #4 0x7f7644  (/root/ncore+0x7f7644)
    #5 0x7fc078  (/root/ncore+0x7fc078)
    #6 0x7fc1cd  (/root/ncore+0x7fc1cd)
    #7 0x5c1060  (/root/ncore+0x5c1060)
    #8 0x730f4f  (/root/ncore+0x730f4f)
    #9 0x738dea  (/root/ncore+0x738dea)
    #10 0x6c2a12  (/root/ncore+0x6c2a12)
    #11 0x6dbdc1  (/root/ncore+0x6dbdc1)
    #12 0x724fa3  (/root/ncore+0x724fa3)
    #13 0x6d1707  (/root/ncore+0x6d1707)
    #14 0x724bb6  (/root/ncore+0x724bb6)
    #15 0x7f8fb6dbd09a  (/lib/x86_64-linux-gnu/libc.so.6+0x2409a)
    #16 0x4ea029  (/root/ncore+0x4ea029)

0x6060000008a0 is located 0 bytes to the right of 64-byte region [0x606000000860,0x6060000008a0)
allocated by thread T0 here:
    #0 0x562952  (/root/ncore+0x562952)
    #1 0x66c009  (/root/ncore+0x66c009)
    #2 0x70d991  (/root/ncore+0x70d991)
    #3 0x5bea1f  (/root/ncore+0x5bea1f)
    #4 0x5be68b  (/root/ncore+0x5be68b)
    #5 0x5bd626  (/root/ncore+0x5bd626)
    #6 0x7f7644  (/root/ncore+0x7f7644)
    #7 0x730f4f  (/root/ncore+0x730f4f)
    #8 0x6dbdc1  (/root/ncore+0x6dbdc1)
    #9 0x724fa3  (/root/ncore+0x724fa3)
    #10 0x6d1707  (/root/ncore+0x6d1707)
    #11 0x724bb6  (/root/ncore+0x724bb6)
    #12 0x7f8fb6dbd09a  (/lib/x86_64-linux-gnu/libc.so.6+0x2409a)

SUMMARY: AddressSanitizer: heap-buffer-overflow (/root/ncore+0x70dcf1)
Shadow bytes around the buggy address:
  0x0c0c7fff80c0: fa fa fa fa fd fd fd fd fd fd fd fd fa fa fa fa
  0x0c0c7fff80d0: 00 00 00 00 00 00 00 05 fa fa fa fa fd fd fd fd
  0x0c0c7fff80e0: fd fd fd fa fa fa fa fa fd fd fd fd fd fd fd fa
  0x0c0c7fff80f0: fa fa fa fa fd fd fd fd fd fd fd fa fa fa fa fa
  0x0c0c7fff8100: fd fd fd fd fd fd fd fa fa fa fa fa 00 00 00 00
=>0x0c0c7fff8110: 00 00 00 00[fa]fa fa fa 00 00 00 00 00 00 00 07
  0x0c0c7fff8120: fa fa fa fa fd fd fd fd fd fd fd fd fa fa fa fa
  0x0c0c7fff8130: fd fd fd fd fd fd fd fd fa fa fa fa fd fd fd fd
  0x0c0c7fff8140: fd fd fd fd fa fa fa fa fd fd fd fd fd fd fd fd
  0x0c0c7fff8150: fa fa fa fa 00 00 00 00 00 00 00 00 fa fa fa fa
  0x0c0c7fff8160: fd fd fd fd fd fd fd fd fa fa fa fa 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
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
  Shadow gap:              cc
==113433==ABORTING