From owner-freebsd-stable Thu Jun 29 17: 0:36 2000 Delivered-To: freebsd-stable@freebsd.org Received: from gndrsh.dnsmgr.net (GndRsh.dnsmgr.net [198.145.92.4]) by hub.freebsd.org (Postfix) with ESMTP id C43A137B65C for ; Thu, 29 Jun 2000 17:00:28 -0700 (PDT) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: (from freebsd@localhost) by gndrsh.dnsmgr.net (8.9.3/8.9.3) id RAA00417; Thu, 29 Jun 2000 17:00:16 -0700 (PDT) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <200006300000.RAA00417@gndrsh.dnsmgr.net> Subject: Re: dc19 fructration. In-Reply-To: <14683.31607.612798.996185@trooper.velocet.net> from David Gilbert at "Jun 29, 2000 12:38:15 pm" To: dgilbert@velocet.ca (David Gilbert) Date: Thu, 29 Jun 2000 17:00:16 -0700 (PDT) Cc: bright@wintelcom.net (Alfred Perlstein), Freebsd-stable@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > >>>>> "Alfred" == Alfred Perlstein writes: > > Alfred> Using truss or gdb on ifconfig may help you find out which > Alfred> syscall is the culpret. > > Problem is that the system crashes before ifconfig -a completes, and > it would appear that the stack smashing that whatever syscall is > running does will bring down the kernel regardless of how I proceed. > > I was asking specifically if someone new the approximate code path > that ifconfig -a traversed since I was having trouble collecting this > data. > > I would assume that even if I knew what syscall was running that I'd > have to trace my way through a maze of function pointers before I got > my way clear. Here is the truss output of an ifconfig -a on an older system, but the kernel calls should be the same: (FreeBSD 3.2) syscall __sysctl(0xefbfd8c4,0x6,0x0,0xefbfd8c0,0x0,0x0) returns 0 (0x0) syscall readlink("/etc/malloc.conf",0xefbfd81c,63) errno 2 'No such file or directory' syscall mmap(0x0,4096,0x3,0x1002,-1,0x0) returns 671526912 (0x2806b000) syscall break(0x8079000) returns 0 (0x0) syscall break(0x807a000) returns 0 (0x0) syscall __sysctl(0xefbfd8c4,0x6,0x8079000,0xefbfd8c0,0x0,0x0) returns 0 (0x0) syscall socket(0x2,0x2,0x0) returns 3 (0x3) syscall ioctl(3,SIOCGIFMETRIC,0x80752f0) returns 0 (0x0) syscall ioctl(3,SIOCGIFMTU,0x80752f0) returns 0 (0x0) syscall fstat(1,0xefbfd528) returns 0 (0x0) syscall break(0x807e000) returns 0 (0x0) syscall ioctl(3,SIOCGIFMEDIA,0xefbfd7f8) returns 0 (0x0) syscall ioctl(3,SIOCGIFMEDIA,0xefbfd7f8) returns 0 (0x0) syscall close(3) returns 0 (0x0) syscall socket(0x2,0x2,0x0) returns 3 (0x3) syscall ioctl(3,SIOCGIFMETRIC,0x80752f0) returns 0 (0x0) syscall ioctl(3,SIOCGIFMTU,0x80752f0) returns 0 (0x0) syscall ioctl(3,SIOCGIFMEDIA,0xefbfd7f8) returns 0 (0x0) syscall ioctl(3,SIOCGIFMEDIA,0xefbfd7f8) returns 0 (0x0) syscall close(3) returns 0 (0x0) syscall socket(0x2,0x2,0x0) returns 3 (0x3) syscall ioctl(3,SIOCGIFMETRIC,0x80752f0) returns 0 (0x0) syscall ioctl(3,SIOCGIFMTU,0x80752f0) returns 0 (0x0) syscall ioctl(3,SIOCGIFMEDIA,0xefbfd7f8) errno 22 'Invalid argument' syscall close(3) returns 0 (0x0) syscall madvise(0x8079000,0x1000,0x5) returns 0 (0x0) de0: flags=8802 mtu 1500 ether 00:c0:f0:04:2c:d4 media: autoselect (10base5/AUI) status: active supported media: autoselect 10base5/AUI 10base2/BNC 10baseT/UTP 10baseT/UTP de1: flags=8843 mtu 1500 inet 198.145.92.4 netmask 0xffffffe0 broadcast 198.145.92.31 inet 198.145.92.17 netmask 0xffffffff broadcast 198.145.92.17 ether 00:80:c8:3e:32:de media: autoselect (10baseT/UTP) status: active supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 syscall write(1,0x807a000,677) returns 677 (0x2a5) syscall exit(0x0) process exit, rval = 0 -- Rod Grimes - KD7CAX @ CN85sl - (RWG25) rgrimes@gndrsh.dnsmgr.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message