From az@sunner.elcomnet.ru  Fri May 26 15:51:06 2006
Return-Path: <az@sunner.elcomnet.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C486B16A6FD
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 26 May 2006 15:51:06 +0000 (UTC)
	(envelope-from az@sunner.elcomnet.ru)
Received: from sunner.elcomnet.ru (sunner.elcomnet.ru [86.110.161.253])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 33CA943D77
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 26 May 2006 15:51:06 +0000 (GMT)
	(envelope-from az@sunner.elcomnet.ru)
Received: from az by sunner.elcomnet.ru with local (Exim 4.62 (FreeBSD))
	(envelope-from <az@sunner.elcomnet.ru>)
	id 1Fjeae-000KpP-DU
	for FreeBSD-gnats-submit@freebsd.org; Fri, 26 May 2006 19:51:04 +0400
Message-Id: <E1Fjeae-000KpP-DU@sunner.elcomnet.ru>
Date: Fri, 26 May 2006 19:51:04 +0400
From: Andrej Zverev <az@freebsd.org>
Sender: Andrej Zverev <az@sunner.elcomnet.ru>
Reply-To: Andrej Zverev <az@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: panic while booting SMP kernel
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         97959
>Category:       kern
>Synopsis:       [smp] panic while booting SMP kernel
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 26 16:00:31 GMT 2006
>Closed-Date:    Thu May 03 14:29:20 GMT 2007
>Last-Modified:  Thu May 03 14:29:20 GMT 2007
>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:

From: Andrej Zverev <az@freebsd.org>
To: bug-followup@FreeBSD.org,  az@freebsd.org
Cc:  
Subject: Re: kern/97959 : panic while booting SMP kernel
Date: Fri, 26 May 2006 21:10:00 +0400

 Looks like occurs only with dynamic loadable modules.
 I have disconnected loading all modules and a kernel was loaded, about a 
 miracle, but the problem has remained :)

From: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
To: bug-followup@FreeBSD.org, az@FreeBSD.org
Cc:  
Subject: Re: kern/97959: [smp] panic while booting SMP kernel
Date: Thu, 03 May 2007 13:59:41 +0100

 Hi,
 
 Are you still able to recreate this panic with more up-to-date source?
 If so, can you please try to obtain a new crashdump, go to the frame
 that corresponds to frame 8 of the original PR (which may have moved),
 and give the output of the commands "p *(mod)" and "p *(mod->name)"
 
 You suggest that the problem only occurred with loadable modules.  Are
 you loading the USB modules from (eg) loader.conf, or are you relying on
 usbd to load them?  Is it possible to try the other mechanism?
 
 Thanks,
 
 Gavin

From: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/97959: [smp] panic while booting SMP kernel
Date: Thu, 03 May 2007 14:37:42 +0100

 Submitter believes this was caused by bad hardware.  This PR can now be
 closed.
 
 > -------- Forwarded Message --------
 > From: Andrej Zverev <az@freebsd.org>
 > Date: Thu, 03 May 2007 17:19:55 +0400
 > 
 > This PR can be closed. It's was affected by bad memory, i think
 
State-Changed-From-To: open->closed 
State-Changed-By: matteo 
State-Changed-When: Thu May 3 14:28:49 UTC 2007 
State-Changed-Why:  
Close this PR: the bug was caused by bad hardware 

http://www.freebsd.org/cgi/query-pr.cgi?pr=97959 
>Unformatted:
