From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 26 18:07:52 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 44F2816A4D0 for ; Mon, 26 Apr 2004 18:07:52 -0700 (PDT) Received: from blurp.one.pl (blurp.t4.ds.pwr.wroc.pl [156.17.226.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B86B843D2F for ; Mon, 26 Apr 2004 18:07:51 -0700 (PDT) (envelope-from gizmen@blurp.one.pl) Received: by blurp.one.pl (Postfix, from userid 1001) id 3E52F9C7; Tue, 27 Apr 2004 00:19:00 +0200 (CEST) Date: Tue, 27 Apr 2004 00:19:00 +0200 From: GiZmen To: freebsd-hackers@freebsd.org Message-ID: <20040426221900.GA26440@blurp.one.pl> References: <20040425184207.GB15348@blurp.one.pl> <20040426005008.GR70766@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040426005008.GR70766@wantadilla.lemis.com> User-Agent: Mutt/1.5.6i 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: Tue, 27 Apr 2004 01:07:52 -0000 > 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. > ---end quoted text--- no i do not have suid bit on this binary. I tried on other freebsd box and on other boxes it works good. i dont know what is wrong with this gdb :( -rwxr-xr-x 1 gizmen gizmen - 128189 26 Kwi 01:40 rect_matrix* so what else can be wrong ? -- Best Regards: GiZmen UNIX is user-friendly; it's just picky about its friends UNIX is simple; it just takes a genius to understand its simplicity