From nick@triantos.com  Sun Jun 22 16:53:39 2003
Return-Path: <nick@triantos.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4404E37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 22 Jun 2003 16:53:39 -0700 (PDT)
Received: from triantos.com (bsd.triantos.com [66.127.67.82])
	by mx1.FreeBSD.org (Postfix) with SMTP id ABE5943FBF
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 22 Jun 2003 16:53:38 -0700 (PDT)
	(envelope-from nick@triantos.com)
Received: (qmail 1562 invoked by uid 1001); 22 Jun 2003 23:57:43 -0000
Message-Id: <20030622235743.1561.qmail@triantos.com>
Date: 22 Jun 2003 23:57:43 -0000
From: Nick Triantos <nick@triantos.com>
Reply-To: Nick Triantos <nick@triantos.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Kernel panics / reboots during install of 5.1 to 40GB disk on 440BX mobo
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         53620
>Category:       i386
>Synopsis:       [install] Kernel panics / reboots during install of 5.1 to 40GB disk on 440BX mobo
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    remko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 22 17:00:24 PDT 2003
>Closed-Date:    Sun Sep 03 16:53:54 GMT 2006
>Last-Modified:  Sun Sep 03 16:53:54 GMT 2006
>Originator:     Nick Triantos
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD bsd.triantos.com 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Thu Jun 5 02:55:42 GMT 2003 root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386


	
	Intel "Seattle" 440BX chipset, Pentium III/450MHz,
	Maxtor 4D040K2 40GB drive
>Description:
	
	I suspect that FreeBSD 5.1-RELEASE is not able to correctly
	access my LBA-mode 40GB drive, on a fairly old motherboard.
	5.0-RELEASE had no trouble, though.

	Machine was running freebsd 5.0, nearly stock config.
	During my attempt to upgrade to 5.1-RELEASE, I got a kernel
	panic while copying one of the install tarfiles, page not
	present error, and then system rebooted.  I have seen the
	same error several more times when trying to repeat the
	installation.  Fixit mode on both the 5.0 and 5.1 CDs didn't
	seem to give me any way to resolve the problem.

	A fresh install to a new 20GB disk worked ok.

	I then tried mounting the 40GB disk, ran fsck then mount,
	and mount failed saying I needed to run fsck again.
	'mount -f' worked, but when trying to copy files from the
	machine I locked up once, and spuriously rebooted once.

	I then tried to fdisk/disklabel the disk through sysinstall
	(booted from both CD, and from the 5.1 20GB disk), all ways
	fail with a write error (no other details given to me when
	the failure occurs).

	I then tried booting in a more modern PC (NVIDIA nForce
	chipset) from the 5.1 boot CD, and was able to get both fdisk
	and disklabel to work on the disk.  I re-inserted the disk
	into my 440BX system as /dev/ad1, and started a job of copying
	files from the 20GB (/dev/ad0*) to the 40GB disk (/dev/ad1*)
	via tar.  Half-way through this process, the system rebooted,
	no messages I can find in /var/log/messages.

	I have been running freebsd 5.0-RELEASE on this 440BX system
	with a 40GB disk since 5.0 was released, and have never had any
	kind of disk problems.

>How-To-Repeat:
	
	Unsure, but given that I can continue to see issues here, I
	will volunteer to help however I can in tracking down the
	problem.  I am not terribly freebsd-kernel-saavy, but I am a
	professional device driver software engineer, so I am comfortable
	with walking through code / debuggers as needed.
>Fix:

	


>Release-Note:
>Audit-Trail:

From: "KAREN THODE" <thode12@msn.com>
To: <freebsd-gnats-submit@FreeBSD.org>, <nick@triantos.com>
Cc:  
Subject: Re: i386/53620: Kernel panics / reboots during install of 5.1 to 40GB disk on 44
Date: Sun, 6 Jul 2003 16:07:27 -0500

 Do you think that you could build a debugging kernel with crashdumps enab=
 led and then replicate the kernel panic?  If you can, post a panic messag=
 e and gdb backtrace as a follow-up.
 
 Lucas
 
From: "KAREN THODE" <thode12@msn.com>
To: "Nick Triantos" <nick@triantos.com>,
	<freebsd-gnats-submit@freebsd.org>
