Package: musl Version: 1.1.16-2 Severity: normal Tags: upstream Musl package on Debian on ppc64le is broken.
When running any software with it, it segfaults. Doing a little bit of debugging I found that libc.so is broken. I got the upstream code, and found that the problme is also reproducible. I found that the problem only happen when compiling with -O2 and -O3. If I compile musl with -O1 or -O0, the problm does not happen. This is the bt of the code that crashes: (gdb) bt #0 0x0000000148b84dc0 in ?? () #1 0x0000000048bdb8dc in _dlstart_c (sp=0x3fffc33294b0, dynv=<optimized out>) at ldso/dlstart.c:147 #2 0x0000000048bdebe0 in _dlstart () (gdb) up #1 0x0000000048bdb8dc in _dlstart_c (sp=0x3fffc33294b0, dynv=<optimized out>) at ldso/dlstart.c:147 147 dls2((void *)base, sp); $ gcc --version gcc (Debian 6.3.0-5) 6.3.0 20170124 My suggestion would be to use -O1 at this moment for ppc64el. I can create the patch if you wish. Upstream bug: http://www.openwall.com/lists/musl/2017/03/07/2 -- System Information: Debian Release: 9.0 APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: ppc64el (ppc64le) Foreign Architectures: powerpc Kernel: Linux 4.8.0-1-powerpc64le (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) -- no debconf information