From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2373838582BD; Mon, 16 Oct 2023 13:54:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2373838582BD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697464493; bh=mUnAneyMG1SQPQJ0m89Cyo34grrI5pgMf3mNeg1Dsss=; h=From:To:Subject:Date:From; b=c8zA79sMIxWdPoGVQ7m1a/L18UM2C9aBSkojhPvIEHJiwOjt4B+Uzro0y4PKn6ZZb L1yt5g6gmmLH3FqUZifpW7VlnIE0BAEiOyxZ1CqvgkdF8bU+sTsjogoSFZGO931My/ PzXlhMRTV1Ees4iLt4c4mD/AUCpwKtCjRGNkiy6I= From: "141242068 at smail dot nju.edu.cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/111834] New: GCC: 14: out of memory when __builtin_return_address receive a large constant Date: Mon, 16 Oct 2023 13:54:52 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: 141242068 at smail dot nju.edu.cn 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111834 Bug ID: 111834 Summary: GCC: 14: out of memory when __builtin_return_address receive a large constant Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: 141242068 at smail dot nju.edu.cn Target Milestone: --- Compiler Explorer: https://gcc.godbolt.org/z/7d63G6fWT Testcase is pasted below: ``` void *retaddr; void foo (void) { retaddr =3D __builtin_return_address (1084850891); } ``` When compile it with GCC-14, it quickly used up all 8G memory on my PC.=