Bug #107805 ODR violations in binlog_reader
Submitted: 8 Jul 0:54 Modified: 8 Jul 20:15
Reporter: Rayan Dasoriya Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:8.0.26 OS:Linux
Assigned to: MySQL Verification Team CPU Architecture:x86

[8 Jul 0:54] Rayan Dasoriya
Description:
==8805==ERROR: AddressSanitizer: odr-violation (0x7fef59e14160):
  [1] size=28 'typeinfo name for Binlog_event_data_istream' sql/binlog_reader.cc
  [2] size=28 'typeinfo name for Binlog_event_data_istream' sql/binlog_reader.cc

[1] was registered in binlog_reader.cc
[2] was registered in basic_istream.cc

SUMMARY: AddressSanitizer: odr-violation: global 'typeinfo name for Binlog_event_data_istream' at sql/binlog_reader.cc

How to repeat:
Build with clang and ASAN. Create a test which includes both binlog_reader and basic_istream and run the test.
[8 Jul 14:45] MySQL Verification Team
Hi,

Can you provide us with a necessary test that includes these two source files ???

We require a repeatable test case for each bug report.
[8 Jul 20:15] Rayan Dasoriya
There were some issues in my build script. I was depending on binlog_reader.cc file twice.
[8 Jul 21:20] MySQL Verification Team
Thank you for the update
kind regards