* WeirdProcess runs in GDB but not natively
@ 2006-10-24 2:10 grinthock
2006-10-24 16:55 ` Jim Blandy
0 siblings, 1 reply; 2+ messages in thread
From: grinthock @ 2006-10-24 2:10 UTC (permalink / raw)
To: gdb
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)
--
View this message in context: http://www.nabble.com/WeirdProcess-runs-in-GDB-but-not-natively-tf2498816.html#a6965889
Sent from the gdb - General mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: WeirdProcess runs in GDB but not natively
2006-10-24 2:10 WeirdProcess runs in GDB but not natively grinthock
@ 2006-10-24 16:55 ` Jim Blandy
0 siblings, 0 replies; 2+ messages in thread
From: Jim Blandy @ 2006-10-24 16:55 UTC (permalink / raw)
To: grinthock; +Cc: gdb
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-10-24 16:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-24 2:10 WeirdProcess runs in GDB but not natively grinthock
2006-10-24 16:55 ` Jim Blandy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox