From owner-freebsd-bugs Tue Feb 17 00:00:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA28781 for freebsd-bugs-outgoing; Tue, 17 Feb 1998 00:00:08 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA28765; Tue, 17 Feb 1998 00:00:03 -0800 (PST) (envelope-from gnats) Received: from alpha.xerox.com (firewall-user@alpha.Xerox.COM [13.1.64.93]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id XAA27263 for ; Mon, 16 Feb 1998 23:50:49 -0800 (PST) (envelope-from fenner@parc.xerox.com) Received: from fenestro.parc.xerox.com ([13.0.208.199]) by alpha.xerox.com with SMTP id <51891(3)>; Mon, 16 Feb 1998 23:50:44 PST Received: (from fenner@localhost) by fenestro.parc.xerox.com (8.8.5/8.8.4) id XAA07143; Mon, 16 Feb 1998 23:50:49 -0800 (PST) Message-Id: <199802170750.XAA07143@fenestro.parc.xerox.com> Date: Mon, 16 Feb 1998 23:50:49 PST From: Bill Fenner Reply-To: fenner@parc.xerox.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: gnu/5767: man leaves partially formatted cat pages when fork fails Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 5767 >Category: gnu >Synopsis: man leaves partially formatted cat pages when fork fails >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 17 00:00:01 PST 1998 >Last-Modified: >Originator: Bill Fenner >Organization: Xerox >Release: FreeBSD 3.0-CURRENT i386 >Environment: Some limited number of processes. >Description: man can fail to format a man page, but not notice: % man rs Formatting page, please wait.../usr/bin/groff:fatal error: fork: Resource temporarily unavailable Done. % It then puts this "formatted" page in /usr/share/man/cat1: -rw-r--r-- 1 man bin 20 Feb 16 23:37 /usr/share/man/cat1/rs.1.gz and there's no obvious way to make man use the original source if the cat file exists and is newer. I ended up removing the cat file as root, but if I wasn't root I'd be helpless to read this man page even after exiting some processes. >How-To-Repeat: Run "man" when you're near your process limit. >Fix: There are two things to fix: 1. Make man notice failures like this. This presumably requires not using popen(). 2. Add a switch to force formatting from source even if the cat page exists. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message