From owner-freebsd-bugs@freebsd.org Sun Jul 28 11:47:00 2019 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 73214A91E6 for ; Sun, 28 Jul 2019 11:47:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 5386491F8F for ; Sun, 28 Jul 2019 11:47:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 52BD0A91E5; Sun, 28 Jul 2019 11:47:00 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 527F5A91E4 for ; Sun, 28 Jul 2019 11:47:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2EF4A91F8E for ; Sun, 28 Jul 2019 11:47:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 07FA5F3DE for ; Sun, 28 Jul 2019 11:47:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x6SBkxUI028595 for ; Sun, 28 Jul 2019 11:46:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x6SBkxO2028594 for bugs@FreeBSD.org; Sun, 28 Jul 2019 11:46:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 239493] signal SIGABRT in .__sys_thr_kill () from /lib/libc.so.7 on r350103 ppc64 Date: Sun, 28 Jul 2019 11:47:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dclarke@blastwave.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Rspamd-Queue-Id: 5386491F8F X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; NEURAL_HAM_SHORT(-0.97)[-0.971,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jul 2019 11:47:00 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239493 Bug ID: 239493 Summary: signal SIGABRT in .__sys_thr_kill () from /lib/libc.so.7 on r350103 ppc64 Product: Base System Version: CURRENT Hardware: powerpc OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: dclarke@blastwave.org This is entirely repeatable :=20 hydra$ cat foo.c=20 #if ! defined (__cplusplus) #include void lshift_com (rp, up, n, cnt) unsigned long *rp; unsigned long *up; long n; unsigned cnt; { unsigned long high_limb, low_limb; unsigned tnc; long i; up +=3D n; rp +=3D n; tnc =3D 8 * sizeof (unsigned long) - cnt; low_limb =3D *--up; high_limb =3D low_limb << cnt; for (i =3D n - 1; i !=3D 0; i--) { low_limb =3D *--up; *--rp =3D ~(high_limb | (low_limb >> tnc)); high_limb =3D low_limb << cnt; } *--rp =3D ~high_limb; } int main () { unsigned long *r, *r2; unsigned long a[88 + 1]; long i; for (i =3D 0; i < 88 + 1; i++) a[i] =3D ~0L; r =3D malloc (10000 * sizeof (unsigned long)); r2 =3D r; for (i =3D 0; i < 528; i +=3D 23) { lshift_com (r2, a, i / (8 * sizeof (unsigned long)) + 1, i % (8 * sizeof (unsigned long))); r2 +=3D 88 + 1; } if (r[2048] !=3D 0 || r[2049] !=3D 0 || r[2050] !=3D 0 || r[2051] !=3D 0 = || r[2052] !=3D 0 || r[2053] !=3D 0 || r[2054] !=3D 0) abort (); free (r); return 0; } #else int main () { return 0; } #endif hydra$=20 hydra$ uname -apKU FreeBSD hydra 13.0-CURRENT FreeBSD 13.0-CURRENT r350103 GENERIC powerpc powerpc64 1300036 1300036 hydra$=20 hydra$=20 hydra$ $CC $CFLAGS -o foo foo.c=20 hydra$=20 hydra$=20 hydra$ date -u=20 Sun Jul 28 11:44:29 UTC 2019 hydra$=20 hydra$ gdb ./foo GNU gdb (GDB) 8.3 [GDB v8.3 for FreeBSD] Copyright (C) 2019 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "powerpc64-portbld-freebsd13.0". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./foo... warning: File "/opt/bw/build/gmp-6.1.2_FreeBSD_13.0-CURRENT_r350103_ppc64.001/.gdbinit" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load". To enable execution of this file add add-auto-load-safe-path /opt/bw/build/gmp-6.1.2_FreeBSD_13.0-CURRENT_r350103_ppc64.001/.gdbinit line to your configuration file "/home/dclarke/.gdbinit". To completely disable this security protection add set auto-load safe-path / line to your configuration file "/home/dclarke/.gdbinit". --Type for more, q to quit, c to continue without paging--c For more information about this security protection see the "Auto-loading safe path" section in the GDB manual. E.g., run from the she= ll: info "(gdb)Auto-loading safe path" (gdb) run Starting program: /opt/bw/build/gmp-6.1.2_FreeBSD_13.0-CURRENT_r350103_ppc64.001/foo=20 Program received signal SIGABRT, Aborted. 0x000000081026b898 in .__sys_thr_kill () from /lib/libc.so.7 (gdb) bt #0 0x000000081026b898 in .__sys_thr_kill () from /lib/libc.so.7 #1 0x000000081026af3c in .__raise () from /lib/libc.so.7 #2 0x00000008101cf41c in abort () from /lib/libc.so.7 #3 0x0000000010000cb4 in main () at foo.c:51 (gdb) quit A debugging session is active. Inferior 1 [process 3386] will be killed. Quit anyway? (y or n) y hydra$=20 Runs fine on my release x86_64 boxen. hydra$=20 hydra$ ./foo Abort trap (core dumped) hydra$ echo $? 134 hydra$=20 hydra$ ls -l foo.core -rw------- 1 dclarke devl 10264576 Jul 28 11:45 foo.core hydra$=20 --=20 Dennis Clarke RISC-V/SPARC/PPC/ARM/CISC UNIX and Linux spoken GreyBeard and suspenders optional --=20 You are receiving this mail because: You are the assignee for the bug.=