From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 25 18:20:54 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BC4916A4DD for ; Sun, 25 Apr 2004 18:20:54 -0700 (PDT) Received: from ozlabs.org (ozlabs.org [203.10.76.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 310D843E95 for ; Sun, 25 Apr 2004 17:50:14 -0700 (PDT) (envelope-from grog@lemis.com) Received: from blackwater.lemis.com (blackwater.lemis.com [192.109.197.80]) by ozlabs.org (Postfix) with ESMTP id BF1AD2BD83 for ; Mon, 26 Apr 2004 10:50:11 +1000 (EST) Received: by blackwater.lemis.com (Postfix, from userid 1004) id 0CA6951227; Mon, 26 Apr 2004 10:20:09 +0930 (CST) Date: Mon, 26 Apr 2004 10:20:08 +0930 From: Greg 'groggy' Lehey To: GiZmen Message-ID: <20040426005008.GR70766@wantadilla.lemis.com> References: <20040425184207.GB15348@blurp.one.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4PJudQiuYY5+cwwi" Content-Disposition: inline In-Reply-To: <20040425184207.GB15348@blurp.one.pl> User-Agent: Mutt/1.4.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: freebsd-hackers@freebsd.org Subject: Re: problem with gdb X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2004 01:20:54 -0000 --4PJudQiuYY5+cwwi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sunday, 25 April 2004 at 20:42:07 +0200, GiZmen wrote: > Hello, > > I have problem with gdb. When i start gdb as a regular user or even user > i wheel group, i cant debug program that i want. I start gdb with my program > and i set breakpoint and i run this program. And i do not stop i this > breakpoint. gdb prints output and this message: > > Program exited normally. > You can't do that without a process to debug. > > and it return to gdb prompt. > > When i do the the same as root it works perfectly. I dont have any > idea what is the cause of this problem. Looks like you're debugging a setuid executable. By the time you hit the breakpoint, the process has changed its euid, and you can no longer stop it. Greg -- Note: I discard all HTML mail unseen. Finger grog@FreeBSD.org for PGP public key. See complete headers for address and phone numbers. --4PJudQiuYY5+cwwi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQFAjFzAIubykFB6QiMRApPhAJ0bxYoTQ8YCXeidQEoq0lrYFeoNHACeJi3G sVx0idfLrD69CHP+aendyP4= =ynBW -----END PGP SIGNATURE----- --4PJudQiuYY5+cwwi--