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

2021-09-08 Thread Debian Bug Tracking System
Processing control commands: > severity -1 important Bug #993843 [zsh-static] zsh-static segfaults immediately Severity set to 'important' from 'serious' -- 993843: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=993843 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems

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

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

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':

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

2021-09-07 Thread Debian Bug Tracking System
Processing control commands: > tags -1 upstream Bug #993843 [zsh-static] zsh-static segfaults immediately Added tag(s) upstream. -- 993843: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=993843 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems

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 > >

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

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,