From owner-freebsd-current Sat Sep 14 18:35: 3 2002 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 75B8A37B400 for ; Sat, 14 Sep 2002 18:35:02 -0700 (PDT) Received: from dilbert.robbins.dropbear.id.au (137.c.002.mel.iprimus.net.au [203.134.135.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34E3E43E6A for ; Sat, 14 Sep 2002 18:35:00 -0700 (PDT) (envelope-from tim@robbins.dropbear.id.au) Received: from dilbert.robbins.dropbear.id.au (pt3f2jfw5oopd6nz@localhost [127.0.0.1]) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6) with ESMTP id g8F1YnUD023215; Sun, 15 Sep 2002 11:34:50 +1000 (EST) (envelope-from tim@dilbert.robbins.dropbear.id.au) Received: (from tim@localhost) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6/Submit) id g8F1Ymdc023214; Sun, 15 Sep 2002 11:34:48 +1000 (EST) Date: Sun, 15 Sep 2002 11:34:48 +1000 From: Tim Robbins To: Julian Elischer Cc: FreeBSD current users Subject: Re: Very important bug.. Message-ID: <20020915113448.A22689@dilbert.robbins.dropbear.id.au> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from julian@elischer.org on Sat, Sep 14, 2002 at 04:59:48PM -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Sep 14, 2002 at 04:59:48PM -0700, Julian Elischer wrote: > On Sat, 14 Sep 2002, Julian Elischer wrote: > > > > > Well to all 2 of you that would ever considering running > > FreeBSD 1.1 binaries on -current anyhow... > > > > > > Everything goes along great until you hit a pid > 32768 > > then everything stops > > Actually looks like it's the compiler doing sign extension > on a short pid.. > > 32822 sh CALL fork > 32822 sh RET fork 32823/0x8037 > 32822 sh CALL setpgid(0xffff8037,0xffff8037) > 32822 sh RET setpgid -1 errno 22 Invalid argument > 32822 sh CALL getpgrp > 32822 sh RET getpgrp 32822/0x8036 > 32822 sh CALL wait4(0xffffffff,0xbfbff650,0x2,0) > 32822 sh RET wait4 32823/0x8037 > > Looks like I need a 'compat' flag to fork that says > "no pids over 32K please" :-) This might be a shell bug that I fixed a month or so ago.. see 1.17 to jobs.h, 1.52 to jobs.c, and I think there were a few others. I don't know why I've never seen the problem happen, though - sh shouldn't have been able to create any child processes with pid's >32767. Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message