From owner-freebsd-bugs Thu Oct 28 17: 0: 5 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 2553B14C40 for ; Thu, 28 Oct 1999 17:00:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id RAA47461; Thu, 28 Oct 1999 17:00:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Thu, 28 Oct 1999 17:00:03 -0700 (PDT) Message-Id: <199910290000.RAA47461@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Kazutaka YOKOTA Subject: Re: i386/14576: Ctrl+Alt+Space causes kernel panic Reply-To: Kazutaka YOKOTA Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR i386/14576; it has been noted by GNATS. From: Kazutaka YOKOTA To: freak@fac-simile.com Cc: freebsd-gnats-submit@freebsd.org, yokota@zodiac.mech.utsunomiya-u.ac.jp Subject: Re: i386/14576: Ctrl+Alt+Space causes kernel panic Date: Fri, 29 Oct 1999 08:55:35 +0900 >>Number: 14576 >>Category: i386 >>Synopsis: Ctrl+Alt+Space causes kernel panic >>Confidential: no >>Severity: critical [...] >>Originator: Patrick Julien >>Release: 3.3-RELEASE >>Organization: >Fac simile E-commerce >>Environment: >FreeBSD damien.fac-simile.com 3.3-RELEASE FreeBSD 3.3-RELEASE #0: >Thu Sep 16 23:40:35 GMT 1999 >jkh@highwing.cdrom.com:/usr/src/sys/compile/GENERIC i386 >>Description: >Pressing Ctrl+Alt+Space, outside of X, produces > >Fatal trap 9 : general protection fault while in kernel mode > >instruction pointer = 0x8:0xc02485ed >stack pointer = 0x10:0xc02eb28c >frame pointer = 0x10:0xc02eb2c4 >code segment = base 0x0, limit 0xfffff, type 0x1b, > = DPL 0, pres 1, def32 1, gran 1 >precessor eflags = interrupt enabled, resume, iopl=0 >current process = idle >interrupt mask = net tty >trap number = 9 > >panic : general protection fault This was fixed in both -CURRENT and -STABLE just after 3.3 was released. *sigh* Please apply the attached patch to /sys/i386/apm/apm.c and rebuild the kernel, then all should be fine. If you don't like to rebuild the kernel, you can edit your keymap file so that it won't cause panic. You must be loading your keymap from /usr/share/syscons/keymap. Find your keymap and locate the following line. 057 ' ' ' ' nul ' ' ' ' ' ' susp ' ' O ~~~~ And change it to 057 ' ' ' ' nul ' ' ' ' ' ' ' ' ' ' O ~~~~ (a quoted space) You must change the next line too. 104 slock saver slock saver susp nop susp nop O ~~~~ ~~~~ Change this to 104 slock saver slock saver nop nop nop nop O Kazu Index: apm.c =================================================================== RCS file: /src/CVS/src/sys/i386/apm/apm.c,v retrieving revision 1.77.2.8 retrieving revision 1.77.2.9 diff -u -r1.77.2.8 -r1.77.2.9 --- apm.c 1999/09/12 01:06:28 1.77.2.8 +++ apm.c 1999/09/20 15:34:29 1.77.2.9 @@ -621,6 +621,9 @@ apm_suspend(int state) { struct apm_softc *sc = &apm_softc; + + if (!sc->initialized) + return; switch (state) { case PMST_SUSPEND: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message