Re: nss_ldap broken

From: Daniel Eischen (eischen_at_vigrid.com)
Date: 03/30/04

  • Next message: Dag-Erling Smørgrav: "performance of jailed processes"
    Date: Tue, 30 Mar 2004 11:25:01 -0500 (EST)
    To: "Jacques A. Vidrine" <nectar@FreeBSD.org>
    
    

    On Tue, 30 Mar 2004, Jacques A. Vidrine wrote:

    > On Tue, Mar 30, 2004 at 01:37:44AM -0800, Sean McNeil wrote:
    > > On Mon, 2004-03-29 at 19:02, Jacques A. Vidrine wrote:
    > > > Thanks! So, could you try the patch below? I think it is now
    > > > basically identical with what you posted, except for the changes to
    > > > nss_compat.c.
    > >
    > > After making a bone-head mistake and just installing the libc after a
    > > make update (duh!) I finally managed to salvage my system and give the
    > > patch a go. Things look good.
    >
    > Thanks! I'll commit it.
    >
    > > I'm still concerned that nss_atexit can cause a seg11 if a nss_*.so.1
    > > starts up any threads when the program isn't threaded otherwise. Don't
    > > really know why an nss plugin would want to do that, but it is
    > > hazardous.

    It shouldn't be doing that.

    >
    > The locks may not be needed regardless. Dan, how do threads interact
    > with atexit()? Are threads serialized at that point? Does the main
    > thread call all the atexit handlers?

    exit() calls the finalization of atexit() to run down the exit
    handlers. The threads library has nothing to do with it,
    but the atexit() stuff is protected with mutexes (see
    src/lib/libc/stdlib/atexit.c).

    -- 
    Dan Eischen
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
    

  • Next message: Dag-Erling Smørgrav: "performance of jailed processes"

    Relevant Pages

    • Re: atexit doubt
      ... >I have registered a cleanup function with atexit. ... I don't see exit being called...is it shutdown that invokes ... Anyway, process termination ...
      (comp.unix.programmer)
    • Re: nss_ldap broken
      ... >> exit() calls the finalization of atexit() to run down the exit ... >> handlers. ... > atexit_mutex is not held while calling the actual handler. ...
      (freebsd-current)
    • Re: Fork, Pipe, Dup2 etc.
      ... You MUST use _exit() in the child of a fork/vfork, ... Every process is the result of a fork or vfork! ... forkcopies stdio buffers and atexit calls. ...
      (comp.unix.programmer)
    • Re: zombie process questions
      ... with atexit() nor any registered signal handlers. ... new _Exit() function from C99 was merged in. ... POSIX required that _exitnot flush open streams, ... registered with atexitnor any registered signal handlers. ...
      (comp.unix.programmer)
    • Re: Monitor Thread In DLL
      ... Runtime calls atexitfor the EXE. ... Runtime calls atexit() for the DLL during the detach phase. ... > finally wait for the thread to exit using WaitForSingleObject.. ...
      (microsoft.public.win32.programmer.kernel)