From owner-freebsd-stable Tue Sep 3 11:10:29 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5335F37B400 for ; Tue, 3 Sep 2002 11:10:13 -0700 (PDT) Received: from earth.hub.org (earth.hub.org [64.49.215.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDD0943E6E for ; Tue, 3 Sep 2002 11:10:12 -0700 (PDT) (envelope-from scrappy@hub.org) Received: from earth.hub.org (earth.hub.org [64.49.215.11]) by earth.hub.org (Postfix) with ESMTP id 9E81F2CCA1C; Tue, 3 Sep 2002 15:10:09 -0300 (ADT) Date: Tue, 3 Sep 2002 15:10:09 -0300 (ADT) From: "Marc G. Fournier" To: Andrew Gallatin Cc: Matthew Dillon , Subject: Re: Crash with KVM monitoring in place ... In-Reply-To: <15731.55567.174393.782218@grasshopper.cs.duke.edu> Message-ID: <20020903150940.T2186-100000@hub.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Okay, odd ... it compiles clean, but it gives an 'Exec' error when I try to load? jupiter# make -f Makefile.client Warning: Object directory not changed from original /root/netdump jupiter# make -f Makefile.client clean rm -f .depend vnode_if.h opt_vmpage.h setdef0.c setdef1.c setdefs.h setdef0.o setdef1.o netdump_client.ko netdump_client.kld netdump_client.o @ machine symb.tmp tmp.o opt_vmpage.h vnode_if.h jupiter# make -f Makefile.client Warning: Object directory not changed from original /root/netdump @ -> /usr/src/sys machine -> /usr/src/sys/i386/include perl @/kern/vnode_if.pl -h @/kern/vnode_if.src touch opt_vmpage.h cc -O -mpentium -pipe -g -g -I/home/gallatin/netdump -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -DKLD_MODULE -nostdinc -I- -I/home/gallatin/netdump -I. -I@ -I@/../include -I/usr/include -mpreferred-stack-boundary=2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -c netdump_client.c ld -r -o netdump_client.kld netdump_client.o gensetdefs netdump_client.kld cc -O -mpentium -pipe -g -g -I/home/gallatin/netdump -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -DKLD_MODULE -nostdinc -I- -I/home/gallatin/netdump -I. -I@ -I@/../include -I/usr/include -mpreferred-stack-boundary=2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -c setdef0.c cc -O -mpentium -pipe -g -g -I/home/gallatin/netdump -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -DKLD_MODULE -nostdinc -I- -I/home/gallatin/netdump -I. -I@ -I@/../include -I/usr/include -mpreferred-stack-boundary=2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -c setdef1.c ld -Bshareable -o netdump_client.ko setdef0.o netdump_client.kld setdef1.o jupiter# kldload ./netdump_client.ko kldload: can't load ./netdump_client.ko: Exec format error jupiter# make -f Makefile.client install install -o root -g wheel -m 555 netdump_client.ko /modules jupiter# kldload netdump_client.ko kldload: can't load netdump_client.ko: Exec format error jupiter# file !$ file netdump_client.ko netdump_client.ko: ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD), not stripped On Mon, 2 Sep 2002, Andrew Gallatin wrote: > > Marc G. Fournier writes: > > Awhile back, someone posted this to the lists: > > > > http://www.cs.duke.edu/~anderson/freebsd/netdump/readme.html > > > > To do dumps to a 'dump server' ... i tried it on a 4.4 kernel, I believe > > it was, and altho it looked like it was dumping, I got zero bits on the > > remote server, so I'm figuring changes in the kernel itself ... > > > > Any chance on getting such working (and maybe into) the latest source > > trees? It seems to be it would be most valuable, especially as more and > > I had a spare hour this afternoon, and I just got it working again on > an SMP PIII running a -stable that's only a few weeks old. I think it > was failing due to changes in the ip_fw_chk_ptr() interface. Sorry I > didn't have time to debug it when you tried it earlier. > > I've left a tarball at: > http://people.freebsd.org/~gallatin/netdump.tgz > > Its still something of a hack -- you must be running an fxp or a de > interface for it to work. You also need to have ipfw compiled into > the kernel... I'm using: > > options IPFIREWALL #firewall > options IPFIREWALL_FORWARD #enable transparent proxy support > options IPFIREWALL_DEFAULT_TO_ACCEPT #allow everything by default > > For some reason, automatic sysctl installation no longer works, so if > you want to disable partial dumps, you'll need to manually do it at > compile time (or via ddb or gdb). > > Cheers, > > Drew > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message