Bug#828779: Illegal instruction: me too

2016-08-07 Thread Luca BRUNO
tag 828779 + confirmed
thanks

On Saturday 06 August 2016 15:44:42 Joey Hess wrote:

> Package: libargon2-0
> Version: 0~20160406-2
> Severity: normal
> 
> Both the command line program argon2 and the library fail with SIGILL on
> my laptop.

It seems to SIGILL on an XOP opcode:
```
Thread 2 "argon2" received signal SIGILL, Illegal instruction.
[Switching to Thread 0x77419700 (LWP 4337)]
0x00406aaf in ?? ()
(gdb) x/i $pc
=> 0x7790230d :  mov%rax,%rdi
(gdb) x/i 0x00406aaf
   0x406aaf:vprotq $0x20,%xmm1,%xmm1
```

I guess this is leaking into final binary due to the use of -march=native for 
blake optimizations.

Options are:
 1) Build without optimizations
 2) Tweak -march

I'd go for 2), but I have to take a better look at what should be the correct 
portable -march target. DEB_TARGET_GNU_CPU perhaps?

Cheers, Luca

-- 
«Доверяй, но проверяй»


signature.asc
Description: This is a digitally signed message part.


Bug#828779: Illegal instruction: me too

2016-08-06 Thread Joey Hess
Package: libargon2-0
Version: 0~20160406-2
Severity: normal

Both the command line program argon2 and the library fail with SIGILL on
my laptop.

processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model   : 69
model name  : Intel(R) Core(TM) i5-4210Y CPU @ 1.50GHz
stepping: 1
microcode   : 0x14
cpu MHz : 1507.148
cache size  : 3072 KB
physical id : 0
siblings: 4
core id : 0
cpu cores   : 2
apicid  : 0
initial apicid  : 0
fpu : yes
fpu_exception   : yes
cpuid level : 13
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb 
rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology 
nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 
ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt 
tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi 
flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid 
xsaveopt dtherm ida arat pln pts
bugs:
bogomips: 2992.96
clflush size: 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

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

Versions of packages libargon2-0 depends on:
ii  libc6  2.23-4

libargon2-0 recommends no packages.

libargon2-0 suggests no packages.

-- no debconf information

-- 
see shy jo


signature.asc
Description: PGP signature