Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Sep 2008 14:16:20 +0200
From:      Ivan Voras <ivoras@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   Re: FreeBSD deadlock (with fork?)
Message-ID:  <gatgqh$lbi$1@ger.gmane.org>
In-Reply-To: <200809180631.47071.naylor.b.david@gmail.com>
References:  <200809180631.47071.naylor.b.david@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?gatgqh$lbi$1>