public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Bob Rossi <bob@brasko.net>
To: Renzhong Xiao <rzxiao@gmail.com>
Cc: gdb@sources.redhat.com
Subject: Re: How GDB handle this case while program works well in GDB but crash in mormal mode
Date: Sun, 05 Jun 2005 20:57:00 -0000	[thread overview]
Message-ID: <20050605205728.GA30835@white> (raw)
In-Reply-To: <2be97658050605075650ee2704@mail.gmail.com>

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

  reply	other threads:[~2005-06-05 20:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2be9765805060507424526b153@mail.gmail.com>
2005-06-05 14:56 ` Renzhong Xiao
2005-06-05 20:57   ` Bob Rossi [this message]
2005-06-06  4:34     ` Renzhong Xiao
2005-06-07 16:10   ` Dave Korn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050605205728.GA30835@white \
    --to=bob@brasko.net \
    --cc=gdb@sources.redhat.com \
    --cc=rzxiao@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).