From owner-freebsd-bugs@freebsd.org Tue Feb 20 10:34:25 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8C5E7F1A7DD for ; Tue, 20 Feb 2018 10:34:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DE4D16F7C5 for ; Tue, 20 Feb 2018 10:34:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 0EDB71E4EA for ; Tue, 20 Feb 2018 10:34:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w1KAYN8Y045848 for ; Tue, 20 Feb 2018 10:34:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w1KAYNbK045845 for freebsd-bugs@FreeBSD.org; Tue, 20 Feb 2018 10:34:23 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: freebsd-bugs@FreeBSD.org Subject: [Bug 226059] Clang produces vmovaps with unaligned operand Date: Tue, 20 Feb 2018 10:34:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: 6yearold@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Feb 2018 10:34:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D226059 Bug ID: 226059 Summary: Clang produces vmovaps with unaligned operand Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: 6yearold@gmail.com I am compiling lang/ghc with CPUTYPE?=3Dnative set. The ghc-pkg executable produced during build gets broken. During staging step, the following comma= nd is run /wrkdirs/usr/ports/lang/ghc/work/stage/usr/local/lib/ghc-8.0.2/bin/ghc-pkg --force --global-package-db "/wrkdirs/usr/ports/lang/ghc/work/stage/usr/local/lib/ghc-8.0.2/package.con= f.d" update rts/dist/package.conf.install but it fails with SIGBUS. Debugging under LLDB gives (lldb) run Process 29833 stopped * thread #1, name =3D 'ghc-pkg', stop reason =3D signal SIGBUS: hardware er= ror frame #0: 0x0000000804e476c6 libHSrts-ghc8.0.2.so`initGcThreads [inline= d] new_gc_thread(n=3D0) at GC.c:818 815 ws->todo_q =3D newWSDeque(128); 816 ws->todo_overflow =3D NULL; 817 ws->n_todo_overflow =3D 0; -> 818 ws->todo_large_objects =3D NULL; 819=20 820 ws->part_list =3D NULL; 821 ws->n_part_blocks =3D 0; (lldb) disas -F intel -> 0x804e476c6 <+326>: vmovaps ymmword ptr [rbx + 0x40], ymm0 The value of rbx + 0x40 mod 16 =3D 0, but rbx + 0x40 mod 32 =3D 16, which i= s a source of the error, I suspect. Steps to reproduce: # echo CPUTYPE?=3Dnative >> /usr/local/etc/poudriere.d/--make.conf # poudriere testport -j yourjail -p yourports -I lang/ghc Once that fails, enter the jail and # cd /wrkdirs/usr/ports/lang/ghc/work/ghc-8.0.2 # lldb -- /wrkdirs/usr/ports/lang/ghc/work/stage/usr/local/lib/ghc-8.0.2/bin/ghc-pkg --force --global-package-db "/wrkdirs/usr/ports/lang/ghc/work/stage/usr/local/lib/ghc-8.0.2/package.con= f.d" update rts/dist/package.conf.install The same bug is present on 11.1-RELEASE too. --=20 You are receiving this mail because: You are the assignee for the bug.=