i386/53620: Kernel panics / reboots during install of 5.1 to
40GB disk on 44
KAREN THODE
thode12 at msn.com
Tue Jul 8 16:10:15 PDT 2003
The following reply was made to PR i386/53620; it has been noted by GNATS.
From: "KAREN THODE" <thode12 at msn.com>
To: "Nick Triantos" <nick at triantos.com>,
<freebsd-gnats-submit at 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
------=_NextPart_001_0000_01C3457B.0EFA6250
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
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
-----Original Message-----
From: KAREN THODE [mailto:thode12 at msn.com] =20
Sent: Sunday, July 06, 2003 2:07 PM
To: freebsd-gnats-submit at FreeBSD.org; nick at triantos.com
Subject: Re: i386/53620: Kernel panics / reboots during install of 5.1 to=
40GB disk on 44
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
------=_NextPart_001_0000_01C3457B.0EFA6250
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<HTML><BODY STYLE=3D"font:10pt verdana; border:none;"><DIV> </DIV> <=
DIV>Boot off of the 20 GB hard drive. Now, you need to make a copy =
of <FONT face=3D"Verdana, Geneva, Arial, Sans-serif">/usr/src/sys/i386/co=
nf/GENERIC</FONT> into a new directory called /usr/dbgkern. Now ope=
n up /usr/dbgkern/GENERIC in a text editor. Look for a line that sa=
ys "#makeoptions DEBUG=3D-g" and remove the pound sign from t=
he beginning. Now change "ident GENERIC" to "ident =
DBGKERN". Save this file as DBGKERN. Exit the editor. =
Now, type these commands (without the outer set of quotes) into the =
console while logged in as root.</DIV> <DIV>"cd /usr/dbgkern"</DIV> <DIV>=
"rm GENERIC"</DIV> <DIV>"cd /usr/src"</DIV> <DIV>"make buildkernel KERNCO=
NF=3D"/usr/dbgkern/DBGKERN""</DIV> <DIV>"make installkernel KERNCONF=3D"/=
usr/dbgkern/DBGKERN""</DIV> <DIV>Now, reboot the machine.</DIV> <DIV>&nbs=
p;</DIV> <DIV>As for the second question, you can perform kernel debuggin=
g without a serial cable. You have to type the command<FONT face=3D=
Arial><EM> "</EM><FONT face=3D"Verdana, Geneva, Arial, Sans-serif">gdb -k=
[-c name-of-core-dump-file]</FONT>"</FONT><FONT face=3D"Verdana, Geneva,=
Arial, Sans-serif"> into the shell while logged in as root, replacing na=
me-of-core-dump-file with the name of the kernel core dump. Once gd=
b displays the (kgdb) prompt, you can use hbreak {[file:]function|address=
} to set a breakpoint (maximum 4), bt to perform a backtrace of the stack=
, c to continue running the kernel, next to step over function calls, ste=
p to step into function calls, print expr to print the value of expr on t=
he terminal screen, and quit to quit gdb.</FONT></DIV> <DIV> </DIV> =
<DIV>Lucas</DIV> <DIV>----- Original Message -----</DIV> <BLOCKQUOTE styl=
e=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT=
: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style=3D"BACKGROUND: #e4e4e=
4; FONT: 10pt Arial; COLOR: black"><B>From:</B> Nick Triantos</DIV> <DIV =
style=3D"FONT: 10pt Arial"><B>Sent:</B> Monday, July 07, 2003 11:57 AM</D=
IV> <DIV style=3D"FONT: 10pt Arial"><B>To:</B> 'KAREN THODE'</DIV> <DIV s=
tyle=3D"FONT: 10pt Arial"><B>Subject:</B> RE: i386/53620: Kernel panics /=
reboots during install of 5.1 to 40GB disk on 44</DIV> <DIV> </DIV>=
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR> <DIV><SPAN cla=
ss=3D101265516-07072003><FONT face=3Dverdana>Hello,</FONT></SPAN></DIV> <=
DIV><SPAN class=3D101265516-07072003></SPAN> </DIV> <DIV><SPAN class=
=3D101265516-07072003><FONT face=3Dverdana>Is there a link somewhere on t=
he freebsd.org web site as to how to do that? Since I'm booting fro=
m 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 image, is that what you=
'd suggest? I've also never done kernel-level debugging of bsd, I a=
ssume it's done via serial interface?</FONT></SPAN></DIV> <DIV><SPAN clas=
s=3D101265516-07072003></SPAN> </DIV> <DIV><SPAN class=3D101265516-0=
7072003><FONT face=3Dverdana>cheers,</FONT></SPAN></DIV> <DIV><SPAN class=
=3D101265516-07072003>-Nick</SPAN></DIV> <BLOCKQUOTE dir=3Dltr style=3D"M=
ARGIN-RIGHT: 0px"> <DIV></DIV> <DIV class=3DOutlookMessageHeader lang=3De=
n-us dir=3Dltr align=3Dleft><FONT face=3DTahoma>-----Original Message----=
-<BR><B>From:</B> KAREN THODE [mailto:thode12 at msn.com] <BR><B>Sent:</B> S=
unday, July 06, 2003 2:07 PM<BR><B>To:</B> freebsd-gnats-submit at FreeBSD.o=
rg; nick at triantos.com<BR><B>Subject:</B> Re: i386/53620: Kernel panics / =
reboots during install of 5.1 to 40GB disk on 44<BR><BR></FONT></DIV> <DI=
V>Do you think that you could build a debugging kernel with crashdumps en=
abled and then replicate the kernel panic? If you can, post a =
panic message and gdb backtrace as a follow-up.</DIV> <DIV> </DIV> <=
DIV>Lucas<BR><BR></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
------=_NextPart_001_0000_01C3457B.0EFA6250--
More information about the freebsd-i386
mailing list