From owner-freebsd-bugs Mon Jul 23 3:40: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6137D37B403 for ; Mon, 23 Jul 2001 03:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f6NAe2G01487; Mon, 23 Jul 2001 03:40:02 -0700 (PDT) (envelope-from gnats) Date: Mon, 23 Jul 2001 03:40:02 -0700 (PDT) Message-Id: <200107231040.f6NAe2G01487@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Boris Nikolaus Subject: Re: kern/18024: when printing through gs: panic: lockmgr: not exclusive lock ho Reply-To: Boris Nikolaus Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR kern/18024; it has been noted by GNATS. From: Boris Nikolaus To: mike@FreeBSD.org Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: kern/18024: when printing through gs: panic: lockmgr: not exclusive lock ho Date: Mon, 23 Jul 2001 04:12:22 +0200 Hi Mike, The crash does not occur on 4.3-STABLE, but I cannot tell you about -RELEASE. I had examined the problem some time ago and found out that it always happened, when a process opens /dev/lpt0, forks a child, and then terminates before the child exits. Here's a simple perl program which caused the crash on earlier releases (kill lpr before starting it, otherwise /dev/lpt0 is busy): --- printercrash --- #!/usr/bin/perl # open printer device open(PRINTER, "/dev/lpt0") or die "Cannot open /dev/lpt0: $!"; # fork() a child defined(my $pid = fork) or die "Cannot fork: $!"; # parent process exit()s exit 0 if $pid; # child waits until the parent has exited while (getppid != 1) { sleep(1); } # now the child process exit()s exit 0; --- printercrash --- Sorry for sending this program so late, but after changing my printcap/magicfilter, I forgot about the problem ... Greetings, Boris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message