Date: Mon, 23 Jul 2001 03:40:02 -0700 (PDT) From: Boris Nikolaus <bn@tellique.de> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/18024: when printing through gs: panic: lockmgr: not exclusive lock ho Message-ID: <200107231040.f6NAe2G01487@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/18024; it has been noted by GNATS.
From: Boris Nikolaus <bn@tellique.de>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107231040.f6NAe2G01487>
