https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102838
--- Comment #14 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> --- > --- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> --- > Created attachment 51807 > --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51807&action=edit > 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=fmt@entry=0x7fff57b183d8 "Out of memory allocating %lu bytes") at /vol/gcc/src/hg/master/local/libgomp/error.c:85 85 { (gdb) where #0 gomp_fatal (fmt=fmt@entry=0x7fff57b183d8 "Out of memory allocating %lu bytes") at /vol/gcc/src/hg/master/local/libgomp/error.c:85 #1 0x00007fff57b1b278 in gomp_aligned_alloc (al=al@entry=64, size=size@entry=2656) at /vol/gcc/src/hg/master/local/libgomp/alloc.c:94 #2 0x00007fff57b2e1eb in gomp_new_team (nthreads=nthreads@entry=3) at /vol/gcc/src/hg/master/local/libgomp/team.c:181 #3 0x00007fff57b25627 in GOMP_parallel_start (fn=0x401410 <f_nocopy>, data=0x0, num_threads=3) at /vol/gcc/src/hg/master/local/libgomp/parallel.c:133 #4 0x00000000004014e6 in main () Running the test under truss shows this immediately before the error message: brk(0x00000000) = 0x00501980 brk(0x00501980) = 0x00000000 brk(0x00505980) = 0x00000000