From owner-freebsd-questions Mon Jul 8 14:51:15 2002 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 C6CD337B400; Mon, 8 Jul 2002 14:51:09 -0700 (PDT) Received: from cage.simianscience.com (cage.simianscience.com [64.7.134.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3A9343E52; Mon, 8 Jul 2002 14:51:08 -0700 (PDT) (envelope-from mike@sentex.net) Received: from house.sentex.net (fcage [192.168.0.2]) by cage.simianscience.com (8.12.5/8.12.3) with ESMTP id g68Loxp9055311; Mon, 8 Jul 2002 17:50:59 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <5.1.0.14.0.20020708174501.04b030a8@192.168.0.12> X-Sender: mdtancsa@192.168.0.12 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Mon, 08 Jul 2002 17:49:29 -0400 To: Pete Carah From: Mike Tancsa Subject: Re: Hang problem with spamass-milter... Cc: stable@FreeBSD.ORG, questions@FreeBSD.ORG In-Reply-To: <200207081952.g68JqB55059730@ns.altadena.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: amavis-20020220 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have had this problem from the start. Just blast a few dozen messages to the machine at the same time and it hangs. Whether its 250K or less doesnt seem to matter. e.g. see http://savannah.gnu.org/support/?func=detailsupport&support_id=100680&group_id=1083 ---Mike At 12:52 PM 7/8/2002 -0700, Pete Carah wrote: >I have spamass-milter compiled and running in a fresh 4.6-stable >box (built last week). If two mail messages arrive "close enough" in >time, spamc hangs hard (needs kill -9 to stop it) in pipe-read state >with spamass-milter in pipe-read also. I have a suspicion about >read acting non-blocking in the pipe case; looking through the >pthread_read.c source, as long as EWOULDBLOCK or EAGAIN work right >things shouldn't act like this. > >Do these work right on pipes in thread context? I guess I could set >up a test program... > >Note that spamc is not compiled thread-safe (not required here since >it is started for each message). > >spamass-milter's configure does not make the right choices for freebsd; >I presume the port fixes this (I did so myself, adding _THREAD_SAFE and >-pthread). The C++ library may or may not be thread-safe? > >I saw a query about this same thing dated last Feb (looking at the >code fragment, I suspect it was in the same program); it is >still around. > >The hint at a fix then was "are you sure you are writing anything". >Given that the identical code works fine in debian, I suspect a system >problem. To me it appears to be the behavior of EWOULDBLOCK/EAGAIN with >pipes in thread context. > >-- Pete > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-stable" in the body of the message -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message