From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 772163858CDA; Sun, 25 Sep 2022 20:47:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 772163858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664138831; bh=zdrM7yi1I+LdYKq9fZUzv1Q4vawsVPRKgo0Ol1Eb/B8=; h=From:To:Subject:Date:From; b=L836xetD7gvokCrfHJwwNBvxDQNmw+XfFvH/X1WLIWXQkNTJ0iQUiP/iYB69eDdbo MGfi2+asnMQfubMhWTEX2KKkjw/NMzyNuOEPnHsiKLJ/FW89BGoRfrZm+3EvUpDoqd 4UwZw/WXFQ4PmbxeOnl190euNMhSt7w6bOI3pMyw= From: "menkaur at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107034] New: SIGSEGV in code using c style array Date: Sun, 25 Sep 2022 20:47:11 +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: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: menkaur at gmail dot 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 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107034 Bug ID: 107034 Summary: SIGSEGV in code using c style array Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: menkaur at gmail dot com Target Milestone: --- Created attachment 53625 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53625&action=3Dedit c++ code to reproduce the bug Attached code will result in address boundary error or similar issues at the first line in any method that contains it. To get it to work, run `g++ -O0 main.cpp -o test && ./test` I had a bug where I was passing arguments into method that contained similar code, and, when examined in gdb, I was passing valid arguments and receiving invalid arguments inside. Bug only became apparent to me when using large enough array=