Re: libc_r: threaded application could stuck in accept(2)

From: Ruslan Ermilov (ru_at_FreeBSD.org)
Date: 05/30/03

  • Next message: Sean Chittenden: "Re: Network stack cloning / virtualization patches"
    Date: Fri, 30 May 2003 20:16:41 +0300
    To: Enache Adrian <enache@rdslink.ro>
    
    
    

    On Fri, May 30, 2003 at 07:07:23PM +0300, Enache Adrian wrote:
    > On Fri, May 30, 2003 at 05:35:41PM +0300, Ruslan Ermilov wrote:
    > > We had a bug in our threaded application that would mistakenly close
    > > the descriptor 0, and this triggers a bug in libc_r which I will try
    > > to describe below.
    > ...
    > > Some important notes: this bug is only applicable to descriptors
    > > 0 - 2 (stdio set), and might have something to do with the code
    > > in uthread_fd.c. If you remove two lines that free the descriptor
    > > 0 in the attached test case, the bug won't manifest itself.
    >
    > please have a look at
    >
    > http://www.freebsd.org/cgi/query-pr.cgi?pr=51535
    >
    Thanks, I had this same patch in my first version of the fix.
    Yes it works too, but do you have an insight what's going on
    without these fixes so that the 0..2 descriptors are left in
    a blocking mode? I just can't get it where this happens.

    P.S. I will commit both patches after the freeze is over.

    Cheers,

    -- 
    Ruslan Ermilov		Sysadmin and DBA,
    ru@sunbay.com		Sunbay Software AG,
    ru@FreeBSD.org		FreeBSD committer.
    
    



  • Next message: Sean Chittenden: "Re: Network stack cloning / virtualization patches"

    Relevant Pages

    • Re: tip: patches in git for irq and numa
      ... bug for!CONFIG_PCI. ... lines to the commit logs in the ... these patches go, typically. ... This is advantageous for IRQ descriptor allocation affinity: ...
      (Linux-Kernel)
    • Re: commit a802dd0e breaks console keyboard input
      ... This commit causes the console login prompt to ignore my keystrokes ... call or if it is some other weird bug. ... reports if the stop_machine patches would be broken. ...
      (Linux-Kernel)
    • cvs-src summary for June 14-21
      ... Intel PRO/10GbE driver MFC'ed ... Max responded, saying that since the script only adds lines to the output, ... Max later backed out the commit. ... Bruce Evans fixed a bug that allowed users to crash the system by ...
      (freebsd-current)
    • Re: http://www.kernel.org/doc/local/git-quick.html#bisect
      ... git bisect visualize and choose another commit to test. ... bug, you guessed wrong and have to back up. ...
      (Linux-Kernel)
    • Re: [BUG] lockup with the latest kernel
      ... it seems that the bug was introduced by this ... commit 02cf94c370e0dc9bf408fe45eb86fe9ad58eaf7f ... less contention when issuing invalidate IPI, ... Call Trace: ...
      (Linux-Kernel)