Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Dec 1998 14:59:41 -0800 (PST)
From:      parag@codegen.com
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   kern/9211: Fix for "kernel trap 25 with interrupts disabled"
Message-ID:  <199812272259.OAA01521@pinhead.parag.codegen.com>

next in thread | raw e-mail | index | archive | help

>Number:         9211
>Category:       kern
>Synopsis:       doscmd triggers endless "kernel trap 25" messages
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 27 15:00:01 PST 1998
>Last-Modified:
>Originator:     Parag Patel
>Organization:
CodeGen, Inc.
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

	dual PII-300 SMP system, 256Mb RAM, 256Mb swap

>Description:

	Running "doscmd" under the latest 3.0-CURRENT kernel triggers endless
	"kernel trap 25 with interrupts disabled" messages in the
	console and dmesg buffer (which rapidly fills up).

>How-To-Repeat:

	Run "doscmd -x -b" and watch the output of xconsole.

>Fix:
	
	Here is the patch to /sys/i386/i386/trap.c to ignore this
	specific trap.  I don't know if it is the right solution, but it
	turns off the error message and doscmd seems happy.  The code in
	trap.c already has an "if" for a couple of other traps - I just
	added the third trap (25).


Index: trap.c
===================================================================
RCS file: /src/freebsd/src/sys/i386/i386/trap.c,v
retrieving revision 1.131
diff -c -r1.131 trap.c
*** trap.c	1998/12/16 15:21:50	1.131
--- trap.c	1998/12/27 18:52:09
***************
*** 230,236 ****
  			printf(
  			    "pid %ld (%s): trap %d with interrupts disabled\n",
  			    (long)curproc->p_pid, curproc->p_comm, type);
! 		else if (type != T_BPTFLT && type != T_TRCTRAP)
  			/*
  			 * XXX not quite right, since this may be for a
  			 * multiple fault in user mode.
--- 230,237 ----
  			printf(
  			    "pid %ld (%s): trap %d with interrupts disabled\n",
  			    (long)curproc->p_pid, curproc->p_comm, type);
! 		else if (type != T_BPTFLT && type != T_TRCTRAP &&
! 			    type != T_TSSFLT)
  			/*
  			 * XXX not quite right, since this may be for a
  			 * multiple fault in user mode.

>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?199812272259.OAA01521>