[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Illegal Instruction on Debian 7 on QNAP TS-209 after upgrade



On Tue, Aug 05, 2014 at 02:44:05PM +0200, Ole Langbehn wrote:
> Recently (2014/7/25) I upgraded my debian 7 on my qnap TS209 box (see
> the attached apt output) and after installing some packages (libc, apt,
> ...), the installation fails with an Illegal Instruction signal. Shortly
> after I wasn't able to continue the update due to Illegal Instruction
> errors, but processes were running just fine. Now, a couple of days
> later, I can't login/ping the box (which is headless, so I don't have
> access to the console).

Well, without console, this is going to be challenge to debug :(
Either some non-armv5 instructions have slipped to the stable/security
updates of libc/dpkg, or your machine is breaking down.

> Is this a known error? What can I do to resolve this?

Not as far as I know - I was unable to reproduce it in a chroot on a ARMv5
machine. 

Best change to recover is probably to take backups from disk, reinstall
(and don't upgrade), and then create chroot and try to upgrade there -
if it fails under chroot, it is possible to attach debuggers and see
what instructions is SIGILing

> Cheers,
> 
> Ole

> root@nas:~# apt-get upgrade
> Reading package lists... Done
> Building dependency tree       
> Reading state information... Done
> The following packages will be upgraded:
>   apt apt-utils base-files cups cups-bsd cups-client cups-common cups-ppdc curl dbus dpkg dpkg-dev gnupg gnupg-agent gpgv imagemagick imagemagick-common libapt-inst1.5 libapt-pkg4.12 libc-bin libc-dev-bin libc6 libc6-dev libcups2 libcupscgi1 libcupsdriver1
>   libcupsimage2 libcupsmime1 libcupsppdc1 libcurl3 libcurl3-gnutls libcurl4-gnutls-dev libdbus-1-3 libdpkg-perl libgnutls-dev libgnutls-openssl27 libgnutls26 libgnutlsxx27 libjbig0 libjpeg8 liblcms2-2 libmagickcore5 libmagickcore5-extra libmagickwand5 libnspr4
>   libnss-winbind libopenjpeg2 libpam-winbind libsnmp-base libsnmp15 libssl-dev libssl-doc libssl1.0.0 libsvn-perl libsvn1 libwbclient0 libxfont1 libxml2 libxml2-dev linux-image-3.2.0-4-orion5x linux-libc-dev locales multiarch-support openssh-client openssh-server
>   openssl python-lxml python-subversion samba samba-common samba-common-bin samba-doc smbclient subversion subversion-tools swat transmission-cli transmission-common transmission-daemon tzdata winbind
> 81 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> Need to get 91.0 MB of archives.
> After this operation, 224 kB disk space will be freed.
> Do you want to continue [Y/n]? y
> Get:1 http://security.debian.org/ stable/updates/main libc-dev-bin armel 2.13-38+deb7u3 [223 kB]
> Get:2 http://ftp.de.debian.org/debian/ stable/main base-files armel 7.1wheezy6 [69.1 kB]
> Get:3 http://ftp.de.debian.org/debian/ stable/main dpkg armel 1.16.15 [2,595 kB]
> Get:4 http://security.debian.org/ stable/updates/main libc6-dev armel 2.13-38+deb7u3 [2,518 kB]
> Get:5 http://security.debian.org/ stable/updates/main libc-bin armel 2.13-38+deb7u3 [1,209 kB]
> Get:6 http://ftp.de.debian.org/debian/ stable/main libapt-pkg4.12 armel 0.9.7.9+deb7u2 [871 kB]
> Get:7 http://ftp.de.debian.org/debian/ stable/main gpgv armel 1.4.12-7+deb7u4 [206 kB]                                                                                                                                                                                        
> Get:8 http://security.debian.org/ stable/updates/main libc6 armel 2.13-38+deb7u3 [4,219 kB]                                                                                                                                                                                   
> Get:9 http://ftp.de.debian.org/debian/ stable/main gnupg armel 1.4.12-7+deb7u4 [1,902 kB]                                                                                                                                                                                     
> Get:10 http://ftp.de.debian.org/debian/ stable/main apt armel 0.9.7.9+deb7u2 [1,244 kB]                                                                                                                                                                                       
> Get:11 http://ftp.de.debian.org/debian/ stable/main libapt-inst1.5 armel 0.9.7.9+deb7u2 [164 kB]                                                                                                                                                                              
> Get:12 http://ftp.de.debian.org/debian/ stable/main libssl-doc all 1.0.1e-2+deb7u11 [1,198 kB]                                                                                                                                                                                
> Get:13 http://security.debian.org/ stable/updates/main linux-libc-dev armel 3.2.60-1+deb7u1 [806 kB]                                                                                                                                                                          
> Get:14 http://security.debian.org/ stable/updates/main libxml2-dev armel 2.8.0+dfsg1-7+wheezy1 [841 kB]                                                                                                                                                                       
> Get:15 http://ftp.de.debian.org/debian/ stable/main libssl-dev armel 1.0.1e-2+deb7u11 [1,522 kB]                                                                                                                                                                              
> Get:16 http://security.debian.org/ stable/updates/main libxml2 armel 2.8.0+dfsg1-7+wheezy1 [825 kB]                                                                                                                                                                           
> Get:17 http://ftp.de.debian.org/debian/ stable/main libssl1.0.0 armel 1.0.1e-2+deb7u11 [1,052 kB]                                                                                                                                                                             
> Get:18 http://security.debian.org/ stable/updates/main linux-image-3.2.0-4-orion5x armel 3.2.60-1+deb7u1 [15.0 MB]                                                                                                                                                            
> Get:19 http://ftp.de.debian.org/debian/ stable/main libgnutls-dev armel 2.12.20-8+deb7u2 [708 kB]                                                                                                                                                                             
> Get:20 http://ftp.de.debian.org/debian/ stable/main libgnutlsxx27 armel 2.12.20-8+deb7u2 [219 kB]                                                                                                                                                                             
> Get:21 http://ftp.de.debian.org/debian/ stable/main libgnutls-openssl27 armel 2.12.20-8+deb7u2 [217 kB]                                                                                                                                                                       
> Get:22 http://ftp.de.debian.org/debian/ stable/main libgnutls26 armel 2.12.20-8+deb7u2 [595 kB]                                                                                                                                                                               
> Get:23 http://ftp.de.debian.org/debian/ stable/main libjpeg8 armel 8d-1+deb7u1 [152 kB]                                                                                                                                                                                       
> Get:24 http://ftp.de.debian.org/debian/ stable/main libcupsimage2 armel 1.5.3-5+deb7u2 [135 kB]                                                                                                                                                                               
> Get:25 http://ftp.de.debian.org/debian/ stable/main libcupsppdc1 armel 1.5.3-5+deb7u2 [137 kB]                                                                                                                                                                                
> Get:26 http://ftp.de.debian.org/debian/ stable/main libcupscgi1 armel 1.5.3-5+deb7u2 [114 kB]                                                                                                                                                                                 
> Get:27 http://ftp.de.debian.org/debian/ stable/main libcupsdriver1 armel 1.5.3-5+deb7u2 [107 kB]                                                                                                                                                                              
> Get:28 http://ftp.de.debian.org/debian/ stable/main libcupsmime1 armel 1.5.3-5+deb7u2 [96.9 kB]                                                                                                                                                                               
> Get:29 http://ftp.de.debian.org/debian/ stable/main cups-common all 1.5.3-5+deb7u2 [903 kB]                                                                                                                                                                                   
> Get:30 http://ftp.de.debian.org/debian/ stable/main cups-bsd armel 1.5.3-5+deb7u2 [46.0 kB]                                                                                                                                                                                   
> Get:31 http://ftp.de.debian.org/debian/ stable/main cups-client armel 1.5.3-5+deb7u2 [179 kB]                                                                                                                                                                                 
> Get:32 http://ftp.de.debian.org/debian/ stable/main cups armel 1.5.3-5+deb7u2 [1,409 kB]                                                                                                                                                                                      
> Get:33 http://ftp.de.debian.org/debian/ stable/main libcups2 armel 1.5.3-5+deb7u2 [241 kB]                                                                                                                                                                                    
> Get:34 http://ftp.de.debian.org/debian/ stable/main libdbus-1-3 armel 1.6.8-1+deb7u3 [154 kB]                                                                                                                                                                                 
> Get:35 http://ftp.de.debian.org/debian/ stable/main cups-ppdc armel 1.5.3-5+deb7u2 [116 kB]                                                                                                                                                                                   
> Get:36 http://ftp.de.debian.org/debian/ stable/main imagemagick-common all 8:6.7.7.10-5+deb7u3 [128 kB]                                                                                                                                                                       
> Get:37 http://ftp.de.debian.org/debian/ stable/main curl armel 7.26.0-1+wheezy9 [269 kB]                                                                                                                                                                                      
> Get:38 http://ftp.de.debian.org/debian/ stable/main libcurl3 armel 7.26.0-1+wheezy9 [316 kB]                                                                                                                                                                                  
> Get:39 http://ftp.de.debian.org/debian/ stable/main libcurl4-gnutls-dev armel 7.26.0-1+wheezy9 [1,221 kB]                                                                                                                                                                     
> Get:40 http://ftp.de.debian.org/debian/ stable/main libcurl3-gnutls armel 7.26.0-1+wheezy9 [307 kB]                                                                                                                                                                           
> Get:41 http://ftp.de.debian.org/debian/ stable/main liblcms2-2 armel 2.2+git20110628-2.2+deb7u1 [129 kB]                                                                                                                                                                      
> Get:42 http://ftp.de.debian.org/debian/ stable/main libmagickwand5 armel 8:6.7.7.10-5+deb7u3 [515 kB]                                                                                                                                                                         
> Get:43 http://security.debian.org/ stable/updates/main transmission-cli armel 2.52-3+nmu2 [1,045 kB]                                                                                                                                                                          
> Get:44 http://ftp.de.debian.org/debian/ stable/main libmagickcore5-extra armel 8:6.7.7.10-5+deb7u3 [172 kB]                                                                                                                                                                   
> Get:45 http://ftp.de.debian.org/debian/ stable/main libjbig0 armel 2.0-2+deb7u1 [31.3 kB]                                                                                                                                                                                     
> Get:46 http://ftp.de.debian.org/debian/ stable/main libmagickcore5 armel 8:6.7.7.10-5+deb7u3 [2,294 kB]                                                                                                                                                                       
> Get:47 http://security.debian.org/ stable/updates/main transmission-daemon armel 2.52-3+nmu2 [213 kB]                                                                                                                                                                         
> Get:48 http://security.debian.org/ stable/updates/main transmission-common all 2.52-3+nmu2 [291 kB]                                                                                                                                                                           
> Get:49 http://security.debian.org/ stable/updates/main multiarch-support armel 2.13-38+deb7u3 [151 kB]                                                                                                                                                                        
> Get:50 http://security.debian.org/ stable/updates/main locales all 2.13-38+deb7u3 [5,657 kB]                                                                                                                                                                                  
> Get:51 http://ftp.de.debian.org/debian/ stable/main libnspr4 armel 2:4.9.2-1+deb7u2 [120 kB]                                                                                                                                                                                  
> Get:52 http://ftp.de.debian.org/debian/ stable/main libnss-winbind armel 2:3.6.6-6+deb7u4 [479 kB]                                                                                                                                                                            
> Get:53 http://ftp.de.debian.org/debian/ stable/main libpam-winbind armel 2:3.6.6-6+deb7u4 [98.2 kB]                                                                                                                                                                           
> Get:54 http://ftp.de.debian.org/debian/ stable/main winbind armel 2:3.6.6-6+deb7u4 [2,141 kB]                                                                                                                                                                                 
> Get:55 http://ftp.de.debian.org/debian/ stable/main samba armel 2:3.6.6-6+deb7u4 [3,376 kB]                                                                                                                                                                                   
> Get:56 http://ftp.de.debian.org/debian/ stable/main libwbclient0 armel 2:3.6.6-6+deb7u4 [92.0 kB]                                                                                                                                                                             
> Get:57 http://ftp.de.debian.org/debian/ stable/main swat armel 2:3.6.6-6+deb7u4 [1,468 kB]                                                                                                                                                                                    
> Get:58 http://ftp.de.debian.org/debian/ stable/main smbclient armel 2:3.6.6-6+deb7u4 [4,524 kB]                                                                                                                                                                               
> Get:59 http://ftp.de.debian.org/debian/ stable/main samba-common all 2:3.6.6-6+deb7u4 [214 kB]                                                                                                                                                                                
> Get:60 http://ftp.de.debian.org/debian/ stable/main libopenjpeg2 armel 1.3+dfsg-4.8 [79.5 kB]                                                                                                                                                                                 
> Get:61 http://ftp.de.debian.org/debian/ stable/main subversion armel 1.6.17dfsg-4+deb7u6 [1,302 kB]                                                                                                                                                                           
> Get:62 http://ftp.de.debian.org/debian/ stable/main libsvn1 armel 1.6.17dfsg-4+deb7u6 [798 kB]                                                                                                                                                                                
> Get:63 http://ftp.de.debian.org/debian/ stable/main libsvn-perl armel 1.6.17dfsg-4+deb7u6 [1,032 kB]                                                                                                                                                                          
> Get:64 http://ftp.de.debian.org/debian/ stable/main python-subversion armel 1.6.17dfsg-4+deb7u6 [1,115 kB]                                                                                                                                                                    
> Get:65 http://ftp.de.debian.org/debian/ stable/main samba-common-bin armel 2:3.6.6-6+deb7u4 [2,733 kB]                                                                                                                                                                        
> Get:66 http://ftp.de.debian.org/debian/ stable/main samba-doc all 2:3.6.6-6+deb7u4 [5,764 kB]                                                                                                                                                                                 
> Get:67 http://ftp.de.debian.org/debian/ stable/main tzdata all 2014e-0wheezy1 [458 kB]                                                                                                                                                                                        
> Get:68 http://ftp.de.debian.org/debian/ stable/main apt-utils armel 0.9.7.9+deb7u2 [375 kB]                                                                                                                                                                                   
> Get:69 http://ftp.de.debian.org/debian/ stable/main openssh-server armel 1:6.0p1-4+deb7u2 [316 kB]                                                                                                                                                                            
> Get:70 http://ftp.de.debian.org/debian/ stable/main openssh-client armel 1:6.0p1-4+deb7u2 [961 kB]                                                                                                                                                                            
> Get:71 http://ftp.de.debian.org/debian/ stable/main dbus armel 1.6.8-1+deb7u3 [352 kB]                                                                                                                                                                                        
> Get:72 http://ftp.de.debian.org/debian/ stable/main dpkg-dev all 1.16.15 [1,356 kB]                                                                                                                                                                                           
> Get:73 http://ftp.de.debian.org/debian/ stable/main libdpkg-perl all 1.16.15 [958 kB]                                                                                                                                                                                         
> Get:74 http://ftp.de.debian.org/debian/ stable/main gnupg-agent armel 2.0.19-2+deb7u2 [418 kB]                                                                                                                                                                                
> Get:75 http://ftp.de.debian.org/debian/ stable/main imagemagick armel 8:6.7.7.10-5+deb7u3 [285 kB]                                                                                                                                                                            
> Get:76 http://ftp.de.debian.org/debian/ stable/main libsnmp-base all 5.4.3~dfsg-2.8 [1,101 kB]                                                                                                                                                                                
> Get:77 http://ftp.de.debian.org/debian/ stable/main libsnmp15 armel 5.4.3~dfsg-2.8 [2,162 kB]                                                                                                                                                                                 
> Get:78 http://ftp.de.debian.org/debian/ stable/main libxfont1 armel 1:1.4.5-4 [152 kB]                                                                                                                                                                                        
> Get:79 http://ftp.de.debian.org/debian/ stable/main openssl armel 1.0.1e-2+deb7u11 [703 kB]                                                                                                                                                                                   
> Get:80 http://ftp.de.debian.org/debian/ stable/main python-lxml armel 2.3.2-1+deb7u1 [1,182 kB]                                                                                                                                                                               
> Get:81 http://ftp.de.debian.org/debian/ stable/main subversion-tools all 1.6.17dfsg-4+deb7u6 [221 kB]                                                                                                                                                                         
> Fetched 91.0 MB in 1min 44s (867 kB/s)                                                                                                                                                                                                                                        
> Reading changelogs... Done
> Extracting templates from packages: 100%
> Preconfiguring packages ...
> (Reading database ... 55686 files and directories currently installed.)
> Preparing to replace base-files 7.1wheezy4 (using .../base-files_7.1wheezy6_armel.deb) ...
> Unpacking replacement base-files ...
> Processing triggers for man-db ...
> Processing triggers for install-info ...
> Setting up base-files (7.1wheezy6) ...
> Installing new version of config file /etc/debian_version ...
> (Reading database ... 55686 files and directories currently installed.)
> Preparing to replace dpkg 1.16.12 (using .../dpkg_1.16.15_armel.deb) ...
> Unpacking replacement dpkg ...
> Processing triggers for man-db ...
> Setting up dpkg (1.16.15) ...
> (Reading database ... 55687 files and directories currently installed.)
> Preparing to replace libc-dev-bin 2.13-38+deb7u1 (using .../libc-dev-bin_2.13-38+deb7u3_armel.deb) ...
> Unpacking replacement libc-dev-bin ...
> Preparing to replace libc6-dev:armel 2.13-38+deb7u1 (using .../libc6-dev_2.13-38+deb7u3_armel.deb) ...
> Unpacking replacement libc6-dev:armel ...
> Preparing to replace libc-bin 2.13-38+deb7u1 (using .../libc-bin_2.13-38+deb7u3_armel.deb) ...
> Unpacking replacement libc-bin ...
> Processing triggers for man-db ...
> Setting up libc-bin (2.13-38+deb7u3) ...
> (Reading database ... 55686 files and directories currently installed.)
> Preparing to replace libc6:armel 2.13-38+deb7u1 (using .../libc6_2.13-38+deb7u3_armel.deb) ...
> Unpacking replacement libc6:armel ...
> Setting up libc6:armel (2.13-38+deb7u3) ...
> (Reading database ... 55686 files and directories currently installed.)
> Preparing to replace linux-libc-dev:armel 3.2.54-2 (using .../linux-libc-dev_3.2.60-1+deb7u1_armel.deb) ...
> Unpacking replacement linux-libc-dev:armel ...
> Preparing to replace libapt-pkg4.12:armel 0.9.7.9+deb7u1 (using .../libapt-pkg4.12_0.9.7.9+deb7u2_armel.deb) ...
> Unpacking replacement libapt-pkg4.12:armel ...
> Setting up libapt-pkg4.12:armel (0.9.7.9+deb7u2) ...
> (Reading database ... 55688 files and directories currently installed.)
> Preparing to replace gpgv 1.4.12-7+deb7u3 (using .../gpgv_1.4.12-7+deb7u4_armel.deb) ...
> Unpacking replacement gpgv ...
> Processing triggers for man-db ...
> Setting up gpgv (1.4.12-7+deb7u4) ...
> dpkg: error processing /var/cache/apt/archives/gnupg_1.4.12-7+deb7u4_armel.deb (--unpack):
>  subprocess dpkg-split was killed by signal (Illegal instruction)
> Errors were encountered while processing:
>  /var/cache/apt/archives/gnupg_1.4.12-7+deb7u4_armel.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)




Reply to: