From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26721 invoked by alias); 6 Jun 2005 04:34:46 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 26712 invoked by uid 22791); 6 Jun 2005 04:34:41 -0000 Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.192) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 06 Jun 2005 04:34:41 +0000 Received: by wproxy.gmail.com with SMTP id 69so1680663wri for ; Sun, 05 Jun 2005 21:34:40 -0700 (PDT) Received: by 10.54.8.8 with SMTP id 8mr2988856wrh; Sun, 05 Jun 2005 21:33:46 -0700 (PDT) Received: by 10.54.45.13 with HTTP; Sun, 5 Jun 2005 21:33:45 -0700 (PDT) Message-ID: <2be9765805060521331aef804f@mail.gmail.com> Date: Mon, 06 Jun 2005 04:34:00 -0000 From: Renzhong Xiao Reply-To: Renzhong Xiao To: Renzhong Xiao , gdb@sources.redhat.com Subject: Re: How GDB handle this case while program works well in GDB but crash in mormal mode In-Reply-To: <20050605205728.GA30835@white> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <2be9765805060507424526b153@mail.gmail.com> <2be97658050605075650ee2704@mail.gmail.com> <20050605205728.GA30835@white> X-SW-Source: 2005-06/txt/msg00033.txt.bz2 Thanks for your timely response, I will download valgrind and have a try. Renzhong Xiao On 6/6/05, Bob Rossi wrote: > On Sun, Jun 05, 2005 at 10:56:43PM +0800, Renzhong Xiao wrote: > > Hi, > > I have some trouble in using GDB 6.3.50_2004-12-28-cvs in Cygwin > > to debug the mencoder (which is a program in MPlayer).When I run > > mencoder in normal mode,it will pop up an error message saying > > mencoder.exe has error and will be closed. But I run mencoder in > > gdb,it works well. > > I don't know how to find this bug in GDB,Does GDB has the some > > feature to handle this case? > > > > Any information will be very appreciate! >=20 > I'm not an expert but there are probably many issues that could make this > appear. For instance, if timing is important, your program might run a > little slower in GDB than normally. If this is the case, things could > potentially run different in your program. Also, if there are memory > runtime error's in MPlayer, your program could act different when run in > different environments. >=20 > I would suggest using valgrind in Linux on MPlayer to see if there are > any memory runtime errors. >=20 > Bob Rossi >