From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AF6D83858C54; Thu, 11 May 2023 20:44:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AF6D83858C54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683837843; bh=wFecRsHWRmBBrsSsrCFJx9FEZ2mtgmnkH4Hg/WjLFj0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=A67wi/jTUnD1WpWneT6cK9rSBmwt8cTWpJKgUwCMyHB5cDxUv/hWrD8HJ5Hn/drpI +vPNSMixDI4fmaOzKm9QkBaRHksrX6CeJmMKcmH/Ko39TRfUtbatyiJgFnS/IugXbM 98DkgXrWO+tUqdWSv3PqUUYNpTVuYORveZitOYmQ= From: "amy at amyspark dot me" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109806] [13/14 Regression] 13.1.0 cc1plus stack smashing crash with C array of complex structs Date: Thu, 11 May 2023 20:44:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: ice-on-valid-code, memory-hog X-Bugzilla-Severity: critical X-Bugzilla-Who: amy at amyspark dot me X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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=3D109806 --- Comment #9 from Amyspark --- (In reply to Andrew Pinski from comment #7) > Simple testcase: > ``` > struct basic_string { > ~basic_string() { } > }; > const basic_string data[] =3D { {} }; > ``` >=20 > This fails with `ulimit -s 1024` which is not unreasonable limit even. The > default on Linux is 8MB, I just reduced it down to 1MB. >=20 The default in Windows is 1MB last time I checked with my G'MIC fork, perha= ps that's why it's easier to reproduce there.=