Raspbian update on 2017-06-25 breaks anything using blas on RPi1

Bug #1700510 reported by Max
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Raspbian
New
Undecided
Unassigned

Bug Description

Latest raspbian update (using the following commands)
aptitude update; aptitude full-upgrade
(see log way down below)
broke all of my plotting stuff (which uses octave and/or numpy with matplotlib), which bombs with 'Illegal instruction' like this:

>>> plt.plot((data[:,6]-data[0,6])/3600, data[:,4], linewidth=1.0)
--- SIGILL {si_signo=SIGILL, si_code=ILL_ILLOPC, si_addr=0xb60cee5c} ---
+++ killed by SIGILL +++
Illegal instruction

I traced it to the lapack/blas packackes with 'bpo' in their version string.
[UPGRADE] libblas-common:armhf 1.2.20110419-10 -> 3.7.0-1~bpo8+1
[UPGRADE] libblas3:armhf 1.2.20110419-10 -> 3.7.0-1~bpo8+1
[UPGRADE] liblapack3:armhf 3.5.0-4 -> 3.7.0-1~bpo8+1
[UPGRADE] libopenblas-base:armhf 0.2.12-1+rpi1 -> 0.2.19-2~bpo8+1

This is on a Raspberry Pi1. Not sure if other versions are affected.

I fixed it as follows downgrading to previous versions:

apt-get install libblas3=1.2.20110419-10
apt-get install libblas-common=1.2.20110419-10
apt-get install liblapack3=3.5.0-4
apt-get install libopenblas-base=0.2.12-1

Something is wrong with the update. Please fix.
Thanks,
Max

Will install 99 packages, and remove 0 packages.
4,470 kB of disk space will be used
===============================================================================
[UPGRADE] bind9-host:armhf 1:9.9.5.dfsg-9+deb8u10 -> 1:9.9.5.dfsg-9+deb8u11
[UPGRADE] cups-browsed:armhf 1.0.61-5+deb8u3 -> 1.0.61-5+deb8u3+rpi1
[UPGRADE] cups-filters:armhf 1.0.61-5+deb8u3 -> 1.0.61-5+deb8u3+rpi1
[UPGRADE] cups-filters-core-drivers:armhf 1.0.61-5+deb8u3 -> 1.0.61-5+deb8u3+rpi1
[UPGRADE] deluge-common:armhf 1.3.10-3 -> 1.3.10-3+deb8u1
[UPGRADE] dnsutils:armhf 1:9.9.5.dfsg-9+deb8u10 -> 1:9.9.5.dfsg-9+deb8u11
[UPGRADE] git:armhf 1:2.1.4-2.1+deb8u2 -> 1:2.1.4-2.1+deb8u3
[UPGRADE] git-core:armhf 1:2.1.4-2.1+deb8u2 -> 1:2.1.4-2.1+deb8u3
[UPGRADE] git-man:armhf 1:2.1.4-2.1+deb8u2 -> 1:2.1.4-2.1+deb8u3
[UPGRADE] imagemagick-common:armhf 8:6.8.9.9-5+deb8u8 -> 8:6.8.9.9-5+deb8u9
[UPGRADE] kdelibs-bin:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] kdelibs5-data:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] kdelibs5-plugins:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] kdoctools:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libbind9-90:armhf 1:9.9.5.dfsg-9+deb8u10 -> 1:9.9.5.dfsg-9+deb8u11
[UPGRADE] libblas-common:armhf 1.2.20110419-10 -> 3.7.0-1~bpo8+1
[UPGRADE] libblas3:armhf 1.2.20110419-10 -> 3.7.0-1~bpo8+1
[UPGRADE] libc-bin:armhf 2.19-18+deb8u9 -> 2.19-18+deb8u10
[UPGRADE] libc-dev-bin:armhf 2.19-18+deb8u9 -> 2.19-18+deb8u10
[UPGRADE] libc6:armhf 2.19-18+deb8u9 -> 2.19-18+deb8u10
[UPGRADE] libc6-dbg:armhf 2.19-18+deb8u9 -> 2.19-18+deb8u10
[UPGRADE] libc6-dev:armhf 2.19-18+deb8u9 -> 2.19-18+deb8u10
[UPGRADE] libcupsfilters1:armhf 1.0.61-5+deb8u3 -> 1.0.61-5+deb8u3+rpi1
[UPGRADE] libdns-export100:armhf 1:9.9.5.dfsg-9+deb8u10 -> 1:9.9.5.dfsg-9+deb8u11
[UPGRADE] libdns100:armhf 1:9.9.5.dfsg-9+deb8u10 -> 1:9.9.5.dfsg-9+deb8u11
[UPGRADE] libffi6:armhf 3.1-2 -> 3.1-2+deb8u1
[UPGRADE] libfontembed1:armhf 1.0.61-5+deb8u3 -> 1.0.61-5+deb8u3+rpi1
[UPGRADE] libgcrypt20:armhf 1.6.3-2+deb8u2 -> 1.6.3-2+deb8u3
[UPGRADE] libgnutls-deb0-28:armhf 3.3.8-6+deb8u5 -> 3.3.8-6+deb8u6
[UPGRADE] libgnutls-openssl27:armhf 3.3.8-6+deb8u5 -> 3.3.8-6+deb8u6
[UPGRADE] libgraphite2-3:armhf 1.3.6-1~deb8u1 -> 1.3.10-1~deb8u1
[UPGRADE] libirs-export91:armhf 1:9.9.5.dfsg-9+deb8u10 -> 1:9.9.5.dfsg-9+deb8u11
[UPGRADE] libisc-export95:armhf 1:9.9.5.dfsg-9+deb8u10 -> 1:9.9.5.dfsg-9+deb8u11
[UPGRADE] libisc95:armhf 1:9.9.5.dfsg-9+deb8u10 -> 1:9.9.5.dfsg-9+deb8u11
[UPGRADE] libisccc90:armhf 1:9.9.5.dfsg-9+deb8u10 -> 1:9.9.5.dfsg-9+deb8u11
[UPGRADE] libisccfg-export90:armhf 1:9.9.5.dfsg-9+deb8u10 -> 1:9.9.5.dfsg-9+deb8u11
[UPGRADE] libisccfg90:armhf 1:9.9.5.dfsg-9+deb8u10 -> 1:9.9.5.dfsg-9+deb8u11
[UPGRADE] libjbig2dec0:armhf 0.13-4~deb8u1 -> 0.13-4~deb8u2
[UPGRADE] libkcmutils4:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libkde3support4:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libkdeclarative5:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libkdecore5:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libkdesu5:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libkdeui5:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libkdewebkit5:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libkdnssd4:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libkemoticons4:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libkfile4:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libkhtml5:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libkio5:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libkjsapi4:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libkjsembed4:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libkmediaplayer4:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libknewstuff3-4:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libknotifyconfig4:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libkntlm4:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libkparts4:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libkpty4:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libkrosscore4:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libktexteditor4:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] liblapack3:armhf 3.5.0-4 -> 3.7.0-1~bpo8+1
[UPGRADE] liblwres90:armhf 1:9.9.5.dfsg-9+deb8u10 -> 1:9.9.5.dfsg-9+deb8u11
[UPGRADE] libmagick++-6.q16-5:armhf 8:6.8.9.9-5+deb8u8 -> 8:6.8.9.9-5+deb8u9
[UPGRADE] libmagickcore-6.q16-2:armhf 8:6.8.9.9-5+deb8u8 -> 8:6.8.9.9-5+deb8u9
[UPGRADE] libmagickwand-6.q16-2:armhf 8:6.8.9.9-5+deb8u8 -> 8:6.8.9.9-5+deb8u9
[UPGRADE] libmysqlclient18:armhf 5.5.54-0+deb8u1 -> 5.5.55-0+deb8u1
[UPGRADE] libnepomuk4:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libnepomukquery4a:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libnepomukutils4:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libnss3:armhf 2:3.26-1+debu8u1 -> 2:3.26-1+debu8u2
[UPGRADE] libopenblas-base:armhf 0.2.12-1+rpi1 -> 0.2.19-2~bpo8+1
[UPGRADE] libplasma3:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libraspberrypi-bin:armhf 1.20170427-1 -> 1.20170515-1
[UPGRADE] libraspberrypi-dev:armhf 1.20170427-1 -> 1.20170515-1
[UPGRADE] libraspberrypi-doc:armhf 1.20170427-1 -> 1.20170515-1
[UPGRADE] libraspberrypi0:armhf 1.20170427-1 -> 1.20170515-1
[UPGRADE] librtmp1:armhf 2.4+20150115.gita107cef-1 -> 2.4+20150115.gita107cef-1+deb8u1
[UPGRADE] libsmbclient:armhf 2:4.2.14+dfsg-0+deb8u5 -> 2:4.2.14+dfsg-0+deb8u6
[UPGRADE] libsolid4:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libtasn1-6:armhf 4.2-3+deb8u2 -> 4.2-3+deb8u3
[UPGRADE] libthreadweaver4:armhf 4:4.14.2-5+deb8u1 -> 4:4.14.2-5+deb8u2
[UPGRADE] libwbclient0:armhf 2:4.2.14+dfsg-0+deb8u5 -> 2:4.2.14+dfsg-0+deb8u6
[UPGRADE] locales:armhf 2.19-18+deb8u9 -> 2.19-18+deb8u10
[UPGRADE] login:armhf 1:4.2-3+deb8u3 -> 1:4.2-3+deb8u4
[UPGRADE] lxpanel-data:armhf 0.7.2-1+rpi19 -> 0.7.2-1+rpi20

