From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23825 invoked by alias); 5 Jun 2005 20:57:33 -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 23812 invoked by uid 22791); 5 Jun 2005 20:57:31 -0000 Received: from lakermmtao06.cox.net (HELO lakermmtao06.cox.net) (68.230.240.33) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sun, 05 Jun 2005 20:57:31 +0000 Received: from white ([68.9.64.121]) by lakermmtao06.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050605205729.POPP749.lakermmtao06.cox.net@white>; Sun, 5 Jun 2005 16:57:29 -0400 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 1Df2BV-00081W-00; Sun, 05 Jun 2005 16:57:29 -0400 Date: Sun, 05 Jun 2005 20:57:00 -0000 From: Bob Rossi To: Renzhong Xiao Cc: gdb@sources.redhat.com Subject: Re: How GDB handle this case while program works well in GDB but crash in mormal mode Message-ID: <20050605205728.GA30835@white> Mail-Followup-To: Renzhong Xiao , gdb@sources.redhat.com References: <2be9765805060507424526b153@mail.gmail.com> <2be97658050605075650ee2704@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2be97658050605075650ee2704@mail.gmail.com> User-Agent: Mutt/1.3.28i X-SW-Source: 2005-06/txt/msg00032.txt.bz2 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! 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. I would suggest using valgrind in Linux on MPlayer to see if there are any memory runtime errors. Bob Rossi