Date: Tue, 3 Sep 2002 15:10:09 -0300 (ADT) From: "Marc G. Fournier" <scrappy@hub.org> To: Andrew Gallatin <gallatin@cs.duke.edu> Cc: Matthew Dillon <dillon@apollo.backplane.com>, <freebsd-stable@FreeBSD.ORG> Subject: Re: Crash with KVM monitoring in place ... Message-ID: <20020903150940.T2186-100000@hub.org> In-Reply-To: <15731.55567.174393.782218@grasshopper.cs.duke.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020903150940.T2186-100000>