Date: Sat, 12 Jun 1999 21:18:53 +0200 (CEST) From: dinoex.sub.org!dirk.meyer@home.dinoex.sub.org To: freebsd.org!FreeBSD-gnats-submit@home.dinoex.sub.org Subject: ports/12174: bash terminate with corefile if pid > 32000 Message-ID: <199906121918.VAA82880@home.dinoex.sub.org>
next in thread | raw e-mail | index | archive | help
>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 <TAB> key to complete a path on the command line, pressing <TAB> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906121918.VAA82880>