Cc:  
Subject: Re: i386/53620: Kernel panics / reboots during install of 5.1 to 40GB disk on 44
Date: Tue, 8 Jul 2003 18:02:13 -0500

 
 Boot off of the 20 GB hard drive.  Now, you need to make a copy of /usr/s=
 rc/sys/i386/conf/GENERIC into a new directory called /usr/dbgkern.  Now o=
 pen up /usr/dbgkern/GENERIC in a text editor.  Look for a line that says =
 "#makeoptions   DEBUG=3D-g" and remove the pound sign from the beginning.=
   Now change "ident  GENERIC" to "ident  DBGKERN".  Save this file as DBG=
 KERN.  Exit the editor.  Now, type these commands (without the outer set =
 of quotes) into the console while logged in as root.
 "cd /usr/dbgkern"
 "rm GENERIC"
 "cd /usr/src"
 "make buildkernel KERNCONF=3D"/usr/dbgkern/DBGKERN""
 "make installkernel KERNCONF=3D"/usr/dbgkern/DBGKERN""
 Now, reboot the machine.
 
 As for the second question, you can perform kernel debugging without a se=
 rial cable.  You have to type the command "gdb -k [-c name-of-core-dump-f=
 ile]" into the shell while logged in as root, replacing name-of-core-dump=
 -file with the name of the kernel core dump.  Once gdb displays the (kgdb=
 ) prompt, you can use hbreak {[file:]function|address} to set a breakpoin=
 t (maximum 4), bt to perform a backtrace of the stack, c to continue runn=
 ing the kernel, next to step over function calls, step to step into funct=
 ion calls, print expr to print the value of expr on the terminal screen, =
 and quit to quit gdb.
 
 Lucas
 ----- Original Message -----
 From: Nick Triantos
 Sent: Monday, July 07, 2003 11:57 AM
 To: 'KAREN THODE'
 Subject: RE: i386/53620: Kernel panics / reboots during install of 5.1 to=
  40GB disk on 44
 
 Hello,
 
 Is there a link somewhere on the freebsd.org web site as to how to do tha=
 t?  Since I'm booting from the CD image, I'm not sure how I can get it to=
  execute from a different kernel.  I suppose I can build a special CD ima=
 ge, is that what you'd suggest?  I've also never done kernel-level debugg=
 ing of bsd, I assume it's done via serial interface?
 
 cheers,
 -Nick
 
From: "KAREN THODE" <thode12@msn.com>
To: "Nick Triantos" <nick@triantos.com>,
	<freebsd-gnats-submit@freebsd.org>
Cc:  
Subject: Re: i386/53620: Kernel panics / reboots during install of 5.1 to 40GB disk on 44
Date: Wed, 9 Jul 2003 08:13:36 -0500

 ------=_NextPart_001_0003_01C345F1.FEDD80B0
 Content-Type: text/plain; charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 
 You also need to set the value of the dbgdump variable in rc.conf to the =
 name of your swap device.
 
From: "KAREN THODE" <thode12@msn.com>
To: "Nick Triantos" <nick@triantos.com>,
	<freebsd-gnats-submit@freebsd.org>
Cc:  
Subject: Re: i386/53620: Kernel panics / reboots during install of 5.1 to 40GB disk on 44
Date: Sun, 13 Jul 2003 13:13:05 -0500

 
 Did you add the dumpdev line to /etc/rc.conf?
 
 ----- Original Message -----
 From: Nick Triantos
 Sent: Saturday, July 12, 2003 11:58 PM
 To: 'KAREN THODE'; freebsd-gnats-submit@freebsd.org
 Subject: RE: i386/53620: Kernel panics / reboots during install of 5.1 to=
  40GB disk on 44
 
 (re-sending, my mail server is having problems, not sure if it made it th=
 rough)
 
 Hi, this did not work as expected.
 
 I built/installed a debug kernel, but when I ran /stand/sysinstall after =
 booting with that kernel (from the 20GB disk), it seemed to only know how=
  to install to /dev/ad0, which is the 20GB disk.  It overwrote part of my=
  working installation before I could cancel it.  fdisk/disklabel worked o=
 k to /dev/ad1, but the install of packages seemed to want to force itself=
  onto the live filesystem.
 
 (1) Is there something I could / should do to build a custom install CD w=
 ith the debug kernel?
 (1a) I could install yet another hard disk in the machine that the CD cou=
 ld use as swap space
 
 (2) Or maybe I can somehow mount all of my working disk as a read-only mo=
 unt?
 
 (3) It seems I should be able to get sysinstall to forcibly write to /dev=
 /ad1 only, but from reading over all the docs I can find, I could not see=
  a way to do that.
 
 (4) I could also use null-model to debug this, if it's reasonably easy to=
  set up.  The only compilication is that my other PCs all run WinXP, so I=
 'd have to install a gdb client for windows, and probably cygwin.
 
 regards, and thanks for all the help.
 
 -Nick
 
From: "KAREN THODE" <thode12@msn.com>
To: "Nick Triantos" <nick@triantos.com>,
	<freebsd-gnats-submit@freebsd.org>
