From owner-freebsd-stable Fri Feb 15 9:11:17 2002 Delivered-To: freebsd-stable@freebsd.org Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by hub.freebsd.org (Postfix) with ESMTP id C595837B405; Fri, 15 Feb 2002 09:11:12 -0800 (PST) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.11.6/8.11.5) with ESMTP id g1FHB6X78810; Fri, 15 Feb 2002 12:11:09 -0500 (EST) (envelope-from mi@aldan.algebra.com) Message-Id: <200202151711.g1FHB6X78810@aldan.algebra.com> Date: Fri, 15 Feb 2002 12:11:03 -0500 (EST) From: Mikhail Teterin Subject: a multhreaded application hanging To: freebsd-stable@FreeBSD.org Cc: questions@FreeBSD.org MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi! I'm trying to port a multithreaded C++ application (using the sendmail's milter library). It seems to work most of the time, but every once in a while hangs in the following line: size=read(pipe_io[1][0],iobuff,1024); I tried to ktrace it when it gets into this state, and ktrace.out remains empty. The process is in the ``piperd'' state, as reported by ps. Why would read(2) be hanging? The OS is 4.5-STABLE and I already recompiled the libc_r with the not-yet-MFCed patches to uthread_attr_setscope.c and uthread_dup2.c but that did not change a thing... Thanks! -mi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message