Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jim Blandy <jimb@codesourcery.com>
To: grinthock <grinthock@gmail.com>
Cc: gdb@sources.redhat.com
Subject: Re: WeirdProcess runs in GDB but not natively
Date: Tue, 24 Oct 2006 16:55:00 -0000	[thread overview]
Message-ID: <m3psch3b7d.fsf@codesourcery.com> (raw)
In-Reply-To: <6965889.post@talk.nabble.com> (grinthock@gmail.com's message of "Mon, 23 Oct 2006 19:10:07 -0700 (PDT)")


grinthock <grinthock@gmail.com> writes:
> Unsure if this is the perfect place to post this, if you know another
> appropriate place please advise.
>
> I have a compiled app, when I attempt to run it with ./appname it fails with
> an "ABORT TRAP"  and i'm unsure of why.
>
> Someone suggested GDB, so I of course ran it with  GDB ./process and then
> RUN  and the program runs.
>
> So why would a program run in GDB, but not natively?  What's different?
>
> Thanks.  (FYI, it's a Darwin on a PPC G5 PowerMAC)

Generally GDB tries to disturb the program as little as possible.
Ideally programs would always behave exactly the same way under GDB
that they do otherwise.

I couldn't say from what you've written here what's going on.  I'm the
opposite of a Darwin expert, though.  Maybe the program is
multi-threaded, and has a race condition, and its timing is being
affected by GDB.

If you have a program you can post that we could try out ourselves,
that would be the most helpful thing.


      reply	other threads:[~2006-10-24 16:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-24  2:10 grinthock
2006-10-24 16:55 ` Jim Blandy [this message]

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=m3psch3b7d.fsf@codesourcery.com \
    --to=jimb@codesourcery.com \
    --cc=gdb@sources.redhat.com \
    --cc=grinthock@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