From owner-freebsd-current@FreeBSD.ORG Thu Sep 18 12:16:25 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6A3E106564A for ; Thu, 18 Sep 2008 12:16:25 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 7EEFF8FC15 for ; Thu, 18 Sep 2008 12:16:25 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KgIQq-0001Z8-Dx for freebsd-current@freebsd.org; Thu, 18 Sep 2008 12:16:24 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Sep 2008 12:16:24 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Sep 2008 12:16:24 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org From: Ivan Voras Date: Thu, 18 Sep 2008 14:16:20 +0200 Lines: 46 Message-ID: References: <200809180631.47071.naylor.b.david@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig48D70C6DD19EC560AD67CCD2" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.16 (X11/20080724) In-Reply-To: <200809180631.47071.naylor.b.david@gmail.com> X-Enigmail-Version: 0.95.0 Sender: news Subject: Re: FreeBSD deadlock (with fork?) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Sep 2008 12:16:25 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig48D70C6DD19EC560AD67CCD2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable David Naylor wrote: > Hi, >=20 > I have a program that spawns a lot of subprocesses (with pipes open) fr= om=20 > multiple threads. The problem is the program often deadlocks, but not = > consistently. Sometimes the program can run over 5 times to competitio= n=20 > without incidence and yet othertimes it locks within a few seconds. =20 >=20 > However if I limit the thread count to 1 the problem does not appear to= be=20 > present. =20 >=20 > Here are the logs from gdb: =2E.. Are you sure it's not a design error in your program? Your best bet for solving this problem is to try to create a minimum program that will fail and post it here (don't post your whole program, it's probably too big). --------------enig48D70C6DD19EC560AD67CCD2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI0kaVldnAQVacBcgRAhJ2AJ9P5yIB7sHV8iYJVYtxiCiMzC3xUACgwzNI C5/VftEOnTGxSEjoy6XlHl8= =msOA -----END PGP SIGNATURE----- --------------enig48D70C6DD19EC560AD67CCD2--