Package: borgbackup
Version: 1.1.3-3
Severity: normal

joey@elephant:~>borg serve --umask=077
Fatal Python error: Illegal instruction

Current thread 0x00007f3b0fb7c700 (most recent call first):
  File "/usr/lib/python3/dist-packages/borg/testsuite/crypto.py", line 91 in 
test_blake2b_256
  File "/usr/lib/python3.6/unittest/case.py", line 605 in run
  File "/usr/lib/python3.6/unittest/case.py", line 653 in __call__
  File "/usr/lib/python3.6/unittest/suite.py", line 122 in run
  File "/usr/lib/python3.6/unittest/suite.py", line 84 in __call__
  File "/usr/lib/python3.6/unittest/suite.py", line 122 in run
  File "/usr/lib/python3/dist-packages/borg/selftest.py", line 64 in selftest
  File "/usr/lib/python3/dist-packages/borg/archiver.py", line 4020 in 
prerun_checks
  File "/usr/lib/python3/dist-packages/borg/archiver.py", line 4057 in run
  File "/usr/lib/python3/dist-packages/borg/archiver.py", line 4157 in main
  File "/usr/bin/borg", line 11 in <module>
Illegal instruction
- exit 132

This is new after 
2017-12-21 15:42:24 upgrade borgbackup:amd64 1.0.11-3 1.1.3-3

Commenting out the assert blake2b_256 lines got the server working again.

Used gdb to examine what's going on:

(gdb) run /usr/bin/borg serve --umask=077
Starting program: /usr/bin/python3 /usr/bin/borg serve --umask=077
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction.
0x00007ffff39b900a in blake2b_init_avx ()
   from /usr/lib/x86_64-linux-gnu/libb2.so.1
(gdb) layout asm
  >│0x7ffff39b900a <blake2b_init_avx+10>    vpxor  %xmm0,%xmm0,%xmm0           │
   │0x7ffff39b900e <blake2b_init_avx+14>    sub    $0x48,%rsp                  │
   │0x7ffff39b9012 <blake2b_init_avx+18>    mov    $0x101,%eax                 │
   │0x7ffff39b9017 <blake2b_init_avx+23>    vmovaps %xmm0,(%rsp)               │

So, it's using a AVX XOR instruction not supported by the CPU.
This is on a Xen VPS host, I've included /proc/cpuinfo below.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US:en 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages borgbackup depends on:
ii  fuse                   2.9.7-1
ii  libacl1                2.2.52-3+b1
ii  libb2-1                0.97-4
ii  libc6                  2.25-5
ii  liblz4-1               0.0~r131-2+b1
ii  libssl1.1              1.1.0g-2
ii  python3                3.6.4~rc1-2
ii  python3-llfuse         1.3.2+dfsg-2
ii  python3-msgpack        0.4.8-1+b1
ii  python3-pkg-resources  38.2.4-2

borgbackup recommends no packages.

Versions of packages borgbackup suggests:
pn  borgbackup-doc  <none>

-- no debconf information

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 62
model name      : Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz
stepping        : 4
microcode       : 0x416
cpu MHz         : 2099.809
cache size      : 15360 KB
physical id     : 1
siblings        : 2
core id         : 0
cpu cores       : 1
apicid          : 32
initial apicid  : 32
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu de tsc msr pae cx8 apic sep cmov pat clflush mmx fxsr sse 
sse2 ss ht syscall nx lm constant_tsc rep_good nopl nonstop_tsc eagerfpu pni 
pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 popcnt tsc_deadline_timer aes avx f16c 
rdrand hypervisor lahf_lm
bugs            : null_seg
bogomips        : 4200.00
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 62
model name      : Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz
stepping        : 4
microcode       : 0x416
cpu MHz         : 2099.809
cache size      : 15360 KB
physical id     : 1
siblings        : 2
core id         : 0
cpu cores       : 1
apicid          : 32
initial apicid  : 32
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu de tsc msr pae cx8 apic sep cmov pat clflush mmx fxsr sse 
sse2 ss ht syscall nx lm constant_tsc rep_good nopl nonstop_tsc eagerfpu pni 
pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 popcnt tsc_deadline_timer aes avx f16c 
rdrand hypervisor lahf_lm
bugs            : null_seg
bogomips        : 4200.00
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:


-- 
see shy jo

Attachment: signature.asc
Description: PGP signature

Reply via email to