Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Apr 2004 10:20:08 +0930
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        GiZmen <gizmen@blurp.one.pl>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: problem with gdb
Message-ID:  <20040426005008.GR70766@wantadilla.lemis.com>
In-Reply-To: <20040425184207.GB15348@blurp.one.pl>
References:  <20040425184207.GB15348@blurp.one.pl>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040426005008.GR70766>