Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 May 2006 19:51:04 +0400
From:      Andrej Zverev <az@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/97959: panic while booting SMP kernel
Message-ID:  <E1Fjeae-000KpP-DU@sunner.elcomnet.ru>
Resent-Message-ID: <200605261600.k4QG0VIQ058080@freefall.freebsd.org>

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

>Number:         97959
>Category:       kern
>Synopsis:       panic while booting SMP kernel
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 26 16:00:31 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Andrej Zverev
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD sunner.elcomnet.ru 6.1-RELEASE FreeBSD 6.1-RELEASE #1: Sat May 13 23:45:05 MSD 2006 root@sunner.elcomnet.ru:/usr/obj/usr/src/sys/SUNNER i386


	
>Description:
	Builded kernel as SMP (/usr/src/sys/i386/conf/SMP) produce panic.
	UP kernel works ok, no changes to kernel configs was done.
	
	If you need any extra information, just ask.


	
>How-To-Repeat:
	
>Fix:

	

--- panic-smp.txt begins here ---
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd".

Unread portion of the kernel message buffer:
<118>Starting usbd.


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address	= 0x0
fault code		= supervisor read, page not present
instruction pointer	= 0x20:0xc06b82a0
stack pointer	        = 0x28:0xe90bec88
frame pointer	        = 0x28:0xe90bec88
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 427 (usbd)
trap number		= 12
panic: page fault
cpuid = 0
Uptime: 47s
Dumping 1023 MB (2 chunks)
  chunk 0: 1MB (158 pages) ... ok
  chunk 1: 1023MB (261856 pages) 1007 991 975 959 943 927 911 895 879 863 847 831 815 799 783 767 751 735 719 703 687 671 655 639 623 607 591 575 559 543 527 511 495 479 463 447 431 415 399 383 367 351 335 319 303 287 271 255 239 223 207 191 175 159 143 127 111 95 79 63 47 31 15

#0  doadump () at pcpu.h:165
165		__asm __volatile("movl %%fs:0,%0" : "=r" (td));
(kgdb) 
(kgdb) 
(kgdb) f 1
#1  0xc06507c9 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:402
402			doadump();
(kgdb) f 2
#2  0xc0650af1 in panic (fmt=0xc08958ae "%s")
    at /usr/src/sys/kern/kern_shutdown.c:558
558		boot(bootopt);
(kgdb) f 3
#3  0xc084a2cc in trap_fatal (frame=0xe90bec48, eva=0)
    at /usr/src/sys/i386/i386/trap.c:836
836			panic("%s", trap_msg[type]);
(kgdb) f 4
#4  0xc084a00b in trap_pfault (frame=0xe90bec48, usermode=0, eva=0)
    at /usr/src/sys/i386/i386/trap.c:744
744			trap_fatal(frame, eva);
(kgdb) f 5
#5  0xc0849c45 in trap (frame=
      {tf_fs = -995164152, tf_es = 84607016, tf_ds = 40, tf_edi = -993328000, tf_esi = -385094472, tf_ebp = -385094520, tf_isp = -385094540, tf_ebx = -995246080, tf_edx = 0, tf_ecx = -385094471, tf_eax = -139, tf_trapno = 12, tf_err = 0, tf_eip = -1066696032, tf_cs = 32, tf_eflags = 66178, tf_esp = -385094496, tf_ss = -1067158275}) at /usr/src/sys/i386/i386/trap.c:434
434				(void) trap_pfault(&frame, FALSE, eva);
(kgdb) f 6
#6  0xc0836c4a in calltrap () at /usr/src/sys/i386/i386/exception.s:139
139		call	trap
Current language:  auto; currently asm
(kgdb) f 7
#7  0xc06b82a0 in strcmp (s1=0x0, s2=0xe90becb9 "sb/uhub")
    at /usr/src/sys/libkern/strcmp.c:47
47				return (0);
Current language:  auto; currently c
(kgdb) f 8
#8  0xc06474fd in module_lookupbyname (name=0xe90becb8 "usb/uhub")
    at /usr/src/sys/kern/kern_module.c:210
210			err = strcmp(mod->name, name);
(kgdb) f 9
#9  0xc0647819 in modfind (td=0x0, uap=0xffffff75)
    at /usr/src/sys/kern/kern_module.c:407
407		mod = module_lookupbyname(name);
(kgdb) f 10
#10 0xc084a613 in syscall (frame=
      {tf_fs = 59, tf_es = 59, tf_ds = 59, tf_edi = -1077940536, tf_esi = 1, tf_ebp = -1077940616, tf_isp = -385094300, tf_ebx = 1, tf_edx = 16, tf_ecx = 1, tf_eax = 303, tf_trapno = 12, tf_err = 2, tf_eip = 671842987, tf_cs = 51, tf_eflags = 662, tf_esp = -1077941028, tf_ss = 59}) at /usr/src/sys/i386/i386/trap.c:981
981			error = (*callp->sy_call)(td, args);
(kgdb) quit
--- panic-smp.txt ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1Fjeae-000KpP-DU>