From owner-freebsd-questions@FreeBSD.ORG Tue Oct 14 06:07:12 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7FA7916A4B3 for ; Tue, 14 Oct 2003 06:07:12 -0700 (PDT) Received: from asarian-host.net (mail.asarian-host.net [194.109.160.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1499F43F75 for ; Tue, 14 Oct 2003 06:07:10 -0700 (PDT) (envelope-from admin@asarian-host.net) Comments: To protect the identity of the sender, certain header fields are either not shown, or masked. Anonymous email accounts can be requested by filling in the appropriate form at: https://asarian-host.net/cgi-bin/signup.cgi Received: (from root@localhost) by mail.asarian-host.net (8.12.10/8.12.10) id h9ED79c4081777 for freebsd-questions@freebsd.org; Tue, 14 Oct 2003 15:07:09 +0200 (CEST) (envelope-from admin@asarian-host.net) From: Mark Message-Id: <200310141307.H9ED78RW081768@asarian-host.net> Date: Tue, 14 Oct 2003 13:07:08 GMT X-Authenticated-Sender: admin@asarian-host.net X-Trace: RuqxeYeMO9G+v6JaLNFPk61unG6MVchJnEMKqU0MFkUVFYjEtIJoGm2HyNRUZwxBjM7D52yCcua+j2XpA3WIcA== X-Complaints-To: abuse@asarian-host.net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we are unable to process your complaint Organization: Asarian-host To: References: <200310132105.H9DL5K01086760@asarian-host.net> <20031013213836.GB21069@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Auth: Asarian-host PGP signature iQEVAwUAP4v0/DFqW1BleBN9AQFBPwf/X3YOPr+W9zlCqdgDf89wVQkBaIPEeCdl wZeaDh6YWiwMzD2otL/1c0J/smxJCi1R2ynaL03ts+PtINGQN6sDywlV7TH5SQ8A pKNPDt8Nl/2yORBS7Txv5c44lyntKJx/pg0vvU557xto7WS849+rd1h1HdJDQTFV J2aeYey2iRLeZaqj7zWs9OGaV5ULec7To91t1UPKBYOWri3REwHHUKfmZBQ2bpsv nEp3MRxYSXazGdf13g7PnooR3etIFUvHQFXaeKpoNmuHk0uA18iccNlO7r3jaowj RhEzpFEKKYEpUJWyPtX0i12hGJ7Ep77lU5CgU01WviOR+d53YRQlvw== =yqjq Subject: Re: Do threads conflict? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2003 13:07:12 -0000 ----- Original Message ----- From: "Dan Nelson" To: "Mark" Cc: Sent: Monday, October 13, 2003 11:38 PM Subject: Re: Do threads conflict? > In the last episode (Oct 13), Mark said: > > > I just installed Sendmail::Milter, which I believe uses the ithreads > > model for Perl. I created my own Milter (Perl-threaded 5.8.0), and > > everything runs fine... Except that now, when the Milter is running, > > tinyproxy 1.5.0 goes haywire, filling up its log like crazy with this > > message: > > > > "Accept returned an error (Resource temporarily unavailable)... > > retrying." > > > > The only thing tinyproxy and the Milter have in common, is that they > > both use threads. > > > > Is there perhaps something that prevents both programs from using > > threads? Perhaps the threads-enabled version of the daemonized perl > > Milter keeps a shared library locked? So, now I can run either one or > > the other, but not both. I use this on FreeBSD 4.7R. > > They shouldn't conflict. That sounds like a libc_r bug; I think the > wrapper for accept() should retry the accept() call for the user. > > You might want to try updating to 4.8; there were a couple of important > commits to libc_r that fixed bugs that usually affected threaded daemons: Thanks for the answer, Dan. Upgrading to 4.8 is not directly possible on this production server. But can I not just recompile the kernel with a patch? > 2002-10-22 09:44 fjoe don't allow the uthread kernel pipe to use the same > descriptors as stdio This may be the one affecting me. After your hinting me to the problem, I did some further googling; but it sounds as if 5.1 still suffers from the same malady; for instance: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/1588 Thanks, - Mark