From offbyone@gmail.com Mon Dec 6 12:22:16 2004 Received: with ECARTIS (v1.0.0; list kdb); Mon, 06 Dec 2004 12:22:20 -0800 (PST) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.197]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id iB6KMEFJ004167 for ; Mon, 6 Dec 2004 12:22:16 -0800 Received: by rproxy.gmail.com with SMTP id q1so210819rnf for ; Mon, 06 Dec 2004 12:21:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=DvdBjDpv0DQj6sr1um3fb5Chz2Jiak3+RQcTOSQS8G+mZrP0JknK3FXJBZ5h6c91uCFRy9CSvZYfWqFbB1DuxmZdZ1eTFlvDMAkgbNcBHq0iTA/Kql6+xd5M4/tWsS8uC/SqB7GRP62NuFPzwauZvMtMY7qyYfy00eMxNCDqR7c= Received: by 10.38.97.74 with SMTP id u74mr694246rnb; Mon, 06 Dec 2004 12:21:42 -0800 (PST) Received: by 10.38.82.66 with HTTP; Mon, 6 Dec 2004 12:21:42 -0800 (PST) Message-ID: <9776f49104120612215fa68941@mail.gmail.com> Date: Mon, 6 Dec 2004 15:21:42 -0500 From: daniel reznick Reply-To: daniel reznick To: kdb@oss.sgi.com Subject: running kdb Mime-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-archive-position: 879 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: offbyone@gmail.com Precedence: bulk X-list: kdb Hi there - kdb looks great and I'd really like to start using it, but I am having some problems. I've gotten it patched/built into my kernel with no problems. I'm currently trying a vanilla 2.6.9 (x86) with the appropriate kdb patched in. Everything boots up fine. I hit 'pause', and get the kdb> prompt, and am able to get in a command or 2, provided that i type slowly. However, the keyboard is, um, unreliable in that if i type fast i get repeated and wrong characters echoing to me (and im pretty sure its not the keyboard or my typing) and kdb soon freezes. The keyboard seems to work fine otherwise (not in kdb). Any ideas of where to look to diagnose this? This as all with a normal ps2 keyboard. Also, a quick question - I tried to figure out the current state of using a USB keyboard with kdb. From what I can tell it seems like support was dropped because no one volunteered to maintain it. I also saw various patches posted, and wonder if anyone has it working under 2.6 with a recent kdb? If someone can explain a little bit about whats needed to make it work, I wouldnt mind taking a crack at fixing it. thanks! --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From katahira.kouichi@fmsl.fujitsu.com Mon Dec 13 23:50:16 2004 Received: with ECARTIS (v1.0.0; list kdb); Mon, 13 Dec 2004 23:50:22 -0800 (PST) Received: from fgwmail5.fujitsu.co.jp (fgwmail5.fujitsu.co.jp [192.51.44.35]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id iBE7np6s002119 for ; Mon, 13 Dec 2004 23:50:16 -0800 Received: from m6.gw.fujitsu.co.jp ([10.0.50.76]) by fgwmail5.fujitsu.co.jp (8.12.10/Fujitsu Gateway) id iBE7nNOP013137 for ; Tue, 14 Dec 2004 16:49:23 +0900 (envelope-from katahira.kouichi@fmsl.fujitsu.com) Received: from s0.gw.fujitsu.co.jp by m6.gw.fujitsu.co.jp (8.12.10/Fujitsu Domain Master) id iBE7nNWa009807 for ; Tue, 14 Dec 2004 16:49:23 +0900 (envelope-from katahira.kouichi@fmsl.fujitsu.com) Received: from s0.gw.fujitsu.co.jp (s0 [127.0.0.1]) by s0.gw.fujitsu.co.jp (Postfix) with ESMTP id 14596A7D35 for ; Tue, 14 Dec 2004 16:49:20 +0900 (JST) Received: from mailsn.fmsl.fujitsu.com (mailtrs.hnc.fujitsu.com [10.51.74.26]) by s0.gw.fujitsu.co.jp (Postfix) with ESMTP id A1B5BA7D33 for ; Tue, 14 Dec 2004 16:49:19 +0900 (JST) Received: from fmsl.fujitsu.com ([10.109.223.31]) by mailsn.fmsl.fujitsu.com (8.12.8/8.11.3) with SMTP id iBE7nI1Z016338 for ; Tue, 14 Dec 2004 16:49:19 +0900 From: katahira.kouichi@fmsl.fujitsu.com To: kdb@oss.sgi.com Subject: About support of the ARM architecture Date: Tue, 14 Dec 2004 16:49:40 +0900 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-Mailer: TuruKame 3.21 (WinNT,500) Message-Id: X-Virus-Scanned: ClamAV 0.80/627/Sun Dec 12 11:53:11 2004 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean X-archive-position: 880 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: katahira.kouichi@fmsl.fujitsu.com Precedence: bulk X-list: kdb Hello I want to debug Linux kernel using gdb. I am using integratorAP and ARM920T. And, I want to use the kernel of 2.6.6. However, KDB to ARM architecture is not supplied. Does anyone know whether KDB has been ported to an ARM-based processor? If KDB corresponding to the ARM architecture is supplied, please let me know the place(For example, a website). I checked the following FTP sites. ftp://oss.sgi.com/www/projects/kdb/download/v4.4 Best regards -------------------------------------------- katahira kouichi email:katahira.kouichi@fmsl.fujitsu.com --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From sdake@mvista.com Tue Dec 14 11:01:41 2004 Received: with ECARTIS (v1.0.0; list kdb); Tue, 14 Dec 2004 11:01:48 -0800 (PST) Received: from zipcode.az.mvista.com (rav-az.mvista.com [65.200.49.157]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id iBEJ1KJm021842 for ; Tue, 14 Dec 2004 11:01:41 -0800 Received: from persist.az.mvista.com (persist.az.mvista.com [10.50.1.87]) by zipcode.az.mvista.com (8.9.3/8.9.3) with ESMTP id MAA12761; Tue, 14 Dec 2004 12:36:33 -0700 Subject: Re: Anybody know whether or not kdb supports x86_64(for instance, ia32e) platform now?Thanx. From: Steven Dake Reply-To: sdake@mvista.com To: Keith Owens Cc: jfv@bluesong.net, "Chen, Yukun" , kdb@oss.sgi.com In-Reply-To: <5526.1099475686@ocs3.ocs.com.au> References: <5526.1099475686@ocs3.ocs.com.au> Content-type: text/plain Organization: MontaVista Software, Inc. Message-Id: <1103050819.26439.22.camel@persist.az.mvista.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Tue, 14 Dec 2004 12:00:19 -0700 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV 0.80/627/Sun Dec 12 11:53:11 2004 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean X-archive-position: 881 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: sdake@mvista.com Precedence: bulk X-list: kdb Folks, Please find the following patch against the link below which fixes a disassembly bug in kdb. If you continually disassemble, KDB oopses. BFD_ARCH_SIZE was defined to 32 when it should be 64. I am not sure if 4.4 also needs this fix. --- old/arch/x86_64/kdb/bfd.h 2004-12-14 14:16:47.000000000 +0900 +++ new/arch/x86_64/kdb/bfd.h 2004-12-14 14:17:22.000000000 +0900 @@ -53,7 +53,7 @@ /* These two lines get substitutions done by commands in Makefile.in. */ #define BFD_VERSION "2.9.5.0.22" -#define BFD_ARCH_SIZE 32 +#define BFD_ARCH_SIZE 64 #define BFD_HOST_64BIT_LONG 0 #if 0 #define BFD_HOST_64_BIT Thanks -steve On Wed, 2004-11-03 at 02:54, Keith Owens wrote: > On Wed, 03 Nov 2004 01:44:45 -0700, > Steven Dake wrote: > >My bad I didn't know you had already done a port of kdb for x86_64 to > >2.4. But I only see ia64 in the 4.3 directory. Could you send me a > >copy of the 2.4.25 patch for kdb you did? > > It's in there. > > ftp://oss.sgi.com/projects/kdb/download/v4.3/kdb-v4.3-2.4.25-x86-64-1.bz2 > --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From sdake@mvista.com Thu Dec 16 01:15:59 2004 Received: with ECARTIS (v1.0.0; list kdb); Thu, 16 Dec 2004 01:16:06 -0800 (PST) Received: from zipcode.az.mvista.com (rav-az.mvista.com [65.200.49.157]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id iBG9FceI028246 for ; Thu, 16 Dec 2004 01:15:58 -0800 Received: from persist.az.mvista.com (persist.az.mvista.com [10.50.1.87]) by zipcode.az.mvista.com (8.9.3/8.9.3) with ESMTP id CAA14292; Thu, 16 Dec 2004 02:51:29 -0700 Subject: Re: Anybody know whether or not kdb supports x86_64(for instance, ia32e) platform now?Thanx. From: Steven Dake Reply-To: sdake@mvista.com To: Keith Owens Cc: jfv@bluesong.NET, "Chen, Yukun" , kdb@oss.sgi.com In-Reply-To: <1103050819.26439.22.camel@persist.az.mvista.com> References: <5526.1099475686@ocs3.ocs.com.au> <1103050819.26439.22.camel@persist.az.mvista.com> Content-type: text/plain Organization: MontaVista Software, Inc. Message-Id: <1103188511.4341.33.camel@persist.az.mvista.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Thu, 16 Dec 2004 02:15:12 -0700 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV 0.80/627/Sun Dec 12 11:53:11 2004 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean X-archive-position: 882 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: sdake@mvista.com Precedence: bulk X-list: kdb Folks Find a patch against the x86_64 4.3 link below for a bug in the port. Entering ef 00 causes an oops. This has been fixed in the i386 version. This may exist in 4.4 I'm not sure. Thanks -steve --- old/arch/x86_64/kdb/kdbasupport.c 2004-12-15 14:00:53.000000000 + 0900 +++ new/arch/x86_64/kdb/kdbasupport.c 2004-12-15 14:02:30.000000000 + 0900 @@ -882,6 +882,11 @@ struct kdbregs *rlp; kdb_machreg_t contents; + if (!regs) { + kdb_printf("%s: pt_regs not available\n", __FUN CTION__); + return KDB_BADREG; + } + for (i=0, rlp=kdbreglist; i -#define BFD_ARCH_SIZE 32 > +#define BFD_ARCH_SIZE 64 > #define BFD_HOST_64BIT_LONG 0 > #if 0 > #define BFD_HOST_64_BIT > > Thanks > -steve > > > > On Wed, 2004-11-03 at 02:54, Keith Owens wrote: > > On Wed, 03 Nov 2004 01:44:45 -0700, > > Steven Dake wrote: > > >My bad I didn't know you had already done a port of kdb for x86_64 to > > >2.4. But I only see ia64 in the 4.3 directory. Could you send me a > > >copy of the 2.4.25 patch for kdb you did? > > > > It's in there. > > > > ftp://oss.sgi.com/projects/kdb/download/v4.3/kdb-v4.3-2.4.25-x86-64-1.bz2 > > > > --------------------------- > Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From kaos@sgi.com Thu Dec 16 03:17:27 2004 Received: with ECARTIS (v1.0.0; list kdb); Thu, 16 Dec 2004 03:17:34 -0800 (PST) Received: from larry.melbourne.sgi.com (mverd138.asia.info.net [61.14.31.138]) by oss.sgi.com (8.13.0/8.13.0) with SMTP id iBGBH4UH003482 for ; Thu, 16 Dec 2004 03:17:25 -0800 Received: from mail.ocs.com.au (pc-kao2.melbourne.sgi.com [134.14.52.228]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id WAA16819 for ; Thu, 16 Dec 2004 22:16:30 +1100 Received: from ocs3.ocs.com.au (ocs3.ocs.com.au [192.168.255.3]) by mail.ocs.com.au (Postfix) with ESMTP id D2A8B1800A3; Thu, 16 Dec 2004 22:16:09 +1100 (EST) Received: by ocs3.ocs.com.au (Postfix, from userid 16331) id 01F0EC2167; Thu, 16 Dec 2004 22:16:05 +1100 (EST) Received: from ocs3.ocs.com.au (localhost [127.0.0.1]) by ocs3.ocs.com.au (Postfix) with ESMTP id F297C1406E4; Thu, 16 Dec 2004 22:16:05 +1100 (EST) X-Mailer: exmh version 2.6.3_20040314 03/14/2004 with nmh-1.0.4 From: Keith Owens To: sdake@mvista.com Cc: jfv@bluesong.NET, "Chen, Yukun" , kdb@oss.sgi.com Subject: Re: Anybody know whether or not kdb supports x86_64(for instance, ia32e) platform now?Thanx. In-reply-to: Your message of "Thu, 16 Dec 2004 02:15:12 PDT." <1103188511.4341.33.camel@persist.az.mvista.com> Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Date: Thu, 16 Dec 2004 22:16:05 +1100 Message-ID: <9163.1103195765@ocs3.ocs.com.au> X-Virus-Scanned: ClamAV 0.80/627/Sun Dec 12 11:53:11 2004 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean Content-Transfer-Encoding: 8bit X-archive-position: 883 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: kaos@sgi.com Precedence: bulk X-list: kdb On Thu, 16 Dec 2004 02:15:12 -0700, Steven Dake wrote: >Folks > >Find a patch against the x86_64 4.3 link below for a bug in the port. > >Entering ef 00 causes an oops. This has been fixed in the i386 >version. This may exist in 4.4 I'm not sure. > >Thanks >-steve > >--- old/arch/x86_64/kdb/kdbasupport.c 2004-12-15 14:00:53.000000000 + >0900 >+++ new/arch/x86_64/kdb/kdbasupport.c 2004-12-15 14:02:30.000000000 + >0900 >@@ -882,6 +882,11 @@ > struct kdbregs *rlp; > kdb_machreg_t contents; > >+ if (!regs) { >+ kdb_printf("%s: pt_regs not available\n", __FUN >CTION__); >+ return KDB_BADREG; >+ } >+ > for (i=0, rlp=kdbreglist; i kdb_printf("%8s = ", rlp->reg_name); > kdba_getregcontents(rlp->reg_name, regs, &conte >nts); Your mailer wrapped the patch. The patch should not be necessary, anywhere in kdb that uses a struct pt_regs * should have a non-null value. There used to be tests scattered throughout kdb for 'if (regs)' but they just got in the way. Some time ago I made sure that all the entry paths set a valid pt_regs and removed all the unnecessary tests. There are a few KDB_NULL_REGS() calls left but they never trip and will be removed one day. The only time that there may be no registers is for reason KDB_SILENT. How did you get to kdba_dumpregs() with a valid set of registers? --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From helenhunter5@ezmail.egine.com Sat Dec 18 08:53:36 2004 Received: with ECARTIS (v1.0.0; list kdb); Sat, 18 Dec 2004 08:53:44 -0800 (PST) Received: from localhost.localdomain (151-238-234-66.cosmoweb.net [66.234.238.151]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id iBIGrFat000914 for ; Sat, 18 Dec 2004 08:53:36 -0800 Received: from ezmail.egine.com (dragon [127.0.0.1]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id iBIFGWln025939; Sat, 18 Dec 2004 10:16:32 -0500 From: "helenhunter5" To: helenhunter5@ezmail.egine.com Subject: Busy season starting/Investors want to finance/buy your property/business.. Date: Sat, 18 Dec 2004 10:16:32 -0500 Message-Id: <20041218151504.M61204@ezmail.egine.com> X-Mailer: Open WebMail 2.41 20041108 X-OriginatingIP: 4.239.42.112 (helenhunter5) MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 X-Virus-Scanned: ClamAV 0.80/627/Sun Dec 12 11:53:11 2004 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean Content-Transfer-Encoding: 8bit X-archive-position: 884 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: helenhunter5@ezmail.egine.com Precedence: bulk X-list: kdb Busy Season Starting Right Now !! Our eighth year in business. We are in the office 7 days a week for your convenience...... We have a list of 4514 investors/buyers who invest in/ buy businesses/propertys/patents//inventions !! Price $55.00 . You have previously been sent 277 samples....... If you just want to purchase our list right now send an e-mail to investorsbuyers4@rediffmail.com and we will e-mail you back purchase instructions. Be sure to tell us what country you are in. Ellen Hill Scott Allen Sales 215-744-1035 IF YOU ARE SEEKING THESE TERMS FROM INVESTORS YOU NEED OUR LIST !!!!! 1. Money NEVER has to be paid back to investors no matter what happens. 2. It is never based on your personal credit. 3. They never charge a fee. 4. If you are only seeking a business loan and not investors , up to a 2 year grace period before payments begin. 5. Decisions in 1 to 3 weeks. Totally Confidential !!! We have a list of 4514 very active investors/buyers . You'll find each contact on our list has ALREADY invested in/bought 2 or more businesses/patents/ patent pendings/inventions !!! in the last 27 months. That makes " all the difference " in getting investors/buyers quickly. These investors buyers have their check books out and are investing in/buying businesses weekly. Our investors/buyers list costs $55.00. All contact information on investors/buyers included along with their " private e-mails " so you can contact all of them in a matter of minutes..... They want you to use these e-mails. They are actively seeking business proposals. (One of the files we send you is set up to transmit your business info to these contacts quickly.) They are expecting you to e-mail them your business proposals. You have been previously sent 277 samples twice with the last two e-mails we sent you. Please note, though you can transmit your own e-mail message to the investors/buyers on our list..... we do have a girl who will transmit all the investors/buyers your message one by one for $27.00 extra. Some of our customers just don't want to bother to do it themselves. Ellen Hill 215-744-1035 Scott Allen Sales 4511 Comly Street Phila, Pa. 19135 U.S.A. Quick action by investors/buyers if needed !! Call us right now and get that business/property/invention invested in/sold !!! --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From sdake@mvista.com Tue Dec 21 11:39:32 2004 Received: with ECARTIS (v1.0.0; list kdb); Tue, 21 Dec 2004 11:39:39 -0800 (PST) Received: from zipcode.az.mvista.com (rav-az.mvista.com [65.200.49.157]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id iBLJdB4B005170 for ; Tue, 21 Dec 2004 11:39:32 -0800 Received: from persist.az.mvista.com (persist.az.mvista.com [10.50.1.87]) by zipcode.az.mvista.com (8.9.3/8.9.3) with ESMTP id NAA24390; Tue, 21 Dec 2004 13:15:15 -0700 Subject: Re: Anybody know whether or not kdb supports x86_64(for instance, ia32e) platform now?Thanx. From: Steven Dake Reply-To: sdake@mvista.com To: Keith Owens Cc: jfv@bluesong.NET, "Chen, Yukun" , kdb@oss.sgi.com In-Reply-To: <9163.1103195765@ocs3.ocs.com.au> References: <9163.1103195765@ocs3.ocs.com.au> Content-type: text/plain Organization: MontaVista Software, Inc. Message-Id: <1103657923.15890.7.camel@persist.az.mvista.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Tue, 21 Dec 2004 12:38:43 -0700 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV 0.80/627/Sun Dec 12 11:53:11 2004 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean X-archive-position: 885 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: sdake@mvista.com Precedence: bulk X-list: kdb with the x86_64 patch: Entering kdb (current=0xffffffff80636000, pid 0) on processor 0 due to Keyboardy [0]kdb> ef 00 r15 = Unable to handle kernel NULL pointer dereference<1> at 0000000000000 Oops: 0000 CPU 0 Pid: 0, comm: swapper Not tainted RIP: 0010:[]{kdba_getregcontents+363} RSP: 0000:ffffffff805f5e88 EFLAGS: 00010046 RAX: 0000000000000000 RBX: ffffffff80378b17 RCX: 0000000000000003 RDX: 0000000000000003 RSI: ffffffff80378b1a RDI: ffffffff80378b1b RBP: 0000000000000000 R08: ffffffff80378b17 R09: 0000000000000000 R10: ffffffff8038d2c8 R11: ffffffff8038cf80 R12: 0000000000000000 R13: ffffffff805f5f20 R14: 0000000000000000 R15: ffffffffffffffff FS: 0000000000000000(0000) GS:ffffffff805f1280(0000) knlGS:0000000000000000 CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b CR2: 0000000000000088 CR3: 0000000000101000 CR4: 00000000000006e0 Process swapper (pid: 0, stackpage=ffffffff80637000) Stack: ffffffff805f5e88 0000000000000000 ffffffff80315319 ffffffff8056fec0 ffffffff801c246c ffffffff805f5f38 ffffffff805f5f40 ffffffff805f5f48 ffffffff805f5f50 ffffffff8056ff83 ffffffff8056ff83 0000000000000000 Call Trace: []{kdba_getregcontents+280} []{kdbnearsym+90} []{kdba_dumpregs+1 []{kdb_ef+68} []{kdb_parse+812} []{kdb_local+1179} []{kdb_main_loop+ []{kdba_main_loop+71} []{kdb+1670} []{receive_chars+167} []{rs_interrup []{handle_IRQ_event+94} []{do_IRQ+16 []{default_idle+0} []{common_interru []{default_idle+30} []{cpu_id []{rest_init+107} On Thu, 2004-12-16 at 04:16, Keith Owens wrote: > On Thu, 16 Dec 2004 02:15:12 -0700, > Steven Dake wrote: > >Folks > > > >Find a patch against the x86_64 4.3 link below for a bug in the port. > > > >Entering ef 00 causes an oops. This has been fixed in the i386 > >version. This may exist in 4.4 I'm not sure. > > > >Thanks > >-steve > > > >--- old/arch/x86_64/kdb/kdbasupport.c 2004-12-15 14:00:53.000000000 + > >0900 > >+++ new/arch/x86_64/kdb/kdbasupport.c 2004-12-15 14:02:30.000000000 + > >0900 > >@@ -882,6 +882,11 @@ > > struct kdbregs *rlp; > > kdb_machreg_t contents; > > > >+ if (!regs) { > >+ kdb_printf("%s: pt_regs not available\n", __FUN > >CTION__); > >+ return KDB_BADREG; > >+ } > >+ > > for (i=0, rlp=kdbreglist; i > kdb_printf("%8s = ", rlp->reg_name); > > kdba_getregcontents(rlp->reg_name, regs, &conte > >nts); > > Your mailer wrapped the patch. > > The patch should not be necessary, anywhere in kdb that uses a > struct pt_regs * should have a non-null value. There used to be tests > scattered throughout kdb for 'if (regs)' but they just got in the way. > Some time ago I made sure that all the entry paths set a valid pt_regs > and removed all the unnecessary tests. There are a few KDB_NULL_REGS() > calls left but they never trip and will be removed one day. > > The only time that there may be no registers is for reason KDB_SILENT. > How did you get to kdba_dumpregs() with a valid set of registers? > > --------------------------- > Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From kaos@sgi.com Tue Dec 21 14:42:54 2004 Received: with ECARTIS (v1.0.0; list kdb); Tue, 21 Dec 2004 14:43:01 -0800 (PST) Received: from larry.melbourne.sgi.com (mverd138.asia.info.net [61.14.31.138]) by oss.sgi.com (8.13.0/8.13.0) with SMTP id iBLMgQm2020120 for ; Tue, 21 Dec 2004 14:42:47 -0800 Received: from mail.ocs.com.au (pc-kao2.melbourne.sgi.com [134.14.52.228]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id JAA26754 for ; Wed, 22 Dec 2004 09:41:53 +1100 Received: from ocs3.ocs.com.au (ocs3.ocs.com.au [192.168.255.3]) by mail.ocs.com.au (Postfix) with ESMTP id D910A18008D; Wed, 22 Dec 2004 09:41:47 +1100 (EST) Received: by ocs3.ocs.com.au (Postfix, from userid 16331) id ADF4EC216F; Wed, 22 Dec 2004 09:41:47 +1100 (EST) Received: from ocs3.ocs.com.au (localhost [127.0.0.1]) by ocs3.ocs.com.au (Postfix) with ESMTP id AA63B1406E4; Wed, 22 Dec 2004 09:41:47 +1100 (EST) X-Mailer: exmh version 2.6.3_20040314 03/14/2004 with nmh-1.0.4 From: Keith Owens To: sdake@mvista.com Cc: jfv@bluesong.NET, "Chen, Yukun" , kdb@oss.sgi.com Subject: Re: Anybody know whether or not kdb supports x86_64(for instance, ia32e) platform now?Thanx. In-reply-to: Your message of "Tue, 21 Dec 2004 12:38:43 PDT." <1103657923.15890.7.camel@persist.az.mvista.com> Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Date: Wed, 22 Dec 2004 09:41:47 +1100 Message-ID: <23821.1103668907@ocs3.ocs.com.au> X-Virus-Scanned: ClamAV 0.80/627/Sun Dec 12 11:53:11 2004 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean Content-Transfer-Encoding: 8bit X-archive-position: 886 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: kaos@sgi.com Precedence: bulk X-list: kdb On Tue, 21 Dec 2004 12:38:43 -0700, Steven Dake wrote: >with the x86_64 patch: > >Entering kdb (current=0xffffffff80636000, pid 0) on processor 0 due to >Keyboardy >[0]kdb> ef 00 > r15 = Unable to handle kernel NULL pointer dereference<1> at 0000000000000 Now I see, you are deliberately passing a bad value to the ef command. All kdb commands have this "feature", you can feed any address you like to any kdb command. Most commands do no validation on the address, trusting the user to know what they are doing. Even with your oops, kdb should recover and continue. On ia64, if I do ef 1 I get an oops followed by kdb: Debugger re-entered on cpu 1, new reason = 5 Attempting to abort command and recover and kdb continues. The abort and recover mechanism is there to catch bad user supplied addresses or corrupt addresses in data structures. It avoids the need for lots of verification code in the rest of kdb. If x86-64 does not recover from the oops, then there is something wrong with the x86-64 longjmp code. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From saroj_d@yahoo.com Wed Dec 22 21:05:31 2004 Received: with ECARTIS (v1.0.0; list kdb); Wed, 22 Dec 2004 21:05:39 -0800 (PST) Received: from web50601.mail.yahoo.com (web50601.mail.yahoo.com [206.190.38.88]) by oss.sgi.com (8.13.0/8.13.0) with SMTP id iBN55BxP013122 for ; Wed, 22 Dec 2004 21:05:31 -0800 Received: (qmail 93896 invoked by uid 60001); 23 Dec 2004 05:06:35 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=t0bfedzCDy/0eN1LmlsVEISYye7VeNLh8n/82hcZgkRxf1jpA9eT5BAY83TrOsan4cDEMMzRXxlDksj2LFIUOBkTneTbyhdWd8u8IMbPnk8csumWlv2cvSzfnWZF4+BfZth7ArafDXyhOSxs3vCo12syQ/2ZDuEh1LroRdP+INQ= ; Message-ID: <20041223050635.93894.qmail@web50601.mail.yahoo.com> Received: from [128.222.32.10] by web50601.mail.yahoo.com via HTTP; Thu, 23 Dec 2004 05:06:35 GMT Date: Thu, 23 Dec 2004 05:06:35 +0000 (GMT) From: skd Subject: kdb does not come up in SLES 9 (kernel 2.6) To: kdb@oss.sgi.com MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV 0.80/638/Tue Dec 21 14:41:34 2004 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean X-archive-position: 887 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: saroj_d@yahoo.com Precedence: bulk X-list: kdb Hi, Tried to compile a kernel with kdb support. The machine came up with the new kernel, but when pause/break key is pressed, keyboard light flickered showing that it is entering into kdb. But the kdb prompt did not come up although the machine got temporarily frozen. I type go into the invisible kdb and got the machine runnning again. I am using text mode console. Any suggestions is highly valuable for me. Thanks skd __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From kaos@sgi.com Wed Dec 22 22:55:36 2004 Received: with ECARTIS (v1.0.0; list kdb); Wed, 22 Dec 2004 22:55:42 -0800 (PST) Received: from larry.melbourne.sgi.com (mverd138.asia.info.net [61.14.31.138]) by oss.sgi.com (8.13.0/8.13.0) with SMTP id iBN6tEiH016992 for ; Wed, 22 Dec 2004 22:55:35 -0800 Received: from kao2.melbourne.sgi.com (kao2.melbourne.sgi.com [134.14.55.180]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id RAA00336 for ; Thu, 23 Dec 2004 17:56:38 +1100 Received: by kao2.melbourne.sgi.com (Postfix, from userid 16331) id 7BA6DC216A; Thu, 23 Dec 2004 17:56:26 +1100 (EST) Received: from kao2.melbourne.sgi.com (localhost [127.0.0.1]) by kao2.melbourne.sgi.com (Postfix) with ESMTP id 76B671406E4; Thu, 23 Dec 2004 17:56:26 +1100 (EST) X-Mailer: exmh version 2.6.3_20040314 03/14/2004 with nmh-1.0.4 From: Keith Owens To: skd Cc: kdb@oss.sgi.com Subject: Re: kdb does not come up in SLES 9 (kernel 2.6) In-reply-to: Your message of "Thu, 23 Dec 2004 05:06:35 -0000." <20041223050635.93894.qmail@web50601.mail.yahoo.com> Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Date: Thu, 23 Dec 2004 17:56:26 +1100 Message-ID: <21973.1103784986@kao2.melbourne.sgi.com> X-Virus-Scanned: ClamAV 0.80/638/Tue Dec 21 14:41:34 2004 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean Content-Transfer-Encoding: 8bit X-archive-position: 888 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: kaos@sgi.com Precedence: bulk X-list: kdb On Thu, 23 Dec 2004 05:06:35 +0000 (GMT), skd wrote: >Tried to compile a kernel with kdb support. The >machine came up with the new kernel, but when >pause/break key is pressed, keyboard light flickered >showing that it is entering into kdb. But the kdb >prompt did not come up although the machine got >temporarily frozen. I type go into the invisible kdb >and got the machine runnning again. I am using text >mode console. SuSE redirect the console to another tty, usually ttys10. Switching tty to see the console output requires that interrupts are working. By definition, kdb disables interrupts to stop the OS from changing while it is being debugged. Result - you cannot see the kdb output on SuSE. Change your boot string to use console=tty instead of console=tty10. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From saroj_d@yahoo.com Thu Dec 23 00:39:36 2004 Received: with ECARTIS (v1.0.0; list kdb); Thu, 23 Dec 2004 00:39:42 -0800 (PST) Received: from web50607.mail.yahoo.com (web50607.mail.yahoo.com [206.190.38.94]) by oss.sgi.com (8.13.0/8.13.0) with SMTP id iBN8dFi3024997 for ; Thu, 23 Dec 2004 00:39:35 -0800 Received: (qmail 18366 invoked by uid 60001); 23 Dec 2004 08:40:41 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=fBdOkCb6jEXA5lZgvtu1YyI1qO1yeYuxdqdtdPSsV9n6e+C1/3h4YbJqYfA4kqN+sn4msf4qqYX6VpE2CttVxzxDEj16dLbMCRrPIF0U+qwUfLSkzHF4vK0AhOhwEmylNQ+/SBlGt5Y0btu2LtL6GFfNaIN5Jvjma++io6YbFx0= ; Message-ID: <20041223084041.18364.qmail@web50607.mail.yahoo.com> Received: from [128.222.32.10] by web50607.mail.yahoo.com via HTTP; Thu, 23 Dec 2004 08:40:41 GMT Date: Thu, 23 Dec 2004 08:40:41 +0000 (GMT) From: skd Subject: Re: kdb does not come up in SLES 9 (kernel 2.6) To: Keith Owens Cc: kdb@oss.sgi.com In-Reply-To: <21973.1103784986@kao2.melbourne.sgi.com> MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV 0.80/638/Tue Dec 21 14:41:34 2004 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean X-archive-position: 889 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: saroj_d@yahoo.com Precedence: bulk X-list: kdb Hi, thanks everybody for suggestions. I switched to ttys10 and it worked. -skd --- Keith Owens wrote: > On Thu, 23 Dec 2004 05:06:35 +0000 (GMT), > skd wrote: > >Tried to compile a kernel with kdb support. The > >machine came up with the new kernel, but when > >pause/break key is pressed, keyboard light > flickered > >showing that it is entering into kdb. But the kdb > >prompt did not come up although the machine got > >temporarily frozen. I type go into the invisible > kdb > >and got the machine runnning again. I am using text > >mode console. > > SuSE redirect the console to another tty, usually > ttys10. Switching > tty to see the console output requires that > interrupts are working. By > definition, kdb disables interrupts to stop the OS > from changing while > it is being debugged. Result - you cannot see the > kdb output on SuSE. > > Change your boot string to use console=tty instead > of console=tty10. > > __________________________________ Do you Yahoo!? Dress up your holiday email, Hollywood style. Learn more. http://celebrity.mail.yahoo.com --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From kaos@sgi.com Sat Dec 25 04:17:01 2004 Received: with ECARTIS (v1.0.0; list kdb); Sat, 25 Dec 2004 04:17:13 -0800 (PST) Received: from larry.melbourne.sgi.com (mverd138.asia.info.net [61.14.31.138]) by oss.sgi.com (8.13.0/8.13.0) with SMTP id iBPCGdov028590 for ; Sat, 25 Dec 2004 04:17:00 -0800 Received: from mail.ocs.com.au (pc-kao2.melbourne.sgi.com [134.14.52.228]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id XAA13527 for ; Sat, 25 Dec 2004 23:17:55 +1100 Received: from ocs3.ocs.com.au (ocs3.ocs.com.au [192.168.255.3]) by mail.ocs.com.au (Postfix) with ESMTP id 8F31318008D; Sat, 25 Dec 2004 23:17:44 +1100 (EST) Received: by ocs3.ocs.com.au (Postfix, from userid 16331) id EF70CC216A; Sat, 25 Dec 2004 23:17:39 +1100 (EST) Received: from ocs3.ocs.com.au (localhost [127.0.0.1]) by ocs3.ocs.com.au (Postfix) with ESMTP id BB3BC1406E4; Sat, 25 Dec 2004 23:17:39 +1100 (EST) X-Mailer: exmh version 2.6.3_20040314 03/14/2004 with nmh-1.0.4 From: Keith Owens To: kdb@oss.sgi.com Cc: linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org Subject: Announce: kdb v4.4 is available for kernel 2.6.10 Date: Sat, 25 Dec 2004 23:17:39 +1100 Message-ID: <18921.1103977059@ocs3.ocs.com.au> X-Virus-Scanned: ClamAV 0.80/638/Tue Dec 21 14:41:34 2004 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean X-archive-position: 890 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: kaos@sgi.com Precedence: bulk X-list: kdb -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 KDB (Linux Kernel Debugger) has been updated. ftp://oss.sgi.com/projects/kdb/download/v4.4/ ftp://ftp.ocs.com.au/pub/mirrors/oss.sgi.com/projects/kdb/download/v4.4/ Current versions are :- kdb-v4.4-2.6.10-common-1.bz2 kdb-v4.4-2.6.10-i386-1.bz2 kdb-v4.4-2.6.10-ia64-1.bz2 kdb-v4.4-2.6.9-rc2-x86-64-1.bz2 (may or may not work with 2.6.10). Changelog extract since kdb-v4.4-2.6.9-common-1. 2004-12-25 Keith Owens * Add kobject command. * Ignore low addresses and large offsets in kdbnearsym(). * Console updates for sn2 simulator. * kdb v4.4-2.6.10-common-1. 2004-12-07 Keith Owens * kdb v4.4-2.6.10-rc3-common-1. 2004-11-23 Keith Owens * Remove warning message from kdb_get_one_user_page(), it was too noisy. * kdb v4.4-2.6.10-rc2-common-1. 2004-11-02 Keith Owens * Build with kdb patch applied but CONFIG_KDB=n. * kdb v4.4-2.6.10-rc1-common-2. 2004-10-29 Keith Owens * Handle new compression scheme for kallsyms. * Handle move of DEAD and ZOMBIE for task->state to task->exit_state. * Tweak the concept of a valid kernel address to get all symbols, including the symbols in the ia64 gate page. * kdb v4.4-2.6.10-rc1-common-1. 2004-10-21 Keith Owens * Handle variable size for the kernel log buffer. * kdb v4.4-2.6.9-common-2. Changelog extract since kdb-v4.4-2.6.9-i386-1. 2004-12-25 Keith Owens * kdb v4.4-2.6.10-i386-1. 2004-12-07 Keith Owens * kdb v4.4-2.6.10-rc3-i386-1. 2004-11-23 Keith Owens * Coexist with asmlinkage/fastcall changes. * kdb v4.4-2.6.10-rc2-i386-1. 2004-10-29 Keith Owens * Handle change defintions for hard and soft irq context. * Make stack switch in kdb backtrace look more like the oops output. * kdb v4.4-2.6.10-rc1-i386-1. Changelog extract since kdb v4.4-2.6.9-ia64-1. 2004-12-25 Keith Owens * Add cpuinfo command. * kdb-v4.4-2.6.10-ia64-1. 2004-12-07 Keith Owens * Clean up error path in kdba_mca_init. * kdb-v4.4-2.6.10-rc3-ia64-1. 2004-11-15 Keith Owens * kdb-v4.4-2.6.10-rc2-ia64-1. 2004-10-29 Keith Owens * kdb-v4.4-2.6.10-rc1-ia64-1. ps. Bah, Hum{de}bug! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Exmh version 2.1.1 10/15/1999 iD8DBQFBzVpji4UHNye0ZOoRAmy+AJ4iSaztTqGLjr+Ck0X8+TMdXB41IQCghc/P p7GtfCEOmVPDj/SVHdecFyw= =oO+Z -----END PGP SIGNATURE----- --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From saroj_d@yahoo.com Sun Dec 26 21:05:33 2004 Received: with ECARTIS (v1.0.0; list kdb); Sun, 26 Dec 2004 21:05:40 -0800 (PST) Received: from web50605.mail.yahoo.com (web50605.mail.yahoo.com [206.190.38.92]) by oss.sgi.com (8.13.0/8.13.0) with SMTP id iBR55CgK002046 for ; Sun, 26 Dec 2004 21:05:33 -0800 Received: (qmail 80054 invoked by uid 60001); 27 Dec 2004 05:06:37 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=mw3xqlnUvE/+b6e/Qg7QfPHLTIeNs4ua0sHEAganm0xxC1VO2E+CdrxTGO+6HNQZC+/cZujCzMOUx3EzU8MyS1fbtgaslCL180rq+CRpCBzM6hsDD5gFRZAQyowa1XZkzafzHW0elZS1zsQSZHEWdZXTKivX745eDjAPjASa4q4= ; Message-ID: <20041227050637.80052.qmail@web50605.mail.yahoo.com> Received: from [128.222.32.10] by web50605.mail.yahoo.com via HTTP; Mon, 27 Dec 2004 05:06:37 GMT Date: Mon, 27 Dec 2004 05:06:37 +0000 (GMT) From: skd Subject: Can kdb analyse a kernel hang situation? To: kdb@oss.sgi.com MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV 0.80/638/Tue Dec 21 14:41:34 2004 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean X-archive-position: 891 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: saroj_d@yahoo.com Precedence: bulk X-list: kdb Hi, I am using a kdb-enabled kernel for debugging purpose. When I install a faulty driver module and do some IO on it I get a kernel hang. I would like to debug it. I can enter kdb thru keyboard interrupt after the said situation. Can kdb help me debug the hang situation? -skd ___________________________________________________________ ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From kaos@sgi.com Sun Dec 26 23:57:01 2004 Received: with ECARTIS (v1.0.0; list kdb); Sun, 26 Dec 2004 23:57:08 -0800 (PST) Received: from larry.melbourne.sgi.com (mverd138.asia.info.net [61.14.31.138]) by oss.sgi.com (8.13.0/8.13.0) with SMTP id iBR7udjv006324 for ; Sun, 26 Dec 2004 23:57:00 -0800 Received: from mail.ocs.com.au (pc-kao2.melbourne.sgi.com [134.14.52.228]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id SAA14683 for ; Mon, 27 Dec 2004 18:57:59 +1100 Received: from ocs3.ocs.com.au (ocs3.ocs.com.au [192.168.255.3]) by mail.ocs.com.au (Postfix) with ESMTP id 1374718008D; Mon, 27 Dec 2004 18:57:52 +1100 (EST) Received: by ocs3.ocs.com.au (Postfix, from userid 16331) id D13ACC216A; Mon, 27 Dec 2004 18:57:51 +1100 (EST) Received: from ocs3.ocs.com.au (localhost [127.0.0.1]) by ocs3.ocs.com.au (Postfix) with ESMTP id CDC561406E4; Mon, 27 Dec 2004 18:57:51 +1100 (EST) X-Mailer: exmh version 2.6.3_20040314 03/14/2004 with nmh-1.0.4 From: Keith Owens To: skd Cc: kdb@oss.sgi.com Subject: Re: Can kdb analyse a kernel hang situation? In-reply-to: Your message of "Mon, 27 Dec 2004 05:06:37 -0000." <20041227050637.80052.qmail@web50605.mail.yahoo.com> Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Date: Mon, 27 Dec 2004 18:57:51 +1100 Message-ID: <19664.1104134271@ocs3.ocs.com.au> X-Virus-Scanned: ClamAV 0.80/638/Tue Dec 21 14:41:34 2004 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean Content-Transfer-Encoding: 8bit X-archive-position: 892 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: kaos@sgi.com Precedence: bulk X-list: kdb On Mon, 27 Dec 2004 05:06:37 +0000 (GMT), skd wrote: >I am using a kdb-enabled kernel for debugging purpose. >When I install a faulty driver module and do some IO >on it I get a kernel hang. I would like to debug it. I >can enter kdb thru keyboard interrupt after the said >situation. Can kdb help me debug the hang situation? kdb can get you into the hung kernel. Your skills in kernel structure and code are what will help you debug the hang. kdb is a debugging tool, it is not a substitue for knowledge of the kernel internals. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From max@duempel.org Mon Dec 27 04:50:54 2004 Received: with ECARTIS (v1.0.0; list kdb); Mon, 27 Dec 2004 04:51:00 -0800 (PST) Received: from swift.roonstrasse.net (qmailr@duempel.org [81.209.165.42]) by oss.sgi.com (8.13.0/8.13.0) with SMTP id iBRCoWEh026566 for ; Mon, 27 Dec 2004 04:50:53 -0800 Received: (qmail 8193 invoked by uid 1001); 27 Dec 2004 12:51:04 -0000 Date: Mon, 27 Dec 2004 13:51:04 +0100 From: Max Kellermann To: kdb@oss.sgi.com Subject: linux 2.6.10: KDB+kprobes won't compile Message-ID: <20041227125103.GA8175@roonstrasse.net> Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6+20040907i X-Virus-Scanned: ClamAV 0.80/638/Tue Dec 21 14:41:34 2004 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean Content-Transfer-Encoding: 8bit X-archive-position: 893 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: max@duempel.org Precedence: bulk X-list: kdb Hi, I tried the new KDB 4.4 release for kernel 2.6.10, on x86. I enabled both KDB and kprobes: CC arch/i386/kernel/traps.o arch/i386/kernel/traps.c:796: error: conflicting types for 'do_int3' arch/i386/kernel/traps.c:677: error: previous definition of 'do_int3' was here make[2]: *** [arch/i386/kernel/traps.o] Error 1 .. both of them define the function do_int3(). Disabling kprobes solved my problem, although I'd like to have both. (Please Cc responses to max@duempel.org) Regards, Max Kellermann --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From pmarques@grupopie.com Mon Dec 27 04:59:45 2004 Received: with ECARTIS (v1.0.0; list kdb); Mon, 27 Dec 2004 04:59:52 -0800 (PST) Received: from bipbip.comserver-pie.com ([195.23.16.24]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id iBRCxL2a026916 for ; Mon, 27 Dec 2004 04:59:44 -0800 Received: from localhost (localhost [127.0.0.1]) by bipbip.comserver-pie.com (Postfix) with ESMTP id B1EA026B14A; Mon, 27 Dec 2004 12:58:25 +0000 (WET) Received: from bipbip.comserver-pie.com (localhost [127.0.0.1]) by localhost (VaMailArmor-2.0.1.16) id 20480-3DB4B6F3; Mon, 27 Dec 2004 12:58:25 +0000 Received: from rd-server.pie.domain (195-23-20-139.net.novis.pt [195.23.20.139]) by bipbip.comserver-pie.com (Postfix) with ESMTP id 3E8C026B14A; Mon, 27 Dec 2004 12:58:23 +0000 (WET) Received: from [192.168.0.198] (unknown [192.168.0.198]) by rd-server.pie.domain (Postfix) with ESMTP id D631F96002; Mon, 27 Dec 2004 13:00:35 +0000 (WET) Message-ID: <41D00772.1050600@grupopie.com> Date: Mon, 27 Dec 2004 13:00:34 +0000 From: Paulo Marques Organization: Grupo PIE User-Agent: Mozilla Thunderbird 0.7.1 (X11/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Keith Owens Cc: kdb@oss.sgi.com, linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org Subject: Re: Announce: kdb v4.4 is available for kernel 2.6.10 References: <18921.1103977059@ocs3.ocs.com.au> In-Reply-To: <18921.1103977059@ocs3.ocs.com.au> Content-type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-AntiVirus: checked by Vexira MailArmor (version: 2.0.1.16; VAE: 6.29.0.5; VDF: 6.29.0.34; host: bipbip) X-Virus-Scanned: ClamAV 0.80/638/Tue Dec 21 14:41:34 2004 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean X-archive-position: 894 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: pmarques@grupopie.com Precedence: bulk X-list: kdb Keith Owens wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > KDB (Linux Kernel Debugger) has been updated. Hi, I browsed the patch quickly to check for kallsyms uses, and validate them, and it generally seems correct. There is however one comment that makes me wonder: *2.6 kallsyms has a "feature" where it unpacks the name into a string. *If that string is reused before the caller expects it then the caller *sees its string change without warning. kallsyms_lookup always uses the buffer passed to it in the case the symbol is a kernel symbol, as opposed to a module symbol, and so it is not responsible for the buffer. So this probably only happens when a module symbol is returned directly from its symbol table, and then the module is unloaded (or something like that). Later there is another comment: * Another 2.6 kallsyms "feature". Sometimes the sym_name is * set but the buffer passed into kallsyms_lookup is not used, * so it contains garbage. It seems to be the same problem. If we modify kallsyms_lookup to always use the buffer passed, even if the symbol comes from a module, maybe we could solve both problems with just one change. On the downside, a caller that just wants to print the name, would pay an unnecessary string copy. On the upside, this would make the interface more coherent with standard C functions like strcpy, where the buffer passed is always the buffer returned. So, is it worth the change? -- Paulo Marques - www.grupopie.com "A journey of a thousand miles begins with a single step." Lao-tzu, The Way of Lao-tzu --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From kaos@sgi.com Mon Dec 27 05:59:48 2004 Received: with ECARTIS (v1.0.0; list kdb); Mon, 27 Dec 2004 05:59:54 -0800 (PST) Received: from larry.melbourne.sgi.com (mverd138.asia.info.net [61.14.31.138]) by oss.sgi.com (8.13.0/8.13.0) with SMTP id iBRDxR8p029661 for ; Mon, 27 Dec 2004 05:59:48 -0800 Received: from mail.ocs.com.au (pc-kao2.melbourne.sgi.com [134.14.52.228]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id BAA19698 for ; Tue, 28 Dec 2004 01:00:45 +1100 Received: from ocs3.ocs.com.au (ocs3.ocs.com.au [192.168.255.3]) by mail.ocs.com.au (Postfix) with ESMTP id 3DEA518008D; Tue, 28 Dec 2004 01:00:37 +1100 (EST) Received: by ocs3.ocs.com.au (Postfix, from userid 16331) id 8514FC216A; Tue, 28 Dec 2004 01:00:36 +1100 (EST) Received: from ocs3.ocs.com.au (localhost [127.0.0.1]) by ocs3.ocs.com.au (Postfix) with ESMTP id 7666D1406E4; Tue, 28 Dec 2004 01:00:36 +1100 (EST) X-Mailer: exmh version 2.6.3_20040314 03/14/2004 with nmh-1.0.4 From: Keith Owens To: Max Kellermann Cc: kdb@oss.sgi.com Subject: Re: linux 2.6.10: KDB+kprobes won't compile In-reply-to: Your message of "Mon, 27 Dec 2004 13:51:04 BST." <20041227125103.GA8175@roonstrasse.net> Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Date: Tue, 28 Dec 2004 01:00:36 +1100 Message-ID: <31280.1104156036@ocs3.ocs.com.au> X-Virus-Scanned: ClamAV 0.80/638/Tue Dec 21 14:41:34 2004 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean Content-Transfer-Encoding: 8bit X-archive-position: 895 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: kaos@sgi.com Precedence: bulk X-list: kdb On Mon, 27 Dec 2004 13:51:04 +0100, Max Kellermann wrote: >Hi, > >I tried the new KDB 4.4 release for kernel 2.6.10, on x86. I enabled >both KDB and kprobes: > > CC arch/i386/kernel/traps.o >arch/i386/kernel/traps.c:796: error: conflicting types for 'do_int3' >arch/i386/kernel/traps.c:677: error: previous definition of 'do_int3' >was here >make[2]: *** [arch/i386/kernel/traps.o] Error 1 > >.. both of them define the function do_int3(). Disabling kprobes >solved my problem, although I'd like to have both. Apply this kludge over kdb-v4.4-2.6.10-i386-1. I plan to convert kdb into the notify_die model "soon", which will remove these conflicts. Index: linux/arch/i386/kernel/traps.c =================================================================== --- linux.orig/arch/i386/kernel/traps.c 2004-12-25 20:29:52.000000000 +1100 +++ linux/arch/i386/kernel/traps.c 2004-12-28 00:56:14.000000000 +1100 @@ -675,6 +675,10 @@ void unset_nmi_callback(void) #ifdef CONFIG_KPROBES fastcall int do_int3(struct pt_regs *regs, long error_code) { +#ifdef CONFIG_KDB + if (kdb(KDB_REASON_BREAK, error_code, regs)) + return 0; +#endif if (notify_die(DIE_INT3, "int3", regs, error_code, 3, SIGTRAP) == NOTIFY_STOP) return 1; @@ -791,14 +795,15 @@ clear_TF: return; } -#ifdef CONFIG_KDB -fastcall void do_int3(struct pt_regs * regs, long error_code) +#if defined(CONFIG_KDB) && !defined(CONFIG_KPROBES) +fastcall int do_int3(struct pt_regs *regs, long error_code) { if (kdb(KDB_REASON_BREAK, error_code, regs)) - return; + return 0; do_trap(3, SIGTRAP, "int3", 1, regs, error_code, NULL); + return 0; } -#endif /* CONFIG_KDB */ +#endif /* CONFIG_KDB && !CONFIG_KPROBES */ /* --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From kiragon@gmail.com Mon Dec 27 21:16:08 2004 Received: with ECARTIS (v1.0.0; list kdb); Mon, 27 Dec 2004 21:16:15 -0800 (PST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.200]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id iBS5Flmr020617 for ; Mon, 27 Dec 2004 21:16:08 -0800 Received: by wproxy.gmail.com with SMTP id 68so432272wra for ; Mon, 27 Dec 2004 21:17:12 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=YGJg2ItBAMrRU3x6xIJFXkkx7j7xHP7BLwvT+2vQv0QSN1bc8gAhlF7Wq1XypnplL6xEoe4UV9gldmLSg+j1fOmD4SAEt/nPFSkRZIq8oelmujqxjX5l5MPTQd8LXpIfrUGmBvf5FdeIZ1HbuRXFJt6Q6pmee+oiQyn9x/O/0zU= Received: by 10.54.47.77 with SMTP id u77mr898901wru; Mon, 27 Dec 2004 21:17:12 -0800 (PST) Received: by 10.54.44.35 with HTTP; Mon, 27 Dec 2004 21:17:12 -0800 (PST) Message-ID: Date: Tue, 28 Dec 2004 07:17:12 +0200 From: Garik E Reply-To: Garik E To: kdb@oss.sgi.com Subject: debugging kdb Mime-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV 0.80/638/Tue Dec 21 14:41:34 2004 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean X-archive-position: 896 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: kiragon@gmail.com Precedence: bulk X-list: kdb Hi, I've adopted kdb-v4.3 i686 to work with redhat enterprise linux kernel. In general it works fine, but sometimes, on SMP architectures it enters kdb prompt. Backtracing shows `default_idle' on top of each stack and `go' command returns to program. What can cause it and how can I trace this thing ? --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From kaos@sgi.com Mon Dec 27 21:55:14 2004 Received: with ECARTIS (v1.0.0; list kdb); Mon, 27 Dec 2004 21:55:24 -0800 (PST) Received: from larry.melbourne.sgi.com (mverd138.asia.info.net [61.14.31.138]) by oss.sgi.com (8.13.0/8.13.0) with SMTP id iBS5smPE031232 for ; Mon, 27 Dec 2004 21:55:11 -0800 Received: from mail.ocs.com.au (pc-kao2.melbourne.sgi.com [134.14.52.228]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id QAA02625 for ; Tue, 28 Dec 2004 16:56:09 +1100 Received: from ocs3.ocs.com.au (ocs3.ocs.com.au [192.168.255.3]) by mail.ocs.com.au (Postfix) with ESMTP id 0CF9C18008D; Tue, 28 Dec 2004 16:56:03 +1100 (EST) Received: by ocs3.ocs.com.au (Postfix, from userid 16331) id E5871C2169; Tue, 28 Dec 2004 16:55:59 +1100 (EST) Received: from ocs3.ocs.com.au (localhost [127.0.0.1]) by ocs3.ocs.com.au (Postfix) with ESMTP id E21871406E4; Tue, 28 Dec 2004 16:55:59 +1100 (EST) X-Mailer: exmh version 2.6.3_20040314 03/14/2004 with nmh-1.0.4 From: Keith Owens To: Garik E Cc: kdb@oss.sgi.com Subject: Re: debugging kdb In-reply-to: Your message of "Tue, 28 Dec 2004 07:17:12 +0200." Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Date: Tue, 28 Dec 2004 16:55:59 +1100 Message-ID: <31088.1104213359@ocs3.ocs.com.au> X-Virus-Scanned: ClamAV 0.80/638/Tue Dec 21 14:41:34 2004 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean Content-Transfer-Encoding: 8bit X-archive-position: 897 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: kaos@sgi.com Precedence: bulk X-list: kdb On Tue, 28 Dec 2004 07:17:12 +0200, Garik E wrote: >I've adopted kdb-v4.3 i686 to work with redhat enterprise linux kernel. >In general it works fine, but sometimes, on SMP architectures it >enters kdb prompt. >Backtracing shows `default_idle' on top of each stack and `go' command >returns to program. >What can cause it and how can I trace this thing ? kdb prints the reason it was entered, what does it say? If that does not help, drop into kdb and set LINES 2000 set KDBDEBUG 0xffff go When it drops into kdb you will get lots of kdb debugging information. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.