💥
【未解決 / Workaround】GNU MakeにClangのアドレスサニタイザーを使うとdetected memory leaks
環境
ubuntu@codespaces-7df36e:/workspace$ clang-20 --version
Ubuntu clang version 20.1.8 (0ubuntu4)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-20/bin
症状
Bazelで以下のHardeningを設定してツールチェーンをビルドする。
build --copt=-fstack-protector-strong
build --host_copt=-fstack-clash-protection
build --host_copt=-D_FORTIFY_SOURCE=3
build --host_copt=-fsanitize=address,undefined
build --host_linkopt=-fsanitize=address,undefined
以下のエラーを吐いてGNU Makeがコケることがある。
=================================================================
==1242095==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 23040 byte(s) in 160 object(s) allocated from:
#0 0x6539e92462fd in calloc (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1a62fd) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#1 0x6539e92fa2bd in xcalloc (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x25a2bd) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#2 0x6539e92967d9 in enter_file (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f67d9) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#3 0x6539e92c86e2 in pattern_search implicit.c
#4 0x6539e92bf63d in try_implicit_rule (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x21f63d) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#5 0x6539e93219d9 in update_file_1 remake.c
#6 0x6539e9319348 in update_file remake.c
#7 0x6539e932b8ba in check_dep remake.c
#8 0x6539e9322876 in update_file_1 remake.c
#9 0x6539e9319348 in update_file remake.c
#10 0x6539e932b8ba in check_dep remake.c
#11 0x6539e9322876 in update_file_1 remake.c
#12 0x6539e9319348 in update_file remake.c
#13 0x6539e932b8ba in check_dep remake.c
#14 0x6539e9322876 in update_file_1 remake.c
#15 0x6539e9319348 in update_file remake.c
#16 0x6539e932b8ba in check_dep remake.c
#17 0x6539e9322876 in update_file_1 remake.c
#18 0x6539e9319348 in update_file remake.c
#19 0x6539e93178d7 in update_goal_chain (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x2778d7) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#20 0x6539e92e9a0b in main (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x249a0b) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#21 0x70f66d464574 (/lib/x86_64-linux-gnu/libc.so.6+0x2a574) (BuildId: bc071219b774e887d2477b96fa792af74144ff37)
#22 0x70f66d464627 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a627) (BuildId: bc071219b774e887d2477b96fa792af74144ff37)
#23 0x6539e91a44a4 in _start (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1044a4) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
Direct leak of 23040 byte(s) in 160 object(s) allocated from:
#0 0x6539e92462fd in calloc (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1a62fd) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#1 0x6539e92fa2bd in xcalloc (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x25a2bd) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#2 0x6539e92967d9 in enter_file (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f67d9) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#3 0x6539e92c86e2 in pattern_search implicit.c
#4 0x6539e92bf63d in try_implicit_rule (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x21f63d) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#5 0x6539e93219d9 in update_file_1 remake.c
#6 0x6539e9319348 in update_file remake.c
#7 0x6539e93178d7 in update_goal_chain (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x2778d7) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#8 0x6539e92e8b41 in main (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x248b41) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#9 0x70f66d464574 (/lib/x86_64-linux-gnu/libc.so.6+0x2a574) (BuildId: bc071219b774e887d2477b96fa792af74144ff37)
#10 0x70f66d464627 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a627) (BuildId: bc071219b774e887d2477b96fa792af74144ff37)
#11 0x6539e91a44a4 in _start (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1044a4) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
Direct leak of 144 byte(s) in 1 object(s) allocated from:
#0 0x6539e92462fd in calloc (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1a62fd) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#1 0x6539e92fa2bd in xcalloc (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x25a2bd) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#2 0x6539e92967d9 in enter_file (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f67d9) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#3 0x6539e929c157 in enter_prereqs (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1fc157) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#4 0x6539e930cb7b in record_files read.c
#5 0x6539e9302869 in eval read.c
#6 0x6539e9300f1c in eval_makefile read.c
#7 0x6539e9302f08 in eval read.c
#8 0x6539e9300f1c in eval_makefile read.c
#9 0x6539e92ffd58 in read_all_makefiles (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x25fd58) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#10 0x6539e92e7547 in main (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x247547) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#11 0x70f66d464574 (/lib/x86_64-linux-gnu/libc.so.6+0x2a574) (BuildId: bc071219b774e887d2477b96fa792af74144ff37)
#12 0x70f66d464627 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a627) (BuildId: bc071219b774e887d2477b96fa792af74144ff37)
#13 0x6539e91a44a4 in _start (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1044a4) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
Direct leak of 56 byte(s) in 1 object(s) allocated from:
#0 0x6539e9246128 in malloc (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1a6128) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#1 0x6539e92fa278 in xmalloc (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x25a278) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#2 0x6539e930c610 in record_files read.c
#3 0x6539e9306026 in eval read.c
#4 0x6539e9301ba5 in eval_buffer (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x261ba5) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#5 0x6539e92b7aa3 in func_eval function.c
#6 0x6539e92aaefc in handle_function (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x20aefc) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#7 0x6539e9293f82 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f3f82) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#8 0x6539e929300a in recursively_expand_for_file (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f300a) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#9 0x6539e9295207 in reference_variable expand.c
#10 0x6539e9294308 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f4308) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#11 0x6539e92b593f in func_call function.c
#12 0x6539e92aaefc in handle_function (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x20aefc) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#13 0x6539e9293f82 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f3f82) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#14 0x6539e9294dd9 in expand_argument (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f4dd9) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#15 0x6539e92b6ca8 in func_if function.c
#16 0x6539e92aaefc in handle_function (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x20aefc) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#17 0x6539e9293f82 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f3f82) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#18 0x6539e929300a in recursively_expand_for_file (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f300a) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#19 0x6539e9295207 in reference_variable expand.c
#20 0x6539e9294308 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f4308) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#21 0x6539e92b593f in func_call function.c
#22 0x6539e92aaefc in handle_function (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x20aefc) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#23 0x6539e9293f82 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f3f82) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#24 0x6539e9294dd9 in expand_argument (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f4dd9) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#25 0x6539e92b6ca8 in func_if function.c
#26 0x6539e92aaefc in handle_function (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x20aefc) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#27 0x6539e9293f82 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f3f82) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#28 0x6539e929300a in recursively_expand_for_file (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f300a) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#29 0x6539e9295207 in reference_variable expand.c
Direct leak of 56 byte(s) in 1 object(s) allocated from:
#0 0x6539e9246128 in malloc (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1a6128) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#1 0x6539e92fa278 in xmalloc (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x25a278) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#2 0x6539e930c610 in record_files read.c
#3 0x6539e9306026 in eval read.c
#4 0x6539e9301ba5 in eval_buffer (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x261ba5) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#5 0x6539e92b7aa3 in func_eval function.c
#6 0x6539e92aaefc in handle_function (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x20aefc) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#7 0x6539e9293f82 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f3f82) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#8 0x6539e929300a in recursively_expand_for_file (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f300a) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#9 0x6539e9295207 in reference_variable expand.c
#10 0x6539e9294308 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f4308) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#11 0x6539e92b593f in func_call function.c
#12 0x6539e92aaefc in handle_function (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x20aefc) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#13 0x6539e9293f82 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f3f82) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#14 0x6539e9294dd9 in expand_argument (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f4dd9) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#15 0x6539e92b6ca8 in func_if function.c
#16 0x6539e92aaefc in handle_function (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x20aefc) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#17 0x6539e9293f82 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f3f82) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#18 0x6539e929300a in recursively_expand_for_file (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f300a) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#19 0x6539e9295207 in reference_variable expand.c
#20 0x6539e9294308 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f4308) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#21 0x6539e92b593f in func_call function.c
#22 0x6539e92aaefc in handle_function (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x20aefc) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#23 0x6539e9293f82 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f3f82) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#24 0x6539e9304430 in eval read.c
#25 0x6539e9300f1c in eval_makefile read.c
#26 0x6539e92ffd58 in read_all_makefiles (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x25fd58) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#27 0x6539e92e7547 in main (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x247547) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#28 0x70f66d464574 (/lib/x86_64-linux-gnu/libc.so.6+0x2a574) (BuildId: bc071219b774e887d2477b96fa792af74144ff37)
#29 0x70f66d464627 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a627) (BuildId: bc071219b774e887d2477b96fa792af74144ff37)
Indirect leak of 59 byte(s) in 1 object(s) allocated from:
#0 0x6539e9246128 in malloc (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1a6128) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#1 0x6539e91bc0b0 in strndup (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x11c0b0) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#2 0x6539e92fa358 in xstrndup (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x25a358) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#3 0x6539e930c704 in record_files read.c
#4 0x6539e9306026 in eval read.c
#5 0x6539e9301ba5 in eval_buffer (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x261ba5) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#6 0x6539e92b7aa3 in func_eval function.c
#7 0x6539e92aaefc in handle_function (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x20aefc) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#8 0x6539e9293f82 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f3f82) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#9 0x6539e929300a in recursively_expand_for_file (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f300a) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#10 0x6539e9295207 in reference_variable expand.c
#11 0x6539e9294308 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f4308) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#12 0x6539e92b593f in func_call function.c
#13 0x6539e92aaefc in handle_function (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x20aefc) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#14 0x6539e9293f82 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f3f82) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#15 0x6539e9294dd9 in expand_argument (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f4dd9) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#16 0x6539e92b6ca8 in func_if function.c
#17 0x6539e92aaefc in handle_function (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x20aefc) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#18 0x6539e9293f82 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f3f82) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#19 0x6539e929300a in recursively_expand_for_file (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f300a) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#20 0x6539e9295207 in reference_variable expand.c
#21 0x6539e9294308 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f4308) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#22 0x6539e92b593f in func_call function.c
#23 0x6539e92aaefc in handle_function (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x20aefc) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#24 0x6539e9293f82 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f3f82) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#25 0x6539e9294dd9 in expand_argument (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f4dd9) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#26 0x6539e92b6ca8 in func_if function.c
#27 0x6539e92aaefc in handle_function (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x20aefc) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#28 0x6539e9293f82 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f3f82) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#29 0x6539e929300a in recursively_expand_for_file (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f300a) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
Indirect leak of 59 byte(s) in 1 object(s) allocated from:
#0 0x6539e9246128 in malloc (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1a6128) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#1 0x6539e91bc0b0 in strndup (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x11c0b0) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#2 0x6539e92fa358 in xstrndup (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x25a358) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#3 0x6539e930c704 in record_files read.c
#4 0x6539e9306026 in eval read.c
#5 0x6539e9301ba5 in eval_buffer (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x261ba5) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#6 0x6539e92b7aa3 in func_eval function.c
#7 0x6539e92aaefc in handle_function (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x20aefc) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#8 0x6539e9293f82 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f3f82) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#9 0x6539e929300a in recursively_expand_for_file (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f300a) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#10 0x6539e9295207 in reference_variable expand.c
#11 0x6539e9294308 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f4308) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#12 0x6539e92b593f in func_call function.c
#13 0x6539e92aaefc in handle_function (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x20aefc) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#14 0x6539e9293f82 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f3f82) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#15 0x6539e9294dd9 in expand_argument (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f4dd9) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#16 0x6539e92b6ca8 in func_if function.c
#17 0x6539e92aaefc in handle_function (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x20aefc) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#18 0x6539e9293f82 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f3f82) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#19 0x6539e929300a in recursively_expand_for_file (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f300a) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#20 0x6539e9295207 in reference_variable expand.c
#21 0x6539e9294308 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f4308) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#22 0x6539e92b593f in func_call function.c
#23 0x6539e92aaefc in handle_function (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x20aefc) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#24 0x6539e9293f82 in variable_expand_string (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x1f3f82) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#25 0x6539e9304430 in eval read.c
#26 0x6539e9300f1c in eval_makefile read.c
#27 0x6539e92ffd58 in read_all_makefiles (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x25fd58) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#28 0x6539e92e7547 in main (/home/ubuntu/.cache/bazel/_bazel_ubuntu/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-opt-exec-ST-3e3b4836985c/bin/external/rules_foreign_cc+/toolchains/private/make/bin/make+0x247547) (BuildId: 7304ea4e5d6646ff13b4791ccfa85a5c2d555517)
#29 0x70f66d464574 (/lib/x86_64-linux-gnu/libc.so.6+0x2a574) (BuildId: bc071219b774e887d2477b96fa792af74144ff37)
SUMMARY: AddressSanitizer: 46454 byte(s) leaked in 325 allocation(s).
Workaround
アドレスサニタイザーを諦めて、fsanitizeをboundsにする。
メモリリークの検知はされないが、配列の境界外アクセスは検知してくれる。
build --host_copt=-fsanitize=bounds,undefined
build --host_linkopt=-fsanitize=bounds,undefined
おそらくGNU Make側のバグ、もしくはトリッキーなコードが原因だと思われる。こちらで対処できることはあまりない。(Clangのアドレスサニタイザー側の問題な可能性も一応はある)
Discussion