[Bug 211864] Compiler is using AVX instructions for CPUTYPE=btver1

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Aug 15 09:58:11 UTC 2016


            Bug ID: 211864
           Summary: Compiler is using AVX instructions for CPUTYPE=btver1
           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 at FreeBSD.org
          Reporter: demik+freebsd at lostwave.net
                CC: freebsd-amd64 at FreeBSD.org
                CC: freebsd-amd64 at FreeBSD.org


While rebuilding some ports after upgrading to 11.0-RC1 (with freebsd-update),
almost every binary is crashing with SIGILL 

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=btver1, the binaries does not work, as the CPU does not have any
AVX instructions :

root at 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 = 101195, 0x0000000800a5421e libsudo_util.so.0`??? + 286, stop
reason = signal SIGILL: privileged instruction
    frame #0: 0x0000000800a5421e libsudo_util.so.0`??? + 286
->  0x800a5421e <+286>: vzeroupper 
    0x800a54221 <+289>: callq  0x800a511e4               ; symbol stub for:
    0x800a54226 <+294>: movq   0x20ad93(%rip), %rax      ;
libsudo_util.so.0..got + 72
    0x800a5422d <+301>: movq   (%rax), %rax

Some information :

root at square:~ # uname -a
FreeBSD square 11.0-RC1 FreeBSD 11.0-RC1 #0 r303979: Fri Aug 12 02:28:24 UTC
2016     root at releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

root at square:~ # cc -v
FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM
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 :


You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list