public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/98983] New: SEGV during C++17 variadic template instantiation @ 2021-02-06 18:33 alison@she-devel.com 2021-02-08 9:13 ` [Bug c++/98983] " rguenth at gcc dot gnu.org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: alison@she-devel.com @ 2021-02-06 18:33 UTC (permalink / raw) To: gcc-bugs 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: 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 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/98983] SEGV during C++17 variadic template instantiation 2021-02-06 18:33 [Bug c++/98983] New: SEGV during C++17 variadic template instantiation alison@she-devel.com @ 2021-02-08 9:13 ` rguenth at gcc dot gnu.org 2021-02-08 22:13 ` alison@she-devel.com ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: rguenth at gcc dot gnu.org @ 2021-02-08 9:13 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98983 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Ever confirmed|0 |1 Status|UNCONFIRMED |WAITING Last reconfirmed| |2021-02-08 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- If preprocessed source is too large please compress it. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/98983] SEGV during C++17 variadic template instantiation 2021-02-06 18:33 [Bug c++/98983] New: SEGV during C++17 variadic template instantiation alison@she-devel.com 2021-02-08 9:13 ` [Bug c++/98983] " rguenth at gcc dot gnu.org @ 2021-02-08 22:13 ` alison@she-devel.com 2021-02-08 22:15 ` alison@she-devel.com 2021-02-09 5:36 ` alison@she-devel.com 3 siblings, 0 replies; 5+ messages in thread From: alison@she-devel.com @ 2021-02-08 22:13 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98983 --- Comment #2 from Alison Chaiken <alison@she-devel.com> --- Created attachment 50147 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50147&action=edit compressed preprocessor output ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/98983] SEGV during C++17 variadic template instantiation 2021-02-06 18:33 [Bug c++/98983] New: SEGV during C++17 variadic template instantiation alison@she-devel.com 2021-02-08 9:13 ` [Bug c++/98983] " rguenth at gcc dot gnu.org 2021-02-08 22:13 ` alison@she-devel.com @ 2021-02-08 22:15 ` alison@she-devel.com 2021-02-09 5:36 ` alison@she-devel.com 3 siblings, 0 replies; 5+ messages in thread From: alison@she-devel.com @ 2021-02-08 22:15 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98983 --- Comment #3 from Alison Chaiken <alison@she-devel.com> --- The folly source referred to below comes from https://github.com/facebook/folly.git I do not work for F******k and am simply trying to make use of their tracing functionality in their StaticTracepoint.h header. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/98983] SEGV during C++17 variadic template instantiation 2021-02-06 18:33 [Bug c++/98983] New: SEGV during C++17 variadic template instantiation alison@she-devel.com ` (2 preceding siblings ...) 2021-02-08 22:15 ` alison@she-devel.com @ 2021-02-09 5:36 ` alison@she-devel.com 3 siblings, 0 replies; 5+ messages in thread From: alison@she-devel.com @ 2021-02-09 5:36 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98983 --- Comment #4 from Alison Chaiken <alison@she-devel.com> --- The folly source referred to below comes from https://github.com/facebook/folly.git I do not work for F******k and am simply trying to make use of their tracing functionality in their StaticTracepoint.h header. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-02-09 5:36 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-02-06 18:33 [Bug c++/98983] New: SEGV during C++17 variadic template instantiation alison@she-devel.com 2021-02-08 9:13 ` [Bug c++/98983] " rguenth at gcc dot gnu.org 2021-02-08 22:13 ` alison@she-devel.com 2021-02-08 22:15 ` alison@she-devel.com 2021-02-09 5:36 ` alison@she-devel.com
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).