From owner-freebsd-emulation Sat Dec 16 17:29:44 2000 From owner-freebsd-emulation@FreeBSD.ORG Sat Dec 16 17:29:42 2000 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from ebola.biohz.net (ebola.biohz.net [206.80.1.35]) by hub.freebsd.org (Postfix) with ESMTP id D5B4437B400 for ; Sat, 16 Dec 2000 17:29:41 -0800 (PST) Received: from flu (localhost [127.0.0.1]) by ebola.biohz.net (Postfix) with SMTP id 59D813A3FC for ; Sat, 16 Dec 2000 17:29:41 -0800 (PST) Message-ID: <000901c067c8$d406a7e0$0402010a@biohz.net> From: "Renaud Waldura" To: References: <01a901c067b1$8ced2d00$0402010a@biohz.net> <3A3C0199.8DED329B@cup.hp.com> Subject: Re: q3ded 1.17: linux_socketcall returns errno -11 Date: Sat, 16 Dec 2000 17:29:40 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 51543 q3ded CALL gettimeofday(0xbfbfba48,0xbfbfba50) 51543 q3ded RET gettimeofday 0 51543 q3ded CALL linux_newselect(0x1,0xbfbfb9d8,0,0,0xbfbfb9d0) 51543 q3ded RET linux_newselect 0 51543 q3ded CALL linux_socketcall(0xc,0xbfbfb9e8) 51543 q3ded RET linux_socketcall -1 errno 11 Resource deadlock avoided It does a lot more sense indeed... ----- Original Message ----- From: "Marcel Moolenaar" To: "Renaud Waldura" Cc: Sent: Saturday, December 16, 2000 3:58 PM Subject: Re: q3ded 1.17: linux_socketcall returns errno -11 > Renaud Waldura wrote: > > > > After calling up ktrace to the rescue, here's what I get about what's going > > on inside q3ded (looping at high speed, and sucking up 90% CPU) : > > > > 51543 q3ded CALL mincore(0xbfbfba48,0xbfbfba50) > > 51543 q3ded RET mincore 0 > > 51543 q3ded CALL old.gethostid(0x1,0xbfbfb9d8,0,0,0xbfbfb9d0) > > 51543 q3ded RET old.gethostid 0 > > 51543 q3ded CALL old.recv(0xc,0xbfbfb9e8) > > 51543 q3ded RET old.recv -1 errno -11 Unknown error: -11 > > If you use ktrace, don't use kdump on Linux binaries, install the > linux_kdump port and view the trace file with linux_kdump. The problem > is that kdump will give the FreeBSD native syscalls, which doesn't make > sense for a Linux binary. The port is in /usr/ports/devel/linux_kdump, > IIRC. > > -- > Marcel Moolenaar > mail: marcel@cup.hp.com / marcel@FreeBSD.org > tel: (408) 447-4222 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message