Date: Sat, 26 Feb 2000 10:58:08 -0600 (CST) From: Steve Price <sprice@hiwaay.net> To: freebsd-alpha@freebsd.org Cc: phk@freebsd.org Subject: ps(1) coredumps on Alpha Message-ID: <Pine.OSF.4.21.0002261047010.25054-100000@fly.HiWAAY.net>
next in thread | raw e-mail | index | archive | help
Hi, I've been having a problem with ps(1) coredump'ing on my Alpha box for some time now and I think I've finally narrowed down the candidates. With a fresh CVSup from last night the problem with ps(1) is still there. However if I revert revision 1.24 of libkvm/kvm_proc.c it starts working again. RCS file: /home/ncvs/src/lib/libkvm/kvm_proc.c,v Working file: kvm_proc.c head: 1.25 ... ---------------------------- revision 1.24 date: 1999/11/16 20:31:46; author: phk; state: Exp; lines: +48 -0 Introduce commandline caching in the kernel. This fixes some nasty procfs problems for SMP, makes ps(1) run much faster, and makes ps(1) even less dependent on /proc which will aid chroot and jails alike. To disable this facility and revert to previous behaviour: sysctl -w kern.ps_arg_cache_limit=0 For full details see the current@FreeBSD.org mail-archives. ---------------------------- If I try to tweak the sysctl knob as the message suggests, here's what I get. root@s2(/usr/src/bin/ps)# sysctl -w kern.ps_arg_cache_limit=256 kern.ps_arg_cache_limit: 512 sysctl: kern.ps_arg_cache_limit: Invalid argument root@s2(/usr/src/bin/ps)# sysctl -w kern.ps_arg_cache_limit=0 kern.ps_arg_cache_limit: 512 sysctl: kern.ps_arg_cache_limit: Invalid argument root@s2(/usr/src/bin/ps)# Anyway, it seems the stack is being corrupted somehow by the new code added to kvm_getargv(3) in revision 1.24. Anyone have any ideas? I'd provide a stack trace from the ps(1) core file, but because the stack is being corrupted after line 483 of ps.c it would be pretty worthless. Thanks. -steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.4.21.0002261047010.25054-100000>