On 2004.06.30, Vlad Seryakov <[EMAIL PROTECTED]> wrote:
> We are running aolserver on Redhat 7.3, 8.0 and Mandrake 10 and never
> got this problem.
>
> RH machines uses older glibc with LinuxThreads and Mandrake uses NPTL.
>
> Might be specific to that particular glibc versions, they used to have
> many bugs in early versions.

The problem occurs when AOLserver executes code that generates a
synchronous signal (SIGSEGV, SIGBUS, SIGILL, SIGTRAP, SIGFPE) and is
using LinuxThreads that has a thread manager.  Those synchronous signals
are supposed to be delivered to the thread that caused the trap -- the
other threads don't get the signal, and thus don't know to clean up as
the process is terminating, leaving dead/zombie threads around.

> What does your patch do to fix that problem? Just curious.

The LinuxThreads-specific, non-portable call to
pthread_kill_other_threads_np() should do the trick.  I believe this
will do the right thing under LinuxThreads, and should be a no-op under
NPTL.


On 2004.06.30, C. R. Oldham <[EMAIL PROTECTED]> wrote:
>
> Can you send this patch to me also?  I'm seeing a dead thread problem
> on 4.0.5 using kernel 2.4.22 (Debian 3.0) and glibc 2.2.5.

The fix is checked into SourceForge in both HEAD and aolserver_v40_bp
branch.  If you need the file, I can mail it to you off-list.  You only
need the updated nsd/unix.c.

-- Dossy

--
Dossy Shiobara                       mail: [EMAIL PROTECTED]
Panoptic Computer Network             web: http://www.panoptic.com/
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of 
your email blank.

Reply via email to