From owner-freebsd-current@FreeBSD.ORG Sun Mar 28 14:20:33 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 768E516A4CE for ; Sun, 28 Mar 2004 14:20:33 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FF9143D2F for ; Sun, 28 Mar 2004 14:20:33 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i2SMKW78092525 for freebsd-current@freebsd.org; Sun, 28 Mar 2004 16:20:32 -0600 (CST) (envelope-from dan) Date: Sun, 28 Mar 2004 16:20:31 -0600 From: Dan Nelson To: freebsd-current@freebsd.org Message-ID: <20040328222031.GA19463@dan.emsphone.com> References: <20040328211018.GN3446@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040328211018.GN3446@dan.emsphone.com> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i Subject: Re: panic: mutex Giant owned at ../../../kern/kern_thread.c:1341 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sun, 28 Mar 2004 22:20:33 -0000 In the last episode (Mar 28), Dan Nelson said: > Got this running an ibcs2_coff binary on today's kernel: > > (kgdb) where > #6 0xc7c1dd5b in ibcs2_wait (td=0xc7ef5540, uap=0x0) > at /usr/src/sys/i386/ibcs2/ibcs2_misc.c:164 I think this is due to ibcs2_wait being left out when wait4() was converted to giant-free (giant-allergic actually). The following seems to fix it: Index: syscalls.master =================================================================== RCS file: /mnt/emssrv5/home/ncvs/src/sys/i386/ibcs2/syscalls.master,v retrieving revision 1.17 diff -u -r1.17 syscalls.master --- syscalls.master 6 Feb 2004 20:20:07 -0000 1.17 +++ syscalls.master 28 Mar 2004 22:00:40 -0000 @@ -37,7 +37,7 @@ 4 MNOPROTO { int write(int fd, char *buf, u_int nbytes); } 5 STD { int ibcs2_open(char *path, int flags, int mode); } 6 MNOPROTO { int close(int fd); } -7 STD { int ibcs2_wait(int a1, int a2, int a3); } +7 MSTD { int ibcs2_wait(int a1, int a2, int a3); } 8 STD { int ibcs2_creat(char *path, int mode); } 9 NOPROTO { int link(char *path, char *link); } 10 STD { int ibcs2_unlink(char *path); } -- Dan Nelson dnelson@allantgroup.com