From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E71D63861881; Sat, 6 Feb 2021 18:33:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E71D63861881 From: "alison@she-devel.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/98983] New: SEGV during C++17 variadic template instantiation Date: Sat, 06 Feb 2021 18:33:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 10.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alison@she-devel.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Feb 2021 18:34:00 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98983 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: alison@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 usersp= ace static tracing. I will attach the requested preprocessor output. The co= de also crashes clang++. I do not work for F******k: this is my personal wee= kend hack project.=20 $ make arg_classifier_lib_test /usr/bin/g++ -std=3Dc++17 -pthread -ggdb -Wall -Wextra -g -O0 -fno-inline -fsanitize=3Daddress,undefined -I/home/alison/gitsrc/googletest/googletest/include -ggdb -g -fsanitize=3Da= ddress -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 =E2=80=98bool arg_classify::maybe_insert_folly_sdt_probe(const char*, const char*, T, Pars ...) [with T =3D int; Pars =3D {int}]=E2=80=99: 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=