Bug#974754: libjbig0: invalid ELF header when loading libjbig.so.0
On Wed, 18 Nov 2020 00:29:43 +0100 Andreas Beckmann wrote: > Control: tag -1 moreinfo unreproducible > > On Sat, 14 Nov 2020 10:41:26 -0700 Ryan Beethe > wrote: > > I use libjbig indirectly through the php-gd package. When running php > > from the command line, I get the following error: > > > > PHP Warning: PHP Startup: Unable to load dynamic library 'gd.so' > > (tried: /usr/lib/php/20180731/gd.so > > (/usr/lib/x86_64-linux-gnu/libjbig.so.0: invalid ELF header), > > /usr/lib/php/20180731/gd.so.so (/usr/lib/php/20180731/gd.so.so: cannot > > open shared object file: No such file or directory)) in Unknown on line > > 0 > > I cannot reproduce this in a buster amd64 chroot > unless I manually corrupt libjbig.so.0 > > > I was able to fix my system by recompiling the source (with the patches > > from the debian package) and overriding the broken library with the > > recompiled one. > > Do you still have the old file around? > Could the libjbig.so.0 library have been corrupted locally? > > Size, timestamp and SHA256 sum of the library in shipped in > libjbig0_2.1-3.1+b2_amd64.deb: > > -rw-r--r-- 1 root root 58384 Oct 13 2014 > /usr/lib/x86_64-linux-gnu/libjbig.so.0 > b30cd8bd3956a27819bc0761218d5fa21c59e7e1b5f41f9d7f50f44ba69885d5 > /usr/lib/x86_64-linux-gnu/libjbig.so.0 > > Andreas > > Sorry for the delayed response. I seem to also be unable to reproduce this on the production machine where I originally observed it, which is weird because a portion of my website was definitely not working (that's how I found it). My libjbig.so.0 file there is identical to yours: -rw-r--r-- 1 root root 58384 Oct 13 2014 /usr/lib/x86_64-linux-gnu/libjbig.so.0 b30cd8bd3956a27819bc0761218d5fa21c59e7e1b5f41f9d7f50f44ba69885d5 /usr/lib/x86_64-linux-gnu/libjbig.so.0 And I certainly had not altered it before I observed the error. At the time, even `LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjbig.so.0 cat` would fail. I fixed it by recompiling the library and altering `LD_LIBRARY_PATH` so as to prefer the recompiled library. I am still able to reproduce this on my testbed server, although whatever I did trying to fix this there seems to have toasted the libjbig0 package... I can't even uninstall it now. I don't think that has anything to do with the bug at all though. I am fine closing this issue, sorry for the noise.
Bug#974754: libjbig0: invalid ELF header when loading libjbig.so.0
Control: tag -1 moreinfo unreproducible On Sat, 14 Nov 2020 10:41:26 -0700 Ryan Beethe wrote: > I use libjbig indirectly through the php-gd package. When running php > from the command line, I get the following error: > > PHP Warning: PHP Startup: Unable to load dynamic library 'gd.so' > (tried: /usr/lib/php/20180731/gd.so > (/usr/lib/x86_64-linux-gnu/libjbig.so.0: invalid ELF header), > /usr/lib/php/20180731/gd.so.so (/usr/lib/php/20180731/gd.so.so: cannot > open shared object file: No such file or directory)) in Unknown on line > 0 I cannot reproduce this in a buster amd64 chroot unless I manually corrupt libjbig.so.0 > I was able to fix my system by recompiling the source (with the patches > from the debian package) and overriding the broken library with the > recompiled one. Do you still have the old file around? Could the libjbig.so.0 library have been corrupted locally? Size, timestamp and SHA256 sum of the library in shipped in libjbig0_2.1-3.1+b2_amd64.deb: -rw-r--r-- 1 root root 58384 Oct 13 2014 /usr/lib/x86_64-linux-gnu/libjbig.so.0 b30cd8bd3956a27819bc0761218d5fa21c59e7e1b5f41f9d7f50f44ba69885d5 /usr/lib/x86_64-linux-gnu/libjbig.so.0 Andreas
Bug#974754: libjbig0: invalid ELF header when loading libjbig.so.0
Package: libjbig0 Version: 2.1-3.1+b2 Severity: grave Justification: renders package unusable Dear Maintainer, I use libjbig indirectly through the php-gd package. When running php from the command line, I get the following error: PHP Warning: PHP Startup: Unable to load dynamic library 'gd.so' (tried: /usr/lib/php/20180731/gd.so (/usr/lib/x86_64-linux-gnu/libjbig.so.0: invalid ELF header), /usr/lib/php/20180731/gd.so.so (/usr/lib/php/20180731/gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 I was able to fix my system by recompiling the source (with the patches from the debian package) and overriding the broken library with the recompiled one. I'm not actually sure what could cause this or even how long it has been broken. -- System Information: Debian Release: 10.4 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-9-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages libjbig0 depends on: ii libc6 2.28-10 libjbig0 recommends no packages. libjbig0 suggests no packages. -- no debconf information