zsh-workers
 help / color / mirror / code / Atom feed
From: Axel Beckert <abe@deuxchevaux.org>
To: zsh-workers@zsh.org
Subject: Re: [BUG] With --disable-dynamic-nss, not all functions calls are protected
Date: Fri, 17 Sep 2021 15:44:40 +0200	[thread overview]
Message-ID: <20210917134439.l7yxmbp4ewajvjau@sym.noone.org> (raw)
In-Reply-To: <CA976032-11EE-47F2-B507-0F162D6515EB@kba.biglobe.ne.jp>

Hi,

On Fri, Sep 17, 2021 at 05:45:37PM +0900, Jun T wrote:
> > I guess the problem is getlogin() called from createparamtable().
> 
> Yes, this can be confirmed by statically linking a test program
> (just call getlogin() and exit). I _hope_ there are no other places
> where NSS-functions are indirectly called.
> 
> Revised the Axel's patch (also attached a file):

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. (Just my way to test it, the issue
popped up in Debian Unstable the other way round when glibc was
upgraded from 2.31 to 2.32.)

Bart: Sorry for not providing a gdb backtrace in time. Was too tired
last night to figure out where to put Debian's debug symbols when not
installing the built packages (or to set up a fitting chroot for
testing with the built packages) for generating a backtrace with gdb.

		Kind regards, Axel
-- 
PGP: 2FF9CD59612616B5      /~\  Plain Text Ribbon Campaign, http://arc.pasp.de/
Mail: abe@deuxchevaux.org  \ /  Say No to HTML in E-Mail and Usenet
Mail+Jabber: abe@noone.org  X
https://axel.beckert.ch/   / \  I love long mails: https://email.is-not-s.ms/


  reply	other threads:[~2021-09-17 13:45 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-08  1:12 Vincent Lefevre
2021-09-15 14:31 ` Axel Beckert
2021-09-15 19:13   ` Bart Schaefer
2021-09-16  7:37     ` Jun T
2021-09-16 12:10       ` Axel Beckert
2021-09-16 16:48         ` Bart Schaefer
2021-09-16 18:21           ` Jun. T
2021-09-16 18:34             ` Axel Beckert
2021-09-16 22:01               ` Bart Schaefer
2021-09-17  1:23             ` Jun T
2021-09-17  8:45               ` Jun T
2021-09-17 13:44                 ` Axel Beckert [this message]
2021-09-17 13:55                   ` Roman Perepelitsa
2021-09-17 14:16                     ` Axel Beckert
2021-09-17 15:02                 ` Bart Schaefer
2021-09-21  0:53                   ` Jun T
2021-09-21  3:38                     ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210917134439.l7yxmbp4ewajvjau@sym.noone.org \
    --to=abe@deuxchevaux.org \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).