From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0B10B385DC1C; Sun, 10 May 2020 06:10:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B10B385DC1C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1589091025; bh=k/JXTCaCAy35+qSmkxhWVt0ujuXsmWCnrYpLaQjskW4=; h=From:To:Subject:Date:From; b=werE+ulRHJTqEuwDFWGjEWZP31Nnz2GABdIhvdCptrJNdkkwCZdOdSn+11BcyVa/k 4YOEHzxc17cSZq6Nj5FyNQlcTAjkt18WvvxXHomgFw4neLROaXV0WHAOQbJkhuIDfA f0pMBJIP2vlRBqz3qXOa8eag1b0Ohxso92u1U5Ls= From: "noloader at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/95031] New: GCC 10 Analyzer and fatal error: Terminated signal terminated program cc1plus Date: Sun, 10 May 2020 06:10:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: analyzer X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: noloader at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm 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 attachments.created 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: Sun, 10 May 2020 06:10:25 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95031 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=3D48496&action=3Dedit 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=3D"-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 fi= le has concrete objects in it. I would not be surprised if some sort of resour= ce exhaustion was occurring.=