Date: Wed, 11 Feb 1998 17:49:02 +0100 (CET) From: Oliver Fromme <oliver.fromme@heim3.tu-clausthal.de> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/5721: "more" coredumps when sent two signals Message-ID: <199802111649.RAA27213@dorifer.heim3.tu-clausthal.de>
next in thread | raw e-mail | index | archive | help
>Number: 5721
>Category: bin
>Synopsis: "more" coredumps when sent two signals
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Feb 11 09:00:01 PST 1998
>Last-Modified:
>Originator: Oliver Fromme
>Organization:
Administration Heim 3 (Technical University of Clausthal)
>Release: FreeBSD 2.2-971223-SNAP i386
>Environment:
`uname -a`:
FreeBSD dorifer.heim3.tu-clausthal.de 2.2-971223-SNAP
FreeBSD 2.2-971223-SNAP #0: Sun Feb 1 16:24:13 CET 1998
olli@dorifer.heim3.tu-clausthal.de:/usr/src/sys/compile/DORIFER i386
>Description:
/usr/bin/more coredumps (with various signals, obviously SIGBUS
most of the time) if it receives two signals in short succession.
This could be reproduced on several 2.2.x machines.
>How-To-Repeat:
At a shell prompt, type:
/usr/bin/more /some/large/file
In another shell, find out the PID of that more and then type:
kill -TSTP <PID>; kill -TSTP <PID>
This has to be on one line, so the two signals are sent in
short succession.
>Fix:
--- os.c.orig Fri May 27 14:30:45 1994
+++ os.c Wed Feb 11 09:53:16 1998
@@ -180,6 +180,7 @@
intread()
{
+ reading = 0;
(void)sigsetmask(0L);
longjmp(read_label, 1);
}
>Audit-Trail:
>Unformatted:
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?199802111649.RAA27213>
