From owner-freebsd-ports@FreeBSD.ORG Wed Jun 4 04:18:14 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9EE8537B401 for ; Wed, 4 Jun 2003 04:18:14 -0700 (PDT) Received: from peedub.jennejohn.org (p213.54.235.42.tisdip.tiscali.de [213.54.235.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6CCFF43F3F for ; Wed, 4 Jun 2003 04:18:13 -0700 (PDT) (envelope-from garyj@jennejohn.org) Received: from peedub.jennejohn.org (localhost [127.0.0.1]) by peedub.jennejohn.org (8.12.9/8.11.6) with ESMTP id h54BI3Ov003586; Wed, 4 Jun 2003 13:18:04 +0200 (CEST) (envelope-from garyj@peedub.jennejohn.org) Message-Id: <200306041118.h54BI3Ov003586@peedub.jennejohn.org> X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: ehr3@ehr3.com In-Reply-To: Message from "Ernest H. Rice, III" of "Tue, 03 Jun 2003 15:04:41 EDT." <200306031504.41614.ehr3@ehr3.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 04 Jun 2003 13:18:03 +0200 From: Gary Jennejohn cc: freebsd-ports@freebsd.org Subject: Re: EDEADLK and recvfrom(2), connect(2), and/or socket(2) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jun 2003 11:18:14 -0000 "Ernest H. Rice, III" writes: > I have a network application which has been ported to several Unixes, > including SVR4, UW711, AIX, HP-UX, SunOs, Linux, etc. > > When ported to FreeBSD, it dies periodically with EDEADLK (errno 11). > I have attempted to isolate the problem. So far it has eluded me since the > application may run for days - even weeks - before failing. > > The application runs for months under other Unixes, and has never died with > EDEADLK (or the old EAGAIN). > > The program in question opens sockets, connects to services, etc. Much like a > > ping would. > > If anyone can shed some light on how to approach debugging this it would be > greatly appreciated! > IMO the first step would be to grep over /usr/src to determine where EDEADLK is returned (not that many places) and then figure out which of those places your code may be invoking. It's probable that 5.x and 4.x are different. --- Gary Jennejohn / garyj@jennejohn.org gj@freebsd.org gj@denx.de