From owner-freebsd-bugs Fri May 12 12:25:57 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id MAA19671 for bugs-outgoing; Fri, 12 May 1995 12:25:57 -0700 Received: from Root.COM (implode.Root.COM [198.145.90.1]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id MAA19665 for ; Fri, 12 May 1995 12:25:55 -0700 Received: from corbin.Root.COM (corbin.Root.COM [198.145.90.18]) by Root.COM (8.6.8/8.6.5) with ESMTP id MAA09961; Fri, 12 May 1995 12:28:55 -0700 Received: from localhost (localhost [127.0.0.1]) by corbin.Root.COM (8.6.11/8.6.5) with SMTP id MAA00168; Fri, 12 May 1995 12:25:55 -0700 Message-Id: <199505121925.MAA00168@corbin.Root.COM> To: Thomas Graichen cc: freebsd-bugs@FreeBSD.org Subject: Re: cat /proc/0/regs crashes FreeBSD In-reply-to: Your message of "Fri, 12 May 95 13:45:56 +0200." <9505121145.AA25665@sirius.physik.fu-berlin.de> From: David Greenman Reply-To: davidg@Root.COM Date: Fri, 12 May 1995 12:25:49 -0700 Sender: bugs-owner@FreeBSD.org Precedence: bulk >you may definitely crash FreeBSD (2.0 and 950412-SNAP) using > > cat /proc/0/regs > >maybe in other ways too via the proc-fs RCS file: /home/ncvs/src/sys/kern/init_main.c,v ... revision 1.23 date: 1995/05/04 08:21:24; author: davidg; state: Exp; lines: +9 -1 Kludged around a problem with "cat /proc/0/regs" causing a panic by initializing proc0's frame base, too, using cpu_set_init_frame(). It's a kludge because that macro is intended to be used only for init, but does what we want nonetheless. -DG