apache / trafficserver

Apache Traffic Server™ is a fast, scalable and extensible HTTP/1.1 and HTTP/2 compliant caching proxy server.
https://trafficserver.apache.org/
Apache License 2.0
1.8k stars 796 forks source link

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

Open moonchen opened 1 year ago

moonchen commented 1 year ago

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```
ywkaras commented 1 year ago

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

masaori335 commented 1 year ago

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

github-actions[bot] commented 2 months ago

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.