From owner-freebsd-bugs@freebsd.org Mon Aug 15 09:58:11 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7EE7ABBAAF6 for ; Mon, 15 Aug 2016 09:58:11 +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 mx1.freebsd.org (Postfix) with ESMTPS id 6491015CE for ; Mon, 15 Aug 2016 09:58:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u7F9wB1O072431 for ; Mon, 15 Aug 2016 09:58:11 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 211864] Compiler is using AVX instructions for CPUTYPE=btver1 Date: Mon, 15 Aug 2016 09:58:11 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 11.0-RC1 X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: demik+freebsd@lostwave.net 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 keywords bug_severity priority component assigned_to reporter cc 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.22 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2016 09:58:11 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211864 Bug ID: 211864 Summary: Compiler is using AVX instructions for CPUTYPE=3Dbtver1 Product: Base System Version: 11.0-RC1 Hardware: amd64 OS: Any Status: New Keywords: regression Severity: Affects Some People Priority: --- Component: misc Assignee: freebsd-bugs@FreeBSD.org Reporter: demik+freebsd@lostwave.net CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org Hello, While rebuilding some ports after upgrading to 11.0-RC1 (with freebsd-updat= e), almost every binary is crashing with SIGILL=20 The system hardware is bobcat based : CPU: AMD C-70 APU with Radeon(tm) HD Graphics (1000.02-MHz K8-class CPU) Bobcat CPUs have only MMX, SSE, SSE2, SSE3, SSSE3, SSE4A instructions. Compiling without CPUTYPE results in working binaries. With CPUTYPE=3Dbtver1, the binaries does not work, as the CPU does not have= any AVX instructions : root@square:~ # lldb /usr/local/bin/sudo (lldb) target create "/usr/local/bin/sudo" Current executable set to '/usr/local/bin/sudo' (x86_64). (lldb) run test Process 71447 launching Process 71447 launched: '/usr/local/bin/sudo' (x86_64) Process 71447 stopped * thread #1: tid =3D 101195, 0x0000000800a5421e libsudo_util.so.0`??? + 286= , stop reason =3D signal SIGILL: privileged instruction frame #0: 0x0000000800a5421e libsudo_util.so.0`??? + 286 libsudo_util.so.0`???: -> 0x800a5421e <+286>: vzeroupper=20 0x800a54221 <+289>: callq 0x800a511e4 ; symbol stub for: sudo_debug_exit_int_v1 0x800a54226 <+294>: movq 0x20ad93(%rip), %rax ; libsudo_util.so.0..got + 72 0x800a5422d <+301>: movq (%rax), %rax Some information : root@square:~ # uname -a FreeBSD square 11.0-RC1 FreeBSD 11.0-RC1 #0 r303979: Fri Aug 12 02:28:24 UTC 2016 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 root@square:~ # cc -v FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0) Target: x86_64-unknown-freebsd11.0 Thread model: posix InstalledDir: /usr/bin Everything was working fine while running 10.3-RELEASE this bug might be related to this one : https://reviews.llvm.org/D17682 Regards --=20 You are receiving this mail because: You are the assignee for the bug.=