On Wed, 18 Nov 2020 00:29:43 +0100 Andreas Beckmann <a...@debian.org> wrote: > Control: tag -1 moreinfo unreproducible > > On Sat, 14 Nov 2020 10:41:26 -0700 Ryan Beethe > <letha.zamora02...@splintermail.com> 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.