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

    • 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)
    • cvs-src summary for November 22-29
      ... It is intended to help the FreeBSD community keep up with the fast-paced ... You can get old summaries, and an HTML version of this one, at ... objectors to any commit. ... Important bug fixes ...
      (freebsd-current)
    • Backport hr-tick fix into .25/.26
      ... Since the introduction of 2.6.25-rc1 kernel I've been experiencing screen blanking during boot up. ... I've reported this issue before, and Rafael Wysocki opened a bug report. ... I know of one other person that ran into what seems to be the same bug. ... I did a git bisect and found both the commit that introduced the bug and also the one that fixed it. ...
      (Linux-Kernel)
    • Re: This is [Re:] How to improve the quality of the kernel[?].
      ... The problem are more social problems like patches Andrew has never heard ... The accepted industry standard for bug counts is basically one bug per a ... We cannot get a regression free or even bug free kernel. ... able to handle all incoming bug reports is IMHO a worthwhile and not ...
      (Linux-Kernel)
    • Re: [v4l-dvb-maintainer] [GIT PATCHES] V4L/DVB updates
      ... I have tested these patches with: ... Leadtek WinFast DTV dongle 1st generation ... Fix 3/3 for bug 7819: ...
      (Linux-Kernel)