Package: libpsm2-2
Version: 11.2.185-2.1

applications using openMPI which in turn uses libpsm2-2 fail with
"SIGILL, Illegal instruction".

The reason is that libpsm2 detects support for AVX instructions itself.
Hence, a package build on a system with newer processors will not run on
older hardware.

The following example is from Intel(R) Xeon(R) CPU X5670 (Westmere):

Thread 1 "DAMASK_test" received signal SIGILL, Illegal instruction.
0x00000897b3c84251 in ?? () from /usr/lib/x86_64-linux-gnu/libpsm2.so.2
(gdb) backtrace
#0  0x00000897b3c84251 in ?? () from /usr/lib/x86_64-linux-
gnu/libpsm2.so.2
#1  0x00000897bc43c7cf in call_init (l=<optimized out>,
argc=argc@entry=1, argv=argv@entry=0x7fff5b725e28,
env=env@entry=0x7fff5b725e38) at ./elf/dl-init.c:74
#2  0x00000897bc43c8e4 in call_init (l=<optimized out>, argc=<optimized
out>, argv=<optimized out>, env=<optimized out>) at ./elf/dl-init.c:120
#3  _dl_init (main_map=0x897bc4742e0, argc=1, argv=0x7fff5b725e28,
env=0x7fff5b725e38) at ./elf/dl-init.c:121
#4  0x00000897bc4593a0 in _dl_start_user () from /lib64/ld-linux-x86-
64.so.2
#5  0x0000000000000001 in ?? ()
#6  0x00007fff5b7271ee in ?? ()
#7  0x0000000000000000 in ??


The AVX detection is done in buildflags.mak

There is a bug report for the Ubuntu package, which is a rebuildĀ 
of the Debian package
https://bugs.launchpad.net/ubuntu/+source/libpsm2/+bug/2111536

Note: I've encountered this on Ubuntu 26.04


-- 
KU Leuven
Department of Computer Science
Department of Materials Engineering
Celestijnenlaan 200a
3001 Leuven, Belgium

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

Reply via email to