• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What does this mean?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What does this mean?


  • Subject: Re: What does this mean?
  • From: Henry Maddocks <email@hidden>
  • Date: Mon, 02 May 2005 23:14:54 +1200

Run your app in gdb and when it stops type 'bt' (backtrace) or 'where' and it will show you the code that is causing the EXC_BAD_ACCESS.

You can run it in the XCode debugger to get the same info. The other messages were probably symptoms of this error.

You are probably trying to access memory (variable / class whatever) you don't own or is no longer valid.


On 02/05/2005, at 6:10 PM, John Draper wrote:

Based on the earlier problem I submitted, where I mentioned the source level
debugger indicated I had 3 threads.... thread 1, 2 and 5.


However,  in gdb console - I get....

Program received signal:  "EXC_BAD_ACCESS".
[Switching to process 3753 thread 0xca1f]
[Switching to process 3753 thread 0xca1f]
(gdb) info thread
Thread 0xca1f (local 0x179f) has current state "WAITING"
Thread 0xca1f has a suspend count of 0.
(gdb)

In the 'info thread' display you see above, it only shows 2 threads and not 3.
WHY is that? Why would the source level debugger show 3 and the gdb only
show 2.


Also what do they mean by:

current state "WAITING" - what is "WAITING", the sub thread? or the
main event loop thread?


and

  suspend count of 0   - what do they mean by suspend count?

I search for these words in the ADC site, they only talk about them, but don't
explain it.... Can someone explain this to me please?


John
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: What does this mean?
      • From: John Draper <email@hidden>
References: 
 >What does this mean? (From: John Draper <email@hidden>)

  • Prev by Date: (freely) Rotating Text
  • Next by Date: Re: to NSTask or not to NSTask
  • Previous by thread: What does this mean?
  • Next by thread: Re: What does this mean?
  • Index(es):
    • Date
    • Thread