Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Feb 2002 12:11:03 -0500 (EST)
From:      Mikhail Teterin <mi@aldan.algebra.com>
To:        freebsd-stable@FreeBSD.org
Cc:        questions@FreeBSD.org
Subject:   a multhreaded application hanging
Message-ID:  <200202151711.g1FHB6X78810@aldan.algebra.com>

next in thread | raw e-mail | index | archive | help
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-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202151711.g1FHB6X78810>