Cc:  
Subject: Re: i386/53620: Kernel panics / reboots during install of 5.1 to 40GB disk on 44
Date: Sun, 13 Jul 2003 20:43:06 -0500

 ------=_NextPart_001_0000_01C3497F.5CD3BB40
 Content-Type: text/plain; charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 See if you can rebuild the system, but change the rw to ro for the entry =
 in /etc/fstab for the root filesystem on ad0.  Also, try not installing p=
 ackages.
 
 ----- Original Message -----
 From: Nick Triantos
 Sent: Sunday, July 13, 2003 1:47 PM
 To: 'KAREN THODE'; freebsd-gnats-submit@freebsd.org
 Subject: RE: i386/53620: Kernel panics / reboots during install of 5.1 to=
  40GB disk on 44
 
 Yes, thanks for checking.  The problem, I think, is that sysinstall tries=
  to install to ad0, though I'm not sure.
 
 This time I did not get a panic, instead, I just got the install overwrit=
 ing my live system.
 
 regards,
 -Nick
 -----Original Message-----
 From: KAREN THODE [mailto:thode12@msn.com] =20
 Sent: Sunday, July 13, 2003 11:13 AM
 To: Nick Triantos; freebsd-gnats-submit@freebsd.org
 Subject: Re: i386/53620: Kernel panics / reboots during install of 5.1 to=
  40GB disk on 44
 
 
 Did you add the dumpdev line to /etc/rc.conf?
 
 ----- Original Message -----
 From: Nick Triantos
 Sent: Saturday, July 12, 2003 11:58 PM
 To: 'KAREN THODE'; freebsd-gnats-submit@freebsd.org
 Subject: RE: i386/53620: Kernel panics / reboots during install of 5.1 to=
  40GB disk on 44
 
 (re-sending, my mail server is having problems, not sure if it made it th=
 rough)
 
 Hi, this did not work as expected.
 
 I built/installed a debug kernel, but when I ran /stand/sysinstall after =
 booting with that kernel (from the 20GB disk), it seemed to only know how=
  to install to /dev/ad0, which is the 20GB disk.  It overwrote part of my=
  working installation before I could cancel it.  fdisk/disklabel worked o=
 k to /dev/ad1, but the install of packages seemed to want to force itself=
  onto the live filesystem.
 
 (1) Is there something I could / should do to build a custom install CD w=
 ith the debug kernel?
 (1a) I could install yet another hard disk in the machine that the CD cou=
 ld use as swap space
 
 (2) Or maybe I can somehow mount all of my working disk as a read-only mo=
 unt?
 
 (3) It seems I should be able to get sysinstall to forcibly write to /dev=
 /ad1 only, but from reading over all the docs I can find, I could not see=
  a way to do that.
 
 (4) I could also use null-model to debug this, if it's reasonably easy to=
  set up.  The only compilication is that my other PCs all run WinXP, so I=
 'd have to install a gdb client for windows, and probably cygwin.
 
 regards, and thanks for all the help.
 
 -Nick
 
State-Changed-From-To: open->feedback 
State-Changed-By: remko 
State-Changed-When: Sun Sep 3 10:13:21 UTC 2006 
State-Changed-Why:  
Hi there, 

A lot had changed in the hardware detection and interaction 
since you filed your PR and I was wondering whether we still 
need to pay attention to this? 

Can you also tell whether you have used a 40 pins cable or 
a 80 pins ide cable? Since that -could- make up the difference. 
(I experienced that myself on a newer system). 

Thanks 


Responsible-Changed-From-To: freebsd-i386->remko 
Responsible-Changed-By: remko 
Responsible-Changed-When: Sun Sep 3 10:13:21 UTC 2006 
Responsible-Changed-Why:  
Grab the PR 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53620 

From: Nick Triantos <nick@triantos.com>
To: bug-followup@FreeBSD.org, nick@triantos.com
Cc:  
Subject: Re: i386/53620: [install] Kernel panics / reboots during install
	of 5.1 to 40GB disk on 440BX mobo
Date: Sun, 03 Sep 2006 08:45:32 -0700

 I no longer have this hardware, so I don't have a way to test it.  Since 
 it seems I'm the only person who was seeing this issue, go ahead and 
 close it out if you'd like, since it's no longer reproducible for me.  
 Thanks very much for the follow-up.

From: Nick Triantos <nick@triantos.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: i386/53620: [install] Kernel panics / reboots during install
	of 5.1 to 40GB disk on 440BX mobo
Date: Sun, 03 Sep 2006 08:45:38 -0700

 I no longer have this hardware, so I don't have a way to test it.  Since 
 it seems I'm the only person who was seeing this issue, go ahead and 
 close it out if you'd like, since it's no longer reproducible for me.  
 Thanks very much for the follow-up.
State-Changed-From-To: feedback->closed 
State-Changed-By: remko 
State-Changed-When: Sun Sep 3 16:53:27 UTC 2006 
State-Changed-Why:  
The submitter no longer has this hardware and replies that this PR can be closed. 

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