Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] With --disable-dynamic-nss, not all functions calls are protected
- X-seq: zsh-workers 49426
- From: Axel Beckert <abe@xxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [BUG] With --disable-dynamic-nss, not all functions calls are protected
- Date: Fri, 17 Sep 2021 16:16:12 +0200
- Archived-at: <https://zsh.org/workers/49426>
- Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAAAAAC3mUtaAAAABGdBTUEAALGPC/xhBQAAADh0RVh0U29mdHdhcmUAWFYgVmVyc2lvbiAzLjEwYSAgUmV2OiAxMi8yOS85NCAoUE5HIHBhdGNoIDEuMindFS5JAAACGElEQVQ4jXXQMU8UYRDG8f8shNjdDH4AbpfGDjAWlKiJiZ0ajL1aGCvsNCbGaCGG1koLaztaTYz6ATy+gOyehYmF3MxVxgg3FnDsHcTpJr/M+8w7Rf6nCsaVTTDqxbg9hoOXmw83H71+Eyfg4E1d7/Z2fG9rGkZbTQiu+K+3U/C+76lmkvAhJuDndnoAiftou4V84okAGclop4U/jYACZDTxrYWP0gkxVfAm/W//GLZpxIzwIN0Hn8dw0B+IWkZmQmRsj2HfhwokEklHfNCCiQCRgAR7YyhQVRVTCKCzP4Y5zBBE0t0zY3Q8oQaBqqAMlVEcgVQd9706zGirAFium8HXumlMIeMwqQCInju+2+uB6MRENupdpMt8pRlHZyuAW0F+Mb6XSIVqtxjD+iVmVqqystLEzFTGT92YqRaXpNT5eTVjeJhbALPnrTxLUZUKZsgxcNm64hAOYisT/xhF+oKTGU5RegtC3Rt6eEDi/QnIevdTx9Md2EMmYBRmCQR1026FCGQQJJExsRUqgkMGaWSbwYLnoO4T6VgpbQbdELPMBAHWWrhYrcxXnYgAsatPWygkFCBD4K62MAsOTqA6szYRPpsu6e6Y8mPiVrBMNuGIMrgwBUu4p2DgG1Ownu6hpuTv7hScefHAzAC/yRRw5U5pALMbJ4AUALvHSZhxgHPXTsHcdWD1GadAHr9avP+c0wCr7263Df8ASLwXWHWs+KIAAAAHdElNRQfYBQEBODPr
- In-reply-to: <CAN=4vMqGT9f6E8Q3-PNt5BvQ92hoae4QkDDkFBmeu8zXbbWPYw@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- Organization: DeuxChevaux.org -- The Citroën 2CV Database
- References: <20210915143102.pw5uup7bvufi7wse@sym.noone.org> <CAH+w=7aScd=FUM3f03fhBSyi5hqdt1_Y+Z95_bf2LOT-wr9RWA@mail.gmail.com> <887BC7E8-0D19-4D16-BFE6-9AE8EA5E9040@kba.biglobe.ne.jp> <20210916121056.p4zainnlnoi74yiw@sym.noone.org> <CAH+w=7a1vMadgprg_BzYGajiCHZm1Z_NMGzevKXkEVpg=70aGw@mail.gmail.com> <D95FF4AD-F9CC-4FE8-BE72-AE25D653F690@kba.biglobe.ne.jp> <799F2EE5-EB83-49FB-9E5F-6C20CAB4CA6B@kba.biglobe.ne.jp> <CA976032-11EE-47F2-B507-0F162D6515EB@kba.biglobe.ne.jp> <20210917134439.l7yxmbp4ewajvjau@sym.noone.org> <CAN=4vMqGT9f6E8Q3-PNt5BvQ92hoae4QkDDkFBmeu8zXbbWPYw@mail.gmail.com>
Hi Roman,
On Fri, Sep 17, 2021 at 03:55:43PM +0200, Roman Perepelitsa wrote:
> > Yay, this patch works for me! zsh-static built on Debian Unstable
> > (glibc 2.32) no more segfaults when copied to and executed on Debian
> > 11 Bullseye (glibc 2.31) for me.
>
> If your goal is to create a binary that runs on any Linux x64 box
> regardless of libc runtimes that may or may not be available on it,
> link against musl libc.
Thanks for that idea, but the main goal for now was to make zsh-static
survive glibc upgrades in Debian (Unstable first and foremost).
> Static linking against glibc is a lost cause.
Not the first time I've read that, yes.
> Zsh can link against musl libc out of the box. This is how I build
> mine.
I've just checked: At least bash-static, busybox-static and sash
(static by default as that's its purpose) are built against glibc in
Debian, so I'll probably stay with glibc for now in Debian's
zsh-static package.
Nevertheless thanks for that hint. Will keep it in mind in case we run
into more severe glibc issues with static builds in the future.
Kind regards, Axel
--
PGP: 2FF9CD59612616B5 /~\ Plain Text Ribbon Campaign, http://arc.pasp.de/
Mail: abe@xxxxxxxxxxxxxxx \ / Say No to HTML in E-Mail and Usenet
Mail+Jabber: abe@xxxxxxxxx X
https://axel.beckert.ch/ / \ I love long mails: https://email.is-not-s.ms/
- References:
- Re: [BUG] With --disable-dynamic-nss, not all functions calls are protected
- Re: [BUG] With --disable-dynamic-nss, not all functions calls are protected
- Re: [BUG] With --disable-dynamic-nss, not all functions calls are protected
- Re: [BUG] With --disable-dynamic-nss, not all functions calls are protected
- Re: [BUG] With --disable-dynamic-nss, not all functions calls are protected
- Re: [BUG] With --disable-dynamic-nss, not all functions calls are protected
- Re: [BUG] With --disable-dynamic-nss, not all functions calls are protected
- Re: [BUG] With --disable-dynamic-nss, not all functions calls are protected
- Re: [BUG] With --disable-dynamic-nss, not all functions calls are protected
- Re: [BUG] With --disable-dynamic-nss, not all functions calls are protected
Messages sorted by:
Reverse Date,
Date,
Thread,
Author