Revision history for this message
peter green (plugwash) wrote :

I suspect that the raspberry pi foundation are responsible for this.

What is the output of "apt-cache policy libblas-common"

Revision history for this message
Max (spinflipper) wrote :

Below is what I get. Am I correct to suspect something going on with processor versions? Will the RPi1 stop being supported soon? Or can I safely upgrade an RPi1 setup to stretch?
Best regards,
Max

root@raspberrypi:~# apt-cache policy libblas-common
libblas-common:
  Installed: 1.2.20110419-10
  Candidate: 3.7.0-1~bpo8+1
  Version table:
     3.7.0-1~bpo8+1 0
        500 http://archive.raspberrypi.org/debian/ jessie/main armhf Packages
 *** 1.2.20110419-10 0
        500 http://mirrordirector.raspbian.org/raspbian/ jessie/main armhf Packages
        100 /var/lib/dpkg/status
root@raspberrypi:~#

Revision history for this message
peter green (plugwash) wrote :

That confirms my suspicion that the responsible package came from the raspberry pi foundation's repo.

Do you have a minimal testcase for this?

Revision history for this message
Max (spinflipper) wrote :

I could trigger it with any plotting either in python or in octave

import numpy as np
import matplotlib.pyplot as plt
data = np.loadtxt('sensordata.txt');
plt.plot((data[:,6]-data[0,6])/3600, data[:,4], linewidth=0.5)

would crash on plt.plot with illegal instruction. I guess as soon as it touches any of the blas lib code.
Same from octave, any plotting led to crash.

Best regards,
Max

Revision history for this message
Max (spinflipper) wrote :

Is Raspbian taking this seriously? It looks like some packets have not been compiled for the right platforms (not working on RPi1 by the looks). Is the RPi1 now considered unsupported?

Regards,
Max

Revision history for this message
peter green (plugwash) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.