| Bug #116594 | [MSVC] MySQL failed to build with msvc on Windows when add ASAN option | ||
|---|---|---|---|
| Submitted: | 8 Nov 2024 6:13 | Modified: | 26 Nov 2024 7:51 |
| Reporter: | Liu June | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Compiling | Severity: | S2 (Serious) |
| Version: | 8.4, 8.0 | OS: | Windows |
| Assigned to: | CPU Architecture: | x86 | |
[8 Nov 2024 6:13]
Liu June
[11 Nov 2024 12:10]
MySQL Verification Team
Hello Liu June, Thank you for the report and feedback. Observed this even with 8.0.40 build. regards, Umesh
[21 Nov 2024 8:31]
Tor Didriksen
Posted by developer:
--- a/extra/abseil/abseil-cpp-20230802.1/absl/time/internal/cctz/include/cctz/time_zone.h
+++ b/extra/abseil/abseil-cpp-20230802.1/absl/time/internal/cctz/include/cctz/time_zone.h
@@ -232,7 +232,7 @@ class time_zone {
bool load_time_zone(const std::string& name, time_zone* tz);
// Returns a time_zone representing UTC. Cannot fail.
-time_zone utc_time_zone();
+ABSL_DLL time_zone utc_time_zone();
This fixes it, but shouldn't really be necessary, since the 'absl_dll' library has property WINDOWS_EXPORT_ALL_SYMBOLS TRUE
Some of our .proto files generate ASAN warnings when running 'protoc' (no such problems on Linux with gcc/clang)
so this is needed during build:
export ASAN_OPTIONS="new_delete_type_mismatch=false"
[26 Nov 2024 7:51]
Liu June
Thanks for the reply. I tried to add option /bigobj and set ASAN_OPTIONS=new_delete_type_mismatch=0 when build in ASAN mode, it built passed.
