From owner-freebsd-questions Sun Jul 21 15:19:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F16F037B41D for ; Sun, 21 Jul 2002 15:19:19 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 239B343E42 for ; Sun, 21 Jul 2002 15:19:19 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.5/8.12.5) id g6LMJIsv069117; Sun, 21 Jul 2002 17:19:18 -0500 (CDT) (envelope-from dan) Date: Sun, 21 Jul 2002 17:19:18 -0500 From: Dan Nelson To: Stefan Schwarzer Cc: freebsd-questions@FreeBSD.ORG Subject: Re: top(1) blocks Message-ID: <20020721221918.GI40625@dan.emsphone.com> References: <3D3AD89E.3000104@sschwarzer.net> <20020721195730.GH40625@dan.emsphone.com> <3D3B3144.6010603@sschwarzer.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D3B3144.6010603@sschwarzer.net> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Jul 22), Stefan Schwarzer said: > svss@purpurea:~$ kdump > 45359 ktrace RET ktrace 0 > 45359 ktrace CALL execve(0xbfbff5f8,0xbfbffb00,0xbfbffb10) > 45359 ktrace NAMI "/sbin/top" > 45359 ktrace RET execve -1 errno 2 No such file or directory > 45359 ktrace CALL execve(0xbfbff5f8,0xbfbffb00,0xbfbffb10) > 45359 ktrace NAMI "/bin/top" > 45359 ktrace RET execve -1 errno 2 No such file or directory > 45359 ktrace CALL execve(0xbfbff5f8,0xbfbffb00,0xbfbffb10) > 45359 ktrace NAMI "/usr/sbin/top" > 45359 ktrace RET execve -1 errno 2 No such file or directory > 45359 ktrace CALL execve(0xbfbff5f8,0xbfbffb00,0xbfbffb10) > 45359 ktrace NAMI "/usr/bin/top" > 45359 ktrace NAMI "/usr/libexec/ld-elf.so.1" Hm. you should see lines with "top" in the 2nd column. It looks like top isn't even being executed at all. Ah, wait. Top is setuid root on -STABLE. Try running ktrace/top as root. You should get a much larger dump. Only the last 20 or so lines will be important -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message