Re: PROBLEM FOUND WAS : Re: /usr/bin/top seg faulting
# [EMAIL PROTECTED] / 2002-12-03 14:02:58 -0800: flagg# top Segmentation fault flagg# I got a core file and ran gdb... I know almost nothing about gdb, but what the heck. (gdb) where #0 0x2810cbd8 in endpwent () from /usr/lib/libc.so.4 #1 0x2810d421 in endpwent () from /usr/lib/libc.so.4 #2 0x2810c1da in getpwent () from /usr/lib/libc.so.4 #3 0x804b28e in free () #4 0x804cb94 in clear () #5 0x8049389 in free () Ok. So this led me to a password file entry. This host is a NIS client with +@vpnusers/tmp:/usr/bin/false at the end of master.passwd (for the radiusd). Some missing commas in the netgroup file... could you file a PR? it shouldn't segfault. -- If you cc me or remove the list(s) completely I'll most likely ignore your message.see http://www.eyrie.org./~eagle/faqs/questions.html To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: /usr/bin/top seg faulting
# [EMAIL PROTECTED] / 2002-12-03 11:11:24 -0800: I just cvsup'd, buildworld, installworld, etc. this morning to RELENG_4_7. /usr/bin/top is segfaulting... FreeBSD flagg.csl.sri.com 4.7-RELEASE-p2 FreeBSD 4.7-RELEASE-p2 #6: Tue Dec 3 10:42:13 PST 2002 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/FLAGG i386 -r-xr-sr-x 1 root kmem 32520 Dec 3 03:04 /usr/bin/top bash-2.05a$ top Segmentation fault have you updated the kernel as well? buildkernel/installkernel. ls -l /kernel will tell you if in doubt. -- If you cc me or remove the list(s) completely I'll most likely ignore your message.see http://www.eyrie.org./~eagle/faqs/questions.html To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: /usr/bin/top seg faulting
# [EMAIL PROTECTED] / 2002-12-03 11:11:24 -0800: I just cvsup'd, buildworld, installworld, etc. this morning to RELENG_4_7. /usr/bin/top is segfaulting... FreeBSD flagg.csl.sri.com 4.7-RELEASE-p2 FreeBSD 4.7-RELEASE-p2 #6: Tue Dec 3 10:42:13 PST 2002 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/FLAGG i386 -r-xr-sr-x 1 root kmem 32520 Dec 3 03:04 /usr/bin/top bash-2.05a$ top Segmentation fault have you updated the kernel as well? buildkernel/installkernel. ls -l /kernel will tell you if in doubt. Yes (that was implied by `etc.' above) bash-2.05a$ ls -l /kernel -r-xr-xr-x 1 root wheel 2048739 Dec 3 03:00 /kernel bash-2.05a$ - Mike To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: /usr/bin/top seg faulting
On Tuesday 03 December 2002 11:31 am, Mike Hogsett wrote: # [EMAIL PROTECTED] / 2002-12-03 11:11:24 -0800: I just cvsup'd, buildworld, installworld, etc. this morning to RELENG_4_7. /usr/bin/top is segfaulting... FreeBSD flagg.csl.sri.com 4.7-RELEASE-p2 FreeBSD 4.7-RELEASE-p2 #6: Tue Dec 3 10:42:13 PST 2002 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/FLAGG i386 -r-xr-sr-x 1 root kmem 32520 Dec 3 03:04 /usr/bin/top bash-2.05a$ top Segmentation fault have you updated the kernel as well? buildkernel/installkernel. ls -l /kernel will tell you if in doubt. Yes (that was implied by `etc.' above) bash-2.05a$ ls -l /kernel -r-xr-xr-x 1 root wheel 2048739 Dec 3 03:00 /kernel bash-2.05a$ I think you have corrupted src. I am running basically the same source - util.c from diff and not having any problems. I would clean out /usr/src/contrib/top, recvsup, and rebuild everything. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: /usr/bin/top seg faulting
I think you have corrupted src. I am running basically the same source - util.c from diff and not having any problems. I would clean out /usr/src/contrib/top, recvsup, and rebuild everything. You said rebuild everything. Did you mean world/kernel or just top. I cleaned out top and rebuilt it but it made no difference. - Mike flagg# pwd /usr/src/usr.bin/top flagg# rm * flagg# rm /usr/src/contrib/top/* flagg# cvsup /etc/standard-supfile Connected to cvsup14.freebsd.org Updating collection src-all/cvs Checkout src/contrib/top/ADVERTISEMENT Checkout src/contrib/top/Changes Checkout src/contrib/top/Configure Checkout src/contrib/top/DISCLAIMER Checkout src/contrib/top/FAQ Checkout src/contrib/top/INSTALL Checkout src/contrib/top/Make.desc.X Checkout src/contrib/top/Makefile.X Checkout src/contrib/top/Porting Checkout src/contrib/top/README Checkout src/contrib/top/boolean.h Checkout src/contrib/top/commands.c Checkout src/contrib/top/display.c Checkout src/contrib/top/display.h Checkout src/contrib/top/getans Checkout src/contrib/top/getopt.c Checkout src/contrib/top/install Checkout src/contrib/top/layout.h Checkout src/contrib/top/loadavg.h Checkout src/contrib/top/m-template Checkout src/contrib/top/machine.h Checkout src/contrib/top/metatop Checkout src/contrib/top/os.h Checkout src/contrib/top/patchlevel.h Checkout src/contrib/top/prime.c Checkout src/contrib/top/screen.c Checkout src/contrib/top/screen.h Checkout src/contrib/top/sigconv.awk Checkout src/contrib/top/top.X Checkout src/contrib/top/top.c Checkout src/contrib/top/top.h Checkout src/contrib/top/top.local.H Checkout src/contrib/top/username.c Checkout src/contrib/top/utils.c Checkout src/contrib/top/utils.h Checkout src/contrib/top/version.c Checkout src/usr.bin/top/Makefile Checkout src/usr.bin/top/machine.c Checkout src/usr.bin/top/sigdesc.h Checkout src/usr.bin/top/top.local.1 Finished successfully flagg# pwd /usr/src/usr.bin/top flagg# make clean make make install rm -f top.local.h top.x top.1 top commands.o display.o machine.o screen.o top.o username.o utils.o version.o top.1.gz top.1.cat.gz cc -O -pipe -DHAVE_GETOPT -DHAVE_STRERROR -I/usr/src/usr.bin/top -I/usr/src/usr.bin/top/../../contrib/top -I. -DORDER-c /usr/src/usr.bin/top/../../contrib/top/commands.c Making top.local.h from /usr/src/usr.bin/top/../../contrib/top/top.local.H cc -O -pipe -DHAVE_GETOPT -DHAVE_STRERROR -I/usr/src/usr.bin/top -I/usr/src/usr.bin/top/../../contrib/top -I. -DORDER-c /usr/src/usr.bin/top/../../contrib/top/display.c cc -O -pipe -DHAVE_GETOPT -DHAVE_STRERROR -I/usr/src/usr.bin/top -I/usr/src/usr.bin/top/../../contrib/top -I. -DORDER-c /usr/src/usr.bin/top/machine.c cc -O -pipe -DHAVE_GETOPT -DHAVE_STRERROR -I/usr/src/usr.bin/top -I/usr/src/usr.bin/top/../../contrib/top -I. -DORDER-c /usr/src/usr.bin/top/../../contrib/top/screen.c cc -O -pipe -DHAVE_GETOPT -DHAVE_STRERROR -I/usr/src/usr.bin/top -I/usr/src/usr.bin/top/../../contrib/top -I. -DORDER-c /usr/src/usr.bin/top/../../contrib/top/top.c cc -O -pipe -DHAVE_GETOPT -DHAVE_STRERROR -I/usr/src/usr.bin/top -I/usr/src/usr.bin/top/../../contrib/top -I. -DORDER-c /usr/src/usr.bin/top/../../contrib/top/username.c cc -O -pipe -DHAVE_GETOPT -DHAVE_STRERROR -I/usr/src/usr.bin/top -I/usr/src/usr.bin/top/../../contrib/top -I. -DORDER-c /usr/src/usr.bin/top/../../contrib/top/utils.c cc -O -pipe -DHAVE_GETOPT -DHAVE_STRERROR -I/usr/src/usr.bin/top -I/usr/src/usr.bin/top/../../contrib/top -I. -DORDER-c /usr/src/usr.bin/top/../../contrib/top/version.c cc -O -pipe -DHAVE_GETOPT -DHAVE_STRERROR -I/usr/src/usr.bin/top -I/usr/src/usr.bin/top/../../contrib/top -I. -DORDER -o top commands.o display.o machine.o screen.o top.o username.o utils.o version.o -ltermcap -lm -lkvm Making top.x from /usr/src/usr.bin/top/../../contrib/top/top.X cat top.x /usr/src/usr.bin/top/top.local.1 top.1 gzip -cn top.1 top.1.gz install -s -o root -g kmem -m 2555 top /usr/bin install -o root -g wheel -m 444 top.1.gz /usr/share/man/man1 flagg# top Segmentation fault flagg# To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: /usr/bin/top seg faulting
I think you have corrupted src. I am running basically the same source - util.c from diff and not having any problems. I would clean out /usr/src/contrib/top, recvsup, and rebuild everything. You said rebuild everything. Did you mean world/kernel or just top. I cleaned out top and rebuilt it but it made no difference. flagg# top Segmentation fault flagg# Just as a side note regarding this host, everything else appears to be running fine (apache, postgresql, radiusd, cvsupd, syslogd are its primary services, and the other obvious things like getty's and sshd, etc. are fine). And so there is not confusion... flagg# which top /usr/bin/top flagg# ls -l `which top` -r-xr-sr-x 1 root kmem 32520 Dec 3 13:42 /usr/bin/top flagg# To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
PROBLEM FOUND WAS : Re: /usr/bin/top seg faulting
flagg# top Segmentation fault flagg# I got a core file and ran gdb... I know almost nothing about gdb, but what the heck. (gdb) where #0 0x2810cbd8 in endpwent () from /usr/lib/libc.so.4 #1 0x2810d421 in endpwent () from /usr/lib/libc.so.4 #2 0x2810c1da in getpwent () from /usr/lib/libc.so.4 #3 0x804b28e in free () #4 0x804cb94 in clear () #5 0x8049389 in free () Ok. So this led me to a password file entry. This host is a NIS client with +@vpnusers/tmp:/usr/bin/false at the end of master.passwd (for the radiusd). Some missing commas in the netgroup file... Thanks for everyone's help. - Mike To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message