[Pkg-zsh-devel] Bug#993843: Bug#993843: zsh-static segfaults immediately

Axel Beckert abe at debian.org
Wed Sep 8 23:14:58 BST 2021


Control: severity -1 important

Hi,

Vincent: Thanks for discovering the issue with a statically compiled
binary loading a dynamic library.

Lowering the severity again.

Vincent Lefevre wrote:
> > Please forgive my ignorange in the automated test suites, but perhaps for a
> > future test, would verifying the expected exit status of these commands help
> > intercept this (and any other) weird problem?  :-)
> > 
> >   zsh-static -f -c "exit 0"
> >   zsh-static -f -c "exit 1"
> 
> No, this wouldn't help, because the libc6 version zsh-static has
> been compiled against would be the same as the one for the test.

Of course this will help! The tests are not just run at build time.
The tests are also regularily run against zsh "as installed" via
autopkgtest. See https://ci.debian.net/packages/z/zsh/

> > For comparison, busybox is statically linked:
> > 
> > > strace /bin/busybox -f -c "exit 0" 2>&1 | grep
> > > '^open[a-zA-Z0-9_]*(.*"[^"]*lib.*\.so\>[^"]*"' echo $?
> > 1
> 
> busybox is dynamically linked:

You're both right — depending which busybox-built package you've
isntalled: "busybox" or "busybox-static".

		Regards, Axel
-- 
 ,''`.  |  Axel Beckert <abe at debian.org>, https://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE



More information about the Pkg-zsh-devel mailing list