From nobody@FreeBSD.org  Thu May 12 08:33:50 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id D06B8106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 12 May 2011 08:33:50 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id A47F58FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 12 May 2011 08:33:50 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p4C8XoFH027299
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 12 May 2011 08:33:50 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p4C8XoA2027268;
	Thu, 12 May 2011 08:33:50 GMT
	(envelope-from nobody)
Message-Id: <201105120833.p4C8XoA2027268@red.freebsd.org>
Date: Thu, 12 May 2011 08:33:50 GMT
From: Bartosz Stec <bartosz.stec@it4pro.pl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Panic during kernel boot on HP Proliant DL180G6 and  8-STABLE dated may 8, possibly igb related
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         156974
>Category:       kern
>Synopsis:       [boot] [panic] Panic during kernel boot on HP Proliant DL180G6 and 8-STABLE dated may 8, possibly igb related
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 12 08:40:07 UTC 2011
>Closed-Date:    Sun Jan 20 01:04:27 UTC 2013
>Last-Modified:  Sun Jan 20 01:04:27 UTC 2013
>Originator:     Bartosz Stec
>Release:        8-Stable
>Organization:
IT4Pro
>Environment:
8.2-STABLE FreeBSD 8.2-STABLE #2: Sun May  8 15:04:33 CEST 2011 amd64

>Description:
I moved my 8-STABLE system from cheap AMD64 machine to Proliant DL180G6
(full ZFS send -> receive).  Operation was succesfull, system booted and
everything worked fine. Still, I wanted to perform full world + kernel
rebuild with updated sources and CPUTYPE (core2 instead of athlon64) and
with removed unused NIC drivers from kernel.

New kernel panicked during boot. I rebuilt kernel again, without any
CPUTYPE in make.conf, but panic was still there. Old kernel (built at
8.04.2011) is booting fine.
First panic line says:

   panic: m_getzone: m_getjcl: invalid cluster type.


I made a poor quality photo of screen with stack backtrace and it's
available here: http://i51.tinypic.com/nyuux3.jpg 


Kernel config: http://pastebin.com/G7K0vfuJ

make.conf:

CPUTYPE?=core2
   KERNCONF=PROLIANT
   #MAKEOPTS=-j3
   #WITH_DEBUG=yes
   #DEBUG_FLAGS=-g

   # default build settings for ports collection
   .if ${.CURDIR:M*/ports/*} && !defined(NOCCACHE)
   CFLAGS=-O2 -pipe
   #CXXFLAGS= -O2 -fno-strict-aliasing -pipe -funroll-loops
   BUILD_OPTIMIZED=YES
   WITH_OPENSSL=YES
   WITH_XCHARSET=all
   WITH_CHARSET=utf8
   WITH_COLLATION=utf8_general_ci
   .endif

   # default build settings for base system
   .if ${.CURDIR:M*/usr/src/*} || ${.CURDIR:M*/usr/obj/*} &&
   !defined(NOCCACHE)

   CFLAGS=-O2 -pipe
   COPTFLAGS=-O2 -pipe

   CC:=${CC:C,^cc,/usr/local/libexec/ccache/world/cc,1}
   CXX:=${CXX:C,^c\+\+,/usr/local/libexec/ccache/world/c++,1}

   .endif

   # added by use.perl 2011-05-08 17:13:51
   PERL_VERSION=5.10.1

dmesg: http://pastebin.com/Es0CKD64 
>How-To-Repeat:

>Fix:
Not really a fix, but a funny override whoch works:

igb driver is compiled into the kernel. If I add igb driver to loader.conf
kernel complains of course:

   module_register: module pci/igb already exists!
   Module pci/igb failed to register: 17


but there's no panic!

When I remove 'if_igb_load="YES"' from loader.conf, I experience panic
visible above.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jhb 
State-Changed-When: Sun Jan 20 01:03:05 UTC 2013 
State-Changed-Why:  
Duplicate of 172113. 

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