trafficserver icon indicating copy to clipboard operation
trafficserver copied to clipboard

ASAN reports odr-violation in vtable for YAML::EmitFromEvents

Open moonchen opened this issue 2 years ago • 3 comments

Master branch. Built with clang-15. Configured with --prefix=/opt/ats --enable-debug --enable-asan

==128097==ERROR: AddressSanitizer: odr-violation (0xffffb4c0bc60):
  [1] size=112 'vtable for YAML::EmitFromEvents' src/emitfromevents.cpp
  [2] size=112 'vtable for YAML::EmitFromEvents' src/emitfromevents.cpp
These globals were registered at these points:
  [1]:
    #0 0xaaaae2ecfe24 in __asan_register_globals (/opt/ats/bin/traffic_server+0x6bfe24) (BuildId: 75d3d2b4cd60af0195e734facbc41f2a8859b92e)
    #1 0xffffb4ad1540 in asan.module_ctor emitfromevents.cpp
    #2 0xffffb4c4e7c0  (/lib/ld-linux-aarch64.so.1+0x47c0) (BuildId: 7eafdbf8be0fa4793253d94204399db43301e5e5)
    #3 0xffffb4c4e8c0  (/lib/ld-linux-aarch64.so.1+0x48c0) (BuildId: 7eafdbf8be0fa4793253d94204399db43301e5e5)
    #4 0xffffb4c651b4  (/lib/ld-linux-aarch64.so.1+0x1b1b4) (BuildId: 7eafdbf8be0fa4793253d94204399db43301e5e5)

  [2]:
    #0 0xaaaae2ecfe24 in __asan_register_globals (/opt/ats/bin/traffic_server+0x6bfe24) (BuildId: 75d3d2b4cd60af0195e734facbc41f2a8859b92e)
    #1 0xffffb46e31d0 in asan.module_ctor emitfromevents.cpp
    #2 0xffffb4c4e7c0  (/lib/ld-linux-aarch64.so.1+0x47c0) (BuildId: 7eafdbf8be0fa4793253d94204399db43301e5e5)
    #3 0xffffb4c4e8c0  (/lib/ld-linux-aarch64.so.1+0x48c0) (BuildId: 7eafdbf8be0fa4793253d94204399db43301e5e5)
    #4 0xffffb4c651b4  (/lib/ld-linux-aarch64.so.1+0x1b1b4) (BuildId: 7eafdbf8be0fa4793253d94204399db43301e5e5)

==128097==HINT: if you don't care about these errors you may set ASAN_OPTIONS=detect_odr_violation=0
SUMMARY: AddressSanitizer: odr-violation: global 'vtable for YAML::EmitFromEvents' at src/emitfromevents.cpp
==128097==ABORTING```

moonchen avatar Mar 13 '23 15:03 moonchen

It seems this is a know issue with LLVM: https://github.com/google/sanitizers/issues/1017

ywkaras avatar Mar 15 '23 02:03 ywkaras

This is fixed by llvm-16.0.0. ( I don't see this with llvm-16.0.4 )

masaori335 avatar Jul 14 '23 07:07 masaori335

This issue has been automatically marked as stale because it has not had recent activity. Marking it stale to flag it for further consideration by the community.

github-actions[bot] avatar Jul 14 '24 01:07 github-actions[bot]