From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CAEF33858400; Wed, 17 Nov 2021 12:08:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CAEF33858400 From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgomp/102838] [12 regression] Several tests SEGV in gomp_loop_ull_init Date: Wed, 17 Nov 2021 12:08:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgomp X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 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 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: Wed, 17 Nov 2021 12:08:12 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102838 --- Comment #14 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #13 from Jakub Jelinek --- > Created attachment 51807 > --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D51807&action=3Dedit > gcc12-pr102838-2.patch > > Does this patch fix it? While the patch fixes all 32-bit x86 failures, it introduces ca. 230 execution failures for 64-bit (both x86 and sparc), all like libgomp: Out of memory allocating 2656 bytes e.g. for libgomp.c/single-1.c with this stack trace: Thread 2 hit Breakpoint 1, gomp_fatal (fmt=3Dfmt@entry=3D0x7fff57b183d8 "Ou= t of memory allocating %lu bytes") at /vol/gcc/src/hg/master/local/libgomp/error.c:85 85 { (gdb) where #0 gomp_fatal (fmt=3Dfmt@entry=3D0x7fff57b183d8 "Out of memory allocating = %lu bytes") at /vol/gcc/src/hg/master/local/libgomp/error.c:85 #1 0x00007fff57b1b278 in gomp_aligned_alloc (al=3Dal@entry=3D64, size=3Dsize@entry=3D2656) at /vol/gcc/src/hg/master/local/libgomp/alloc.c:94 #2 0x00007fff57b2e1eb in gomp_new_team (nthreads=3Dnthreads@entry=3D3) at /vol/gcc/src/hg/master/local/libgomp/team.c:181 #3 0x00007fff57b25627 in GOMP_parallel_start (fn=3D0x401410 , data=3D0x0, num_threads=3D3) at /vol/gcc/src/hg/master/local/libgomp/parall= el.c:133 #4 0x00000000004014e6 in main () Running the test under truss shows this immediately before the error message: brk(0x00000000) =3D 0x00501980 brk(0x00501980) =3D 0x00000000 brk(0x00505980) =3D 0x00000000=