problem with gdb
Greg 'groggy' Lehey
grog at FreeBSD.org
Sun Apr 25 18:20:54 PDT 2004
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 at FreeBSD.org for PGP public key.
See complete headers for address and phone numbers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20040426/8eb7661c/attachment.bin
More information about the freebsd-hackers
mailing list