public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug analyzer/95031] New: GCC 10 Analyzer and fatal error: Terminated signal terminated program cc1plus @ 2020-05-10 6:10 noloader at gmail dot com 2020-05-11 7:46 ` [Bug analyzer/95031] " marxin at gcc dot gnu.org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: noloader at gmail dot com @ 2020-05-10 6:10 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95031 Bug ID: 95031 Summary: GCC 10 Analyzer and fatal error: Terminated signal terminated program cc1plus Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: noloader at gmail dot com Target Milestone: --- Created attachment 48496 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48496&action=edit Preprocessed source file dll.ii Hi Everyone, I'm trying out the analyzer on a C++ project. I'm working on Fedora 32 with GCC 10. $ gcc --version gcc (GCC) 10.0.1 20200430 (Red Hat 10.0.1-0.14) Here's what I am seeing: g++ -fPIC -pthread -pipe -DNDEBUG -g2 -O3 -fanalyzer -c dll.cpp g++: fatal error: Terminated signal terminated program cc1plus compilation terminated. make: *** [GNUmakefile:1693: dll.o] Error 1 It is fairly easy to duplicate with live code. Unfortunately, I am not sure what is needed for a reproducer based on the error message. It can be duplicated with live code using: $ git clone https://github.com/weidai11/cryptopp.git $ cd cryptopp $ CXXFLAGS="-DNDEBUG -g2 -O3 -fanalyzer" make dll.o ... g++: fatal error: Terminated signal terminated program cc1plus compilation terminated. Attached is the output with a -save-temps. If someone would kindly provide instructions, then I would be happy to troubleshot it further. The file dll.cpp is a real bastard. It includes a lot of template classes. Its sole purpose is to instantiate a bunch of template classes so the object file has concrete objects in it. I would not be surprised if some sort of resource exhaustion was occurring. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug analyzer/95031] GCC 10 Analyzer and fatal error: Terminated signal terminated program cc1plus 2020-05-10 6:10 [Bug analyzer/95031] New: GCC 10 Analyzer and fatal error: Terminated signal terminated program cc1plus noloader at gmail dot com @ 2020-05-11 7:46 ` marxin at gcc dot gnu.org 2020-05-11 7:54 ` marxin at gcc dot gnu.org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: marxin at gcc dot gnu.org @ 2020-05-11 7:46 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95031 Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2020-05-11 Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 CC| |marxin at gcc dot gnu.org ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug analyzer/95031] GCC 10 Analyzer and fatal error: Terminated signal terminated program cc1plus 2020-05-10 6:10 [Bug analyzer/95031] New: GCC 10 Analyzer and fatal error: Terminated signal terminated program cc1plus noloader at gmail dot com 2020-05-11 7:46 ` [Bug analyzer/95031] " marxin at gcc dot gnu.org @ 2020-05-11 7:54 ` marxin at gcc dot gnu.org 2020-05-11 16:31 ` dmalcolm at gcc dot gnu.org 2020-05-11 17:19 ` noloader at gmail dot com 3 siblings, 0 replies; 5+ messages in thread From: marxin at gcc dot gnu.org @ 2020-05-11 7:54 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95031 --- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> --- It finished for me with ~16GB memory eaten in: user 3m59.520s ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug analyzer/95031] GCC 10 Analyzer and fatal error: Terminated signal terminated program cc1plus 2020-05-10 6:10 [Bug analyzer/95031] New: GCC 10 Analyzer and fatal error: Terminated signal terminated program cc1plus noloader at gmail dot com 2020-05-11 7:46 ` [Bug analyzer/95031] " marxin at gcc dot gnu.org 2020-05-11 7:54 ` marxin at gcc dot gnu.org @ 2020-05-11 16:31 ` dmalcolm at gcc dot gnu.org 2020-05-11 17:19 ` noloader at gmail dot com 3 siblings, 0 replies; 5+ messages in thread From: dmalcolm at gcc dot gnu.org @ 2020-05-11 16:31 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95031 --- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> --- Please note that C++ isn't supported in the -fanalyzer implementation in GCC 10. I hope to get it working for GCC 11 (but there's a lot of work to do). ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug analyzer/95031] GCC 10 Analyzer and fatal error: Terminated signal terminated program cc1plus 2020-05-10 6:10 [Bug analyzer/95031] New: GCC 10 Analyzer and fatal error: Terminated signal terminated program cc1plus noloader at gmail dot com ` (2 preceding siblings ...) 2020-05-11 16:31 ` dmalcolm at gcc dot gnu.org @ 2020-05-11 17:19 ` noloader at gmail dot com 3 siblings, 0 replies; 5+ messages in thread From: noloader at gmail dot com @ 2020-05-11 17:19 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95031 --- Comment #3 from Jeffrey Walton <noloader at gmail dot com> --- (In reply to David Malcolm from comment #2) > Please note that C++ isn't supported in the -fanalyzer implementation in GCC > 10. I hope to get it working for GCC 11 (but there's a lot of work to do). Oh, sorry about that. That explains a lot. You might want to add that information to https://developers.redhat.com/blog/2020/03/26/static-analysis-in-gcc-10/. Maybe even add an example of the unexpected beahvior when using C++. I started the Analyzer testing after reading the blog. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-05-11 17:19 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2020-05-10 6:10 [Bug analyzer/95031] New: GCC 10 Analyzer and fatal error: Terminated signal terminated program cc1plus noloader at gmail dot com 2020-05-11 7:46 ` [Bug analyzer/95031] " marxin at gcc dot gnu.org 2020-05-11 7:54 ` marxin at gcc dot gnu.org 2020-05-11 16:31 ` dmalcolm at gcc dot gnu.org 2020-05-11 17:19 ` noloader at gmail dot 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).