From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 493083858D37; Sat, 16 Mar 2024 10:45:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 493083858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1710585916; bh=FaLizHIPpoB7X+dSiPgNJpGCf+D4MzB3zH7egBWoL/0=; h=From:To:Subject:Date:From; b=HraPS8DGdoWrr6yHPVOKRHHDOLCUrs6ni80mrnyvaGqVzPn++KAsaijox2uGcdgWj aqXkNAMkp+oNSv3s6fdri9qCN9x9EiHwHPniGvSl/eCZdPYyE2W8L6Y8JeNQOvLW9Q 2/3ThR/BJPCucQN+L2wDL/hVKbrnm9yp4lj1YVKE= From: "sam at gentoo dot org" To: glibc-bugs@sourceware.org Subject: [Bug malloc/31498] New: malloc/tst-free-errno-malloc-hugetlb1 test fails on arm64 Date: Sat, 16 Mar 2024 10:45:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: malloc X-Bugzilla-Version: 2.37 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sam at gentoo dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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 cc target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31498 Bug ID: 31498 Summary: malloc/tst-free-errno-malloc-hugetlb1 test fails on arm64 Product: glibc Version: 2.37 Status: NEW Severity: normal Priority: P2 Component: malloc Assignee: unassigned at sourceware dot org Reporter: sam at gentoo dot org CC: adhemerval.zanella at linaro dot org Target Milestone: --- Created attachment 15407 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D15407&action=3Ded= it lscpu Proxying a bug report from leio@g.o. ``` $ uname -a Linux mac-gentoo 6.6.0-asahi+ #19 SMP PREEMPT_DYNAMIC Sat Feb 3 14:46:34 E= ET 2024 aarch64 GNU/Linux ``` He gets one test failure with glibc-2.38: ``` $ cat tst-free-errno-malloc-hugetlb1.test-result=20 FAIL: malloc/tst-free-errno-malloc-hugetlb1 original exit status 1 ``` ``` $ cat tst-free-errno-malloc-hugetlb1.out Didn't expect signal from child: got `Aborted' ``` Backtrace isn't very informative: ``` (gdb) set args --library-path /tmp/portage/sys-libs/glibc-2.38-r11/work/build-arm64-aarch64-unknown-linux= -gnu-nptl:/tmp/portage/sys-libs/glibc-2.38-r11/work/build-arm64-aarch64-unk= nown-linux-gnu-nptl/math:/tmp/portage/sys-libs/glibc-2.38-r11/work/build-ar= m64-aarch64-unknown-linux-gnu-nptl/elf:/tmp/portage/sys-libs/glibc-2.38-r11= /work/build-arm64-aarch64-unknown-linux-gnu-nptl/dlfcn:/tmp/portage/sys-lib= s/glibc-2.38-r11/work/build-arm64-aarch64-unknown-linux-gnu-nptl/nss:/tmp/p= ortage/sys-libs/glibc-2.38-r11/work/build-arm64-aarch64-unknown-linux-gnu-n= ptl/nis:/tmp/portage/sys-libs/glibc-2.38-r11/work/build-arm64-aarch64-unkno= wn-linux-gnu-nptl/rt:/tmp/portage/sys-libs/glibc-2.38-r11/work/build-arm64-= aarch64-unknown-linux-gnu-nptl/resolv:/tmp/portage/sys-libs/glibc-2.38-r11/= work/build-arm64-aarch64-unknown-linux-gnu-nptl/mathvec:/tmp/portage/sys-li= bs/glibc-2.38-r11/work/build-arm64-aarch64-unknown-linux-gnu-nptl/support:/= tmp/portage/sys-libs/glibc-2.38-r11/work/build-arm64-aarch64-unknown-linux-= gnu-nptl/nptl /tmp/portage/sys-libs/glibc-2.38-r11/work/build-arm64-aarch64-unknown-linux= -gnu-nptl/malloc/tst-free-errno-malloc-hugetlb1 (gdb) run Starting program: /tmp/portage/sys-libs/glibc-2.38-r11/work/build-arm64-aarch64-unknown-linux= -gnu-nptl/elf/ld-linux-aarch64.so.1 --library-path /tmp/portage/sys-libs/glibc-2.38-r11/work/build-arm64-aarch64-unknown-linux= -gnu-nptl:/tmp/portage/sys-libs/glibc-2.38-r11/work/build-arm64-aarch64-unk= nown-linux-gnu-nptl/math:/tmp/portage/sys-libs/glibc-2.38-r11/work/build-ar= m64-aarch64-unknown-linux-gnu-nptl/elf:/tmp/portage/sys-libs/glibc-2.38-r11= /work/build-arm64-aarch64-unknown-linux-gnu-nptl/dlfcn:/tmp/portage/sys-lib= s/glibc-2.38-r11/work/build-arm64-aarch64-unknown-linux-gnu-nptl/nss:/tmp/p= ortage/sys-libs/glibc-2.38-r11/work/build-arm64-aarch64-unknown-linux-gnu-n= ptl/nis:/tmp/portage/sys-libs/glibc-2.38-r11/work/build-arm64-aarch64-unkno= wn-linux-gnu-nptl/rt:/tmp/portage/sys-libs/glibc-2.38-r11/work/build-arm64-= aarch64-unknown-linux-gnu-nptl/resolv:/tmp/portage/sys-libs/glibc-2.38-r11/= work/build-arm64-aarch64-unknown-linux-gnu-nptl/mathvec:/tmp/portage/sys-li= bs/glibc-2.38-r11/work/build-arm64-aarch64-unknown-linux-gnu-nptl/support:/= tmp/portage/sys-libs/glibc-2.38-r11/work/build-arm64-aarch64-unknown-linux-= gnu-nptl/nptl /tmp/portage/sys-libs/glibc-2.38-r11/work/build-arm64-aarch64-unknown-linux= -gnu-nptl/malloc/tst-free-errno-malloc-hugetlb1 [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib64/libthread_db.so.1". [Attaching after Thread 0xfffff7fe4020 (LWP 1606774) fork to child process 1606775] [New inferior 3 (process 1606775)] [Detaching after fork from parent process 1606774] [Inferior 2 (process 1606774) detached] [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib64/libthread_db.so.1". double free or corruption (out) Thread 3.1 "ld-linux-aarch6" received signal SIGABRT, Aborted. [Switching to Thread 0xfffff7fe4020 (LWP 1606775)] __pthread_kill_implementation (threadid=3D281474842378272, signo=3Dsigno@en= try=3D6, no_tid=3Dno_tid@entry=3D0) at pthread_kill.c:44 44 return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0; (gdb) t a a bt full Thread 3.1 (Thread 0xfffff7fe4020 (LWP 1606775) "ld-linux-aarch6"): #0 __pthread_kill_implementation (threadid=3D281474842378272, signo=3Dsigno@entry=3D6, no_tid=3Dno_tid@entry=3D0) at pthread_kill.c:44 tid =3D 1606775 ret =3D 0 pd =3D 0xfffff7fe4020 old_mask =3D {__val =3D {281474842489360}} ret =3D #1 0x0000fffff7e5a100 in __pthread_kill_internal (threadid=3D, signo=3D6) at pthread_kill.c:78 No locals. #2 0x0000fffff7e0b3bc in __GI_raise (sig=3Dsig@entry=3D6) at ../sysdeps/posix/raise.c:26 ret =3D #3 0x0000fffff7df6b68 in __GI_abort () at abort.c:79 save_stage =3D 1 act =3D {__sigaction_handler =3D {sa_handler =3D 0x20, sa_sigaction= =3D 0x20}, sa_mask =3D {__val =3D {0, 281474842165248, 281474842380128, 28147485928652= 8, 281474842038288, 281474842378272, 18446744073709535232, 0, 16777216, 281474976702880, 281474976702800, 0, 281474842482608, 281474976703072, 281474842476544, 4}}, sa_flags =3D 1, sa_restorer =3D 0x18} #4 0x0000fffff7e4dbc4 in __libc_message (fmt=3Dfmt@entry=3D0xfffff7f2f930 = "%s\n") at ../sysdeps/posix/libc_fatal.c:150 ap =3D {__stack =3D 0xffffffffe260, __gr_top =3D 0xffffffffe260, __= vr_top =3D 0xffffffffe220, __gr_offs =3D -48, __vr_offs =3D 0} fd =3D 2 list =3D nlist =3D cp =3D #5 0x0000fffff7e64698 in malloc_printerr (str=3Dstr@entry=3D0xfffff7f2af00= "double free or corruption (out)") at malloc.c:5765 No locals. #6 0x0000fffff7e664f8 in _int_free_merge_chunk (av=3D0xfffff7f80970 , p=3D0xfffff8008330, size=3D16776976) at malloc.c:4669 nextchunk =3D 0xfffff9008240 nextsize =3D #7 0x0000fffff7e6677c in _int_free (av=3D, p=3D, have_lock=3D, have_lock@entry=3D0) at malloc.c:4639 size =3D fb =3D #8 0x0000fffff7e68cb0 in __GI___libc_free (mem=3D) at malloc.c:3391 ar_ptr =3D p =3D err =3D 1789 #9 0x0000fffff7f91ed4 in ?? () No symbol table info available. #10 0x0000ffffffffe5c8 in ?? () No symbol table info available. Backtrace stopped: previous frame identical to this frame (corrupt stack?) ``` --=20 You are receiving this mail because: You are on the CC list for the bug.=