From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9E8DE3851C2C; Sun, 3 May 2020 10:56:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9E8DE3851C2C From: "slyfox at inbox dot ru" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/19329] dl-tls.c assert failure at concurrent pthread_create and dlopen Date: Sun, 03 May 2020 10:56:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: 2.22 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at inbox dot ru X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: nszabolcs at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 May 2020 10:56:08 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D19329 Sergei Trofimovich changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |slyfox at inbox dot ru, | |toolchain at gentoo dot org --- Comment #18 from Sergei Trofimovich --- In https://bugs.gentoo.org/719674#c12 gentoo sees nptl/tst-stack4 crashes somewhat reliably on arm64: # while :; do date; env GCONV_PATH=3D/var/tmp/portage/sys-libs/glibc-2.30-r8/work/build-arm64-aarch= 64-unknown-linux-gnu-nptl/iconvdata LOCPATH=3D/var/tmp/portage/sys-libs/glibc-2.30-r8/work/build-arm64-aarch64-= unknown-linux-gnu-nptl/localedata LC_ALL=3DC=20=20 /var/tmp/portage/sys-libs/glibc-2.30-r8/work/build-arm64-aarch64-unknown-li= nux-gnu-nptl/elf/ld-linux-aarch64.so.1 --library-path /var/tmp/portage/sys-libs/glibc-2.30-r8/work/build-arm64-aarch64-unknown-li= nux-gnu-nptl:/var/tmp/portage/sys-libs/glibc-2.30-r8/work/build-arm64-aarch= 64-unknown-linux-gnu-nptl/math:/var/tmp/portage/sys-libs/glibc-2.30-r8/work= /build-arm64-aarch64-unknown-linux-gnu-nptl/elf:/var/tmp/portage/sys-libs/g= libc-2.30-r8/work/build-arm64-aarch64-unknown-linux-gnu-nptl/dlfcn:/var/tmp= /portage/sys-libs/glibc-2.30-r8/work/build-arm64-aarch64-unknown-linux-gnu-= nptl/nss:/var/tmp/portage/sys-libs/glibc-2.30-r8/work/build-arm64-aarch64-u= nknown-linux-gnu-nptl/nis:/var/tmp/portage/sys-libs/glibc-2.30-r8/work/buil= d-arm64-aarch64-unknown-linux-gnu-nptl/rt:/var/tmp/portage/sys-libs/glibc-2= .30-r8/work/build-arm64-aarch64-unknown-linux-gnu-nptl/resolv:/var/tmp/port= age/sys-libs/glibc-2.30-r8/work/build-arm64-aarch64-unknown-linux-gnu-nptl/= mathvec:/var/tmp/portage/sys-libs/glibc-2.30-r8/work/build-arm64-aarch64-un= known-linux-gnu-nptl/support:/var/tmp/portage/sys-libs/glibc-2.30-r8/work/b= uild-arm64-aarch64-unknown-linux-gnu-nptl/crypt:/var/tmp/portage/sys-libs/g= libc-2.30-r8/work/build-arm64-aarch64-unknown-linux-gnu-nptl/nptl::/var/tmp= /portage/sys-libs/glibc-2.30-r8/work/build-arm64-aarch64-unknown-linux-gnu-= nptl//dlfcn /var/tmp/portage/sys-libs/glibc-2.30-r8/work/build-arm64-aarch64-unknown-li= nux-gnu-nptl/nptl/tst-stack4; done Sun 03 May 2020 10:42:08 AM UTC Sun 03 May 2020 10:42:21 AM UTC Sun 03 May 2020 10:42:34 AM UTC Didn't expect signal from child: got `Segmentation fault' ... Sun 03 May 2020 10:42:56 AM UTC malloc(): invalid size (unsorted) Didn't expect signal from child: got `Aborted' .. Sun 03 May 2020 10:46:21 AM UTC free(): corrupted unsorted chunks Didn't expect signal from child: got `Aborted' ... Sun 03 May 2020 10:46:55 AM UTC Didn't expect signal from child: got `Segmentation fault' Sun 03 May 2020 10:47:04 AM UTC double free or corruption (!prev) Didn't expect signal from child: got `Aborted' ... Sun 03 May 2020 10:50:54 AM UTC free(): invalid pointer Didn't expect signal from child: got `Aborted' ... Sun 03 May 2020 10:52:12 AM UTC tst-stack4: malloc.c:2379: sysmalloc: Assertion `(old_top =3D=3D initial_to= p (av) && old_size =3D=3D 0) || ((unsigned long) (old_size) >=3D MINSIZE && prev_i= nuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) =3D=3D 0)' failed. Didn't expect signal from child: got `Aborted' Does it look like the same issue described here? # lscpu Architecture: aarch64 Byte Order: Little Endian CPU(s): 96 On-line CPU(s) list: 0-95 Thread(s) per core: 1 Core(s) per socket: 48 Socket(s): 2 Vendor ID: Cavium Model: 1 Model name: ThunderX 88XX Stepping: 0x1 BogoMIPS: 200.00 L1d cache: 32K L1i cache: 78K L2 cache: 16384K Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 # gcc -v Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/usr/libexec/gcc/aarch64-unknown-linux-gnu/9.3.0/lto-= wrapper Target: aarch64-unknown-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-9.3.0/work/gcc-9.3.0/config= ure --host=3Daarch64-unknown-linux-gnu --build=3Daarch64-unknown-linux-gnu --prefix=3D/usr --bindir=3D/usr/aarch64-unknown-linux-gnu/gcc-bin/9.3.0 --includedir=3D/usr/lib/gcc/aarch64-unknown-linux-gnu/9.3.0/include --datadir=3D/usr/share/gcc-data/aarch64-unknown-linux-gnu/9.3.0 --mandir=3D/usr/share/gcc-data/aarch64-unknown-linux-gnu/9.3.0/man --infodir=3D/usr/share/gcc-data/aarch64-unknown-linux-gnu/9.3.0/info --with-gxx-include-dir=3D/usr/lib/gcc/aarch64-unknown-linux-gnu/9.3.0/inclu= de/g++-v9 --with-python-dir=3D/share/gcc-data/aarch64-unknown-linux-gnu/9.3.0/python --enable-languages=3Dc,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=3Drelease --with-bugurl=3Dhttps://bugs.gentoo.org/ --with-pkgversion=3D'Gentoo 9.3.0 p2' --disable-esp --enable-libstdcxx-time --enable-shared --enable-threads=3Dposix --enable-__cxa_atexit --enable-clocale=3Dgnu --disable-multilib --disable-altivec --disable-fixed= -point --enable-libgomp --disable-libmudflap --disable-libssp --disable-libada --disable-systemtap --enable-vtable-verify --enable-lto --without-isl --enable-default-pie --enable-default-ssp Thread model: posix gcc version 9.3.0 (Gentoo 9.3.0 p2) # uname -r 4.9.0-4-arm64 --=20 You are receiving this mail because: You are on the CC list for the bug.=