From owner-freebsd-ports Sat Jun 12 12:40: 5 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id E5A3814FC2 for ; Sat, 12 Jun 1999 12:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id MAA32365; Sat, 12 Jun 1999 12:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from mail.dinoex.sub.org (mail.dinoex.sub.de [195.243.29.14]) by hub.freebsd.org (Postfix) with ESMTP id DB4B014E63 for ; Sat, 12 Jun 1999 12:32:19 -0700 (PDT) (envelope-from dm@home.dinoex.sub.org) Received: (from uucp@localhost) by mail.dinoex.sub.org (8.9.3/8.9.3) with UUCP id VAA17131 for FreeBSD-gnats-submit@freebsd.org; Sat, 12 Jun 1999 21:31:30 +0200 (CEST) Received: from home.dinoex.sub.org (uucp@localhost) by net2.dinoex.sub.org (8.9.3/8.9.3) with UUCP id VAA21737 for freebsd.org!FreeBSD-gnats-submit; Sat, 12 Jun 1999 21:27:52 +0200 (CEST) Received: (from dm@localhost) by home.dinoex.sub.org (8.9.3/8.9.3) id VAA82880; Sat, 12 Jun 1999 21:18:53 +0200 (CEST) Message-Id: <199906121918.VAA82880@home.dinoex.sub.org> Date: Sat, 12 Jun 1999 21:18:53 +0200 (CEST) From: dinoex.sub.org!dirk.meyer@home.dinoex.sub.org Reply-To: dinoex.sub.org!dirk.meyer@home.dinoex.sub.org To: freebsd.org!FreeBSD-gnats-submit@home.dinoex.sub.org X-Send-Pr-Version: 3.2 Subject: ports/12174: bash terminate with corefile if pid > 32000 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 12174 >Category: ports >Synopsis: bash terminate with corefile if pid > 32000 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jun 12 12:40:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Dirk Meyer >Release: FreeBSD 3.2-RELEASE i386 >Organization: privat >Environment: FreeBSD 3.2-RELEASE i386 running bash >Description: in comand completition bash terminates: /kernel: pid 2111 (bash), uid 1000: exited on signal 11 (core dumped) /kernel: pid 81266 (bash), uid 1000: exited on signal 11 (core dumped) /kernel: pid 81276 (bash), uid 1000: exited on signal 11 (core dumped) /kernel: pid 81301 (bash), uid 1000: exited on signal 11 (core dumped) /kernel: pid 404 (bash), uid 0: exited on signal 11 (core dumped) /kernel: pid 81322 (bash), uid 0: exited on signal 11 (core dumped) /kernel: pid 1272 (bash), uid 1000: exited on signal 11 /kernel: pid 81494 (bash), uid 0: exited on signal 11 (core dumped) >How-To-Repeat: the new pid of the system has reached a value > 32736. The shell itsel could still have an old pid in range. using key to complete a path on the command line, pressing twice to get a list that would create a question "Display all xxx possibilities? (y or n)" >Fix: this patch seem to fix the problem --- execute_cmd.c.orig Tue Jan 26 22:23:49 1999 +++ execute_cmd.c Sat Jun 12 20:58:59 1999 @@ -2207,7 +2207,8 @@ static int execute_null_command (redirects, pipe_in, pipe_out, async, old_last_command_subst_pid) REDIRECT *redirects; - int pipe_in, pipe_out, async, old_last_command_subst_pid; + int pipe_in, pipe_out, async; + pid_t old_last_command_subst_pid; { if (pipe_in != NO_PIPE || pipe_out != NO_PIPE || async) { @@ -2955,7 +2956,7 @@ { char *pathname, *command, **args; int nofork; - int pid; + pid_t pid; nofork = (cmdflags & CMD_NO_FORK); /* Don't fork, just exec, if no pipes */ pathname = words->word->word; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message