https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79061
--- Comment #22 from Tobias Burnus <burnus at gcc dot gnu.org> --- (In reply to Maxim Ostapenko from comment #21) > Strange, new testcase (with strdup) doesn't fail for me: [...] That's odd; I re-check with your options (except that g++ 7 is here in the PATH) and I still see it with r244893 (x86-64 CentOS 6.8); also -f(no-)use-linker-plugin had no influence. As I recently did some incremental builds, I will retry it after a full bootstrap. ==7268==ERROR: AddressSanitizer: initialization-order-fiasco on address 0x000001395e48 at pc 0x0000004f9f3c bp 0x7ffc7a285de0 sp 0x7ffc7a285dd8 WRITE of size 1 at 0x000001395e48 thread T0 #0 0x4f9f3b in __base_ctor xptimer.cc:12 #1 0x4fa029 in __static_initialization_and_destruction_0 xptiming.cc:6 #2 0x4fa057 in _GLOBAL__sub_I__ZN6xp_aux13xptimer_sweepE xptiming.cc:9 #3 0x4fa10c in __libc_csu_init (a.out+0x4fa10c) #4 0x3f7081ecaf in __libc_start_main (/lib64/libc.so.6+0x3f7081ecaf) #5 0x405c8c (a.out+0x405c8c) 0x000001395e48 is located 8 bytes inside of global variable 'xptimer_sweep' defined in 'xptiming.cc:6:9' (0x1395e40) of size 16 registered at: #0 0x41aa08 in __asan_register_globals ../../../../libsanitizer/asan/asan_globals.cc:317 #1 0x4fa096 in _GLOBAL__sub_I_00099_1_main.4497 (a.out+0x4fa096) #2 0x4fa10c in __libc_csu_init (a.out+0x4fa10c) 0x000001395e48 is located 56 bytes to the left of global variable 'xptimer_clean' defined in 'xptiming.cc:7:9' (0x1395e80) of size 16 registered at: #0 0x41aa08 in __asan_register_globals ../../../../libsanitizer/asan/asan_globals.cc:317 #1 0x4fa096 in _GLOBAL__sub_I_00099_1_main.4497 (a.out+0x4fa096) #2 0x4fa10c in __libc_csu_init (a.out+0x4fa10c) ...