From owner-freebsd-questions@FreeBSD.ORG Fri Apr 6 20:46:04 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72134106566B for ; Fri, 6 Apr 2012 20:46:04 +0000 (UTC) (envelope-from ipfreak@yahoo.com) Received: from nm34-vm1.bullet.mail.ne1.yahoo.com (nm34-vm1.bullet.mail.ne1.yahoo.com [98.138.229.81]) by mx1.freebsd.org (Postfix) with SMTP id 2FD548FC08 for ; Fri, 6 Apr 2012 20:46:04 +0000 (UTC) Received: from [98.138.90.53] by nm34.bullet.mail.ne1.yahoo.com with NNFMP; 06 Apr 2012 20:44:03 -0000 Received: from [98.138.88.237] by tm6.bullet.mail.ne1.yahoo.com with NNFMP; 06 Apr 2012 20:44:02 -0000 Received: from [127.0.0.1] by omp1037.mail.ne1.yahoo.com with NNFMP; 06 Apr 2012 20:44:02 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 959163.60633.bm@omp1037.mail.ne1.yahoo.com Received: (qmail 29831 invoked by uid 60001); 6 Apr 2012 20:44:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1333745042; bh=TlcFZiYho6aQhseNhfi0x9OKiFAYx5IsIZlWPkNlqIQ=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=stWgT1Oj9zrDIfW83COCGgydvcT0XnNnZu14MpOjNKzZIZgkw9GV2c299/ihnG3gyEWWlDYIdPPV+FGXN7GKhmnEefVvQ5cjhmlXpoJNVqIEZNZG8zpFnGgwD6zZMRtP0/d5yeBeBacfsXq8NzRVK8AJtvLki6Mw7TspCjWAD38= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=1UrqBsx7wZJBJFX4wseU79R3UZwdizZcz+KEVss18LNXdouNjeRtH39iU2IIW5x2GkxFnEoo+zVlW35XKjaAtw77LG9XGdZAsK0K9sQpGgDy8zWZ28LGX/CEcf6bYtrIArWuQZA5VBDMDD0bgx7UScHrvC4E4tPJyjFjLsjCf8U=; X-YMail-OSG: Za8C7DYVM1n2rCioTmwphUD7RRMVhp8nyQynJ5CCCBGs59B Y8ITM4xdgd4Ifb07aEE__Yemprm_wImldf.gDm.pKbZ4Jkeh3pwUpCaXCiI5 y74JogH3mymsUqc3kCFQyhGcjZyzYNexoLdFww94Bwl_ayhkc9NOeR9S_FdS L.q10gTXAKnSSs1Pt.EFQUWmblobeMS_2QGBuaR17xMn9n5YjlzUZYtPkPD6 SNKM.fLW2jipMSgtGK0RT2Am20sHwNrGGqnBwU8roc095xPGSL9dEKL_MNs. xeYADvH9blmQqAQSDnKVJLRYaGRL8oZM56vVKHxYGrRFzPVwyJGB6xdQMzRo Ht7OEMuG3sjBsHLPurKpb9kRPFQIwGITgbEaM_rLcEpT4K97o2DzoZfcFLIG J1zS8OT68cxY_VwxbeImnrpM85BO7XCzcGvik90IpclEAl8oFbTzUSju5j8f RuYEb1Y0g3ShH_MV7tzqYvP3UymqRFOHjHs72OA-- Received: from [98.172.152.198] by web130205.mail.mud.yahoo.com via HTTP; Fri, 06 Apr 2012 13:44:02 PDT X-Mailer: YahooMailWebService/0.8.117.340979 References: <1333735492.43069.YahooMailNeo@web130205.mail.mud.yahoo.com> <08b701cd1420$f4e21a60$dea64f20$@fisglobal.com> <1333742522.34885.YahooMailNeo@web130202.mail.mud.yahoo.com> <08eb01cd1431$adfc5280$09f4f780$@fisglobal.com> Message-ID: <1333745042.8621.YahooMailNeo@web130205.mail.mud.yahoo.com> Date: Fri, 6 Apr 2012 13:44:02 -0700 (PDT) From: gahn To: Devin Teske , 'freebsd general questions' In-Reply-To: <08eb01cd1431$adfc5280$09f4f780$@fisglobal.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: learning freebsd kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gahn List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2012 20:46:04 -0000 thanks devin:=0A=0Awhat i meant was that one of my company's servers looks = like this:=0A=0Adebug.kdb.available: ddb gdb=0A=0A=0Ai am just wondering wh= y that is...=0A=0Abest=0A=0A/gahn=0A=0A=0A=0A----- Original Message -----= =0AFrom: Devin Teske =0ATo: 'gahn' ; 'freebsd general questions' =0ACc: = =0ASent: Friday, April 6, 2012 4:13 PM=0ASubject: RE: learning freebsd kern= el=0A=0A> -----Original Message-----=0A> From: gahn [mailto:ipfreak@yahoo.c= om]=0A> Sent: Friday, April 06, 2012 1:02 PM=0A> To: Devin Teske; 'freebsd = general questions'=0A> Subject: Re: learning freebsd kernel=0A> =0A> thanks= devin for the great tip. yeah, now i got core dumps...:)=0A> =0A> but wher= e is my "gdb" under that "debug.kdb.available"?=0A> =0A=0AI'm not sure I un= derstand the question.=0A=0Adebug.kdb.available shows "ddb" for me=0A=0AI u= sually use kgdb(1) for examining kernel core files.=0A-- =0ADevin=0A=0A=0A>= best=0A> =0A> /gahn=0A> =0A> =0A> =0A> ----- Original Message -----=0A> Fr= om: Devin Teske =0A> To: 'gahn' ; 'freebsd general questions' questions@freebsd.org>=0A> C= c:=0A> Sent: Friday, April 6, 2012 2:13 PM=0A> Subject: RE: learning freebs= d kernel=0A> =0A> =0A> =0A> > -----Original Message-----=0A> > From: owner-= freebsd-questions@freebsd.org [mailto:owner-freebsd-=0A> > questions@freebs= d.org] On Behalf Of gahn=0A> > Sent: Friday, April 06, 2012 11:05 AM=0A> > = To: freebsd general questions=0A> > Subject: learning freebsd kernel=0A> >= =0A> > hi gurus:=0A> >=0A> > how could i create the core dumps on freebsd k= ernel? i am trying to create a=0A> > kernel core dump on 8.1 but it didn't = happen:=0A> >=0A> > # sysctl -w debug.kdb.panic=3D1=0A> >=0A> > well the sy= stem went panic, entered the mode db>. i did "reboot' but there=0A> was=0A>= > no core/kernel dumps under /var/crash.=0A> >=0A> =0A> Did you set the "d= umpdev" directive in /etc/rc.conf?=0A> =0A> % grep dumpdev /etc/defaults/rc= .conf=0A> dumpdev=3D"NO"=A0 =A0 =A0 =A0 =A0 =A0 # Device name to crashdump = to (or NO).=0A> savecore_flags=3D""=A0 =A0 =A0=A0 # Used if dumpdev is enab= led above, and present.=0A> =0A> You should set the value of dumpdev to you= r swap device.=0A> =0A> You can get this value by executing the following:= =0A> =0A> awk '$3~/swap/{print $1}' /etc/fstab=0A> =0A> Should produce some= thing like "/dev/mfid0s1b" or "da0s1b" or "ada0s1b" or=0A> "ad0s1b" etc. de= pending on your RELEASE and hardware.=0A> =0A> If the output is, for exampl= e, "/dev/mfid0s1b", you should add the following=0Ato=0A> /etc/rc.conf:=0A>= =0A> dumpdev=3D"/dev/mfid0s1b"=0A> =0A> --=0A> Devin=0A> =0A> =0A> > the c= ustomized kernel has those information enabled:=0A> >=0A> > # Debugging for= use in -current=0A> > options=A0=A0=A0=A0=A0=A0=A0=A0 KDB=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 # Enable kernel debugger supp= ort.=0A> > options=A0=A0=A0=A0=A0=A0=A0=A0 DDB=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 # Support DDB.=0A> > options=A0=A0=A0=A0= =A0=A0=A0=A0 GDB=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 # Support remote GDB.=0A> >=0A> > user@host:~:$ sysctl -a | grep debug.= kdb=0A> > debug.kdb.stop_cpus: 1=0A> > debug.kdb.trap_code: 0=0A> > debug.k= db.trap: 0=0A> > debug.kdb.panic: 0=0A> > debug.kdb.enter: 0=0A> > debug.kd= b.current: ddb=0A> > debug.kdb.available: ddb=0A> >=0A> >=0A> >=0A> > by th= e way, where is my gdb? on one of my company's machisne, it looks like=0A> = > this:=0A> >=0A> > debug.kdb.available: ddb gdb=0A> >=0A> > thank you all= =0A> >=0A> > /gahn=0A> > _______________________________________________=0A= > > freebsd-questions@freebsd.org mailing list=0A> > http://lists.freebsd.o= rg/mailman/listinfo/freebsd-questions=0A> > To unsubscribe, send any mail t= o "freebsd-questions-=0A> unsubscribe@freebsd.org"=0A> =0A> _____________= =0A> The information contained in this message is proprietary and/or confid= ential.=0AIf=0A> you are not the intended recipient, please: (i) delete the= message and all=0Acopies;=0A> (ii) do not disclose, distribute or use the = message in any manner; and (iii)=0Anotify=0A> the sender immediately. In ad= dition, please be aware that any message=0A> addressed to our domain is sub= ject to archiving and review by persons other=0Athan=0A> the intended recip= ient. Thank you.=0A=0A=0A_____________=0AThe information contained in this = message is proprietary and/or confidential. If you are not the intended rec= ipient, please: (i) delete the message and all copies; (ii) do not disclose= , distribute or use the message in any manner; and (iii) notify the sender = immediately. In addition, please be aware that any message addressed to our= domain is subject to archiving and review by persons other than the intend= ed recipient. Thank you.=0A