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

2021-09-08 Thread Axel Beckert
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 ve

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

2021-09-07 Thread David
On Tue, Sep 07, 2021 at 12:23:38PM +0200, Axel Beckert wrote: ... David wrote: ... Sorry for the trouble. I (and the tests) admittedly only test the non-static zsh. And except for some special lookups known to be not possible with static compiled binaries, I also don't expect any difference in

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

2021-09-07 Thread Vincent Lefevre
Control: tags -1 upstream I've found the cause of the use of the shared C library and the crash. I can notice the following warnings: gcc -static -o zsh main.o `cat stamp-modobjs` -lgdbm -lpcre -lcap -lncursesw -ltinfo -ltinfo -lrt -lm -lc /usr/bin/ld: options.o: in function `dosetopt': ./

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

2021-09-07 Thread Vincent Lefevre
On 2021-09-07 22:22:34 +, David wrote: > On Tue, Sep 07, 2021 at 12:23:38PM +0200, Axel Beckert wrote: > > ... > > David wrote: > > > ... > > > > Sorry for the trouble. I (and the tests) admittedly only test the > > non-static zsh. And except for some special lookups known to be not > > possib

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

2021-09-07 Thread Vincent Lefevre
On 2021-09-07 13:31:36 +0200, Vincent Lefevre wrote: [...] > zsh-static is linked statically. What does it have to do with libc.so.6? > If it expects some functions from libc.so.6 and others that had been > linked statically, then with the upgrade of libc6 to 2.32-1, I think > that this is likely t

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

2021-09-07 Thread Vincent Lefevre
On 2021-09-07 12:23:38 +0200, Axel Beckert wrote: > A first strace ends as follows: > > mprotect(0x7f75ad335000, 4096, PROT_READ) = 0 > munmap(0x7f75ad337000, 327870) = 0 > mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = > 0x7f75ad03a000 > openat(AT_FDCWD, "

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

2021-09-07 Thread Axel Beckert
Control: tag -1 + confirmed Control: severity serious Hi David, David wrote: > I recently upgraded zsh-static:amd64 from 5.8-6+b2 to 5.8-7. > > With version 5.8-7, /bin/zsh-static segfaults immediately upon > execution. The previous 5.8-6+b2 version was fine. Thanks for the bug report! Can rep