https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98983
Bug ID: 98983 Summary: SEGV during C++17 variadic template instantiation Product: gcc Version: 10.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ali...@she-devel.com Target Milestone: --- The code that causes the crash relies on GCC's typeclass.h and the folly project's StaticTracepoint.h, which implements support for Linux BPF userspace static tracing. I will attach the requested preprocessor output. The code also crashes clang++. I do not work for F******k: this is my personal weekend hack project. $ make arg_classifier_lib_test /usr/bin/g++ -std=c++17 -pthread -ggdb -Wall -Wextra -g -O0 -fno-inline -fsanitize=address,undefined -I/home/alison/gitsrc/googletest/googletest/include -ggdb -g -fsanitize=address -L/home/alison/gitsrc/googletest/googletest/make -lpthread -I/home/alison/gitsrc/gcc -I/home/alison/gitsrc/folly /home/alison/gitsrc/googletest/googletest/make/libgtest.a /home/alison/gitsrc/googletest/googletest/make/libgtest_main.a /home/alison/gitsrc/fbcode-install/folly/lib/libfolly.a /home/alison/gitsrc/fbcode-install/folly/lib/libfolly_test_util.a arg_classifier_lib_test.cc -o arg_classifier_lib_test In file included from /home/alison/gitsrc/folly/folly/tracing/StaticTracepoint.h:22, from arg_classifier.h:8, from arg_classifier_lib_test.cc:12: arg_classifier.h: In instantiation of ‘bool arg_classify::maybe_insert_folly_sdt_probe(const char*, const char*, T, Pars ...) [with T = int; Pars = {int}]’: arg_classifier_lib_test.cc:194:3: required from here /home/alison/gitsrc/folly/folly/tracing/StaticTracepoint-ELFx86.h:53:65: internal compiler error: Segmentation fault