From owner-freebsd-questions@FreeBSD.ORG Fri Apr 6 20:02:09 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BB059106566C for ; Fri, 6 Apr 2012 20:02:09 +0000 (UTC) (envelope-from ipfreak@yahoo.com) Received: from nm1.bullet.mail.ac4.yahoo.com (nm1.bullet.mail.ac4.yahoo.com [98.139.52.198]) by mx1.freebsd.org (Postfix) with SMTP id 5AEDF8FC18 for ; Fri, 6 Apr 2012 20:02:09 +0000 (UTC) Received: from [98.139.52.188] by nm1.bullet.mail.ac4.yahoo.com with NNFMP; 06 Apr 2012 20:02:03 -0000 Received: from [98.139.52.178] by tm1.bullet.mail.ac4.yahoo.com with NNFMP; 06 Apr 2012 20:02:03 -0000 Received: from [127.0.0.1] by omp1061.mail.ac4.yahoo.com with NNFMP; 06 Apr 2012 20:02:03 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 15180.90976.bm@omp1061.mail.ac4.yahoo.com Received: (qmail 38514 invoked by uid 60001); 6 Apr 2012 20:02:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1333742522; bh=EB39y64Uh1Z7UMraCUZLmhy1Zu9rM7PIXtxUBSCGbO8=; 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=xaDauihR+bwbgo3hfFeqz5yML7++fjRnEVdNJ0fzoirMG6rruU0kP9VfOpYdgX3pLJrT1mshZaZXnvjyMGSC7DdCPtR5nol/iu1c3mRS1ojFuLBZ0/xNOZBzZTnCO0gqf/QXBam6dKUk23Cdv0WH3uIIx8kpcQOO5eaU/4RNyDs= 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=OBD4Vx28qFwxYK4cH+SpC6yT2qLd6MnuMIpKZvHs0Yb4sihc6RWoQc06quY/No2AcQcidxZUv62cScXKEHZKDvLrMFi7y6eFKssAsaOVNkIk9F2k9IZFqIbmgq8MDmyZ16Y9xQCDhw4uRNpypmAZ04Pj0HrsobiO19CKlQydmFQ=; X-YMail-OSG: I6wfxyYVM1mxn9tdAUNY8HBRlytvcPQEYTzQcmhYn9Opky. bctN8MX2jSJNzhoyqG5NGMCUmd4mcG4aNrzfCQ59AbLJrFiBxMPrqsCWM_Mw fQoXcZ5_cZ4naxMQMFs1kH_2bfiZ49EMt3YhVdSTyQzpyiN4kTOJQSCjEnMq AG_H4Qb3kZxxi4SZYzDLSq4v0hmAVH.oWdu3LoyXlhXB6cs5.FjvQyqdpX3M MqnITaOdtgzQg8EpCxvBXx5XJGricBkgJ_weMVqBmHST.6b9ay_AVBOVLABI UUJdlOePYf8WbS0ORYiVL3Xh0f3pi9iLOlfr9wJtiY3i731n7J.MizU2dAXV u6POmQIWZnEuj_XudYgGvdc7l3icWEF4NvgJwurJjNFuDy0mT0v_X_5FQyE2 qX5YAgz2WrOYDw9TN7JnwT8y50_dmHl.boYtcEHz0X_EuUckzA.9yP4x7ttz c0wrs_1Ji5qHcR7WsgbXG Received: from [98.172.152.198] by web130202.mail.mud.yahoo.com via HTTP; Fri, 06 Apr 2012 13:02:02 PDT X-Mailer: YahooMailWebService/0.8.117.340979 References: <1333735492.43069.YahooMailNeo@web130205.mail.mud.yahoo.com> <08b701cd1420$f4e21a60$dea64f20$@fisglobal.com> Message-ID: <1333742522.34885.YahooMailNeo@web130202.mail.mud.yahoo.com> Date: Fri, 6 Apr 2012 13:02:02 -0700 (PDT) From: gahn To: Devin Teske , 'freebsd general questions' In-Reply-To: <08b701cd1420$f4e21a60$dea64f20$@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:02:09 -0000 thanks devin for the great tip. yeah, now i got core dumps...:)=0A=0Abut wh= ere is my "gdb" under that "debug.kdb.available"?=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 2:13 PM= =0ASubject: RE: learning freebsd kernel=0A=0A=0A=0A> -----Original Message-= ----=0A> From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-= =0A> questions@freebsd.org] On Behalf Of gahn=0A> Sent: Friday, April 06, 2= 012 11:05 AM=0A> To: freebsd general questions=0A> Subject: learning freebs= d kernel=0A> =0A> hi gurus:=0A> =0A> how could i create the core dumps on f= reebsd kernel? i am trying to create a=0A> kernel core dump on 8.1 but it d= idn'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 was=0A> no = core/kernel dumps under /var/crash.=0A> =0A=0ADid you set the "dumpdev" dir= ective in /etc/rc.conf?=0A=0A% grep dumpdev /etc/defaults/rc.conf=0Adumpdev= =3D"NO"=A0 =A0 =A0 =A0 =A0 =A0 # Device name to crashdump to (or NO).=0Asav= ecore_flags=3D""=A0 =A0 =A0 # Used if dumpdev is enabled above, and presen= t.=0A=0AYou should set the value of dumpdev to your swap device.=0A=0AYou c= an get this value by executing the following:=0A=0Aawk '$3~/swap/{print $1}= ' /etc/fstab=0A=0AShould produce something like "/dev/mfid0s1b" or "da0s1b"= or "ada0s1b" or=0A"ad0s1b" etc. depending on your RELEASE and hardware.=0A= =0AIf the output is, for example, "/dev/mfid0s1b", you should add the follo= wing to=0A/etc/rc.conf:=0A=0Adumpdev=3D"/dev/mfid0s1b"=0A=0A-- =0ADevin=0A= =0A=0A> the customized kernel has those information enabled:=0A> =0A> # Deb= ugging 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 debugge= r support.=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.kdb.trap: = 0=0A> debug.kdb.panic: 0=0A> debug.kdb.enter: 0=0A> debug.kdb.current: ddb= =0A> debug.kdb.available: ddb=0A> =0A> =0A> =0A> by the way, where is my gd= b? 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 mai= ling list=0A> http://lists.freebsd.org/mailman/listinfo/freebsd-questions= =0A> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebs= d.org"=0A=0A_____________=0AThe information contained in this message is pr= oprietary and/or confidential. If you are not the intended recipient, pleas= e: (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 su= bject to archiving and review by persons other than the intended recipient.= Thank you.=0A