• 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
Help with debugger (mach_msg_trap) message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with debugger (mach_msg_trap) message


  • Subject: Help with debugger (mach_msg_trap) message
  • From: "McLaughlin, Michael P." <email@hidden>
  • Date: Tue, 2 Feb 2010 10:36:10 -0500
  • Acceptlanguage: en-US
  • Thread-topic: Help with debugger (mach_msg_trap) message

I have a multi-threaded Cocoa app using NSOperationQueue targeting Leopard
with GCC 4.0 and GC supported.  Most of the source code is Objective-C++
(.mm) and I have enabled default ctors/dtors in the Options.

I get a crash in both Debug and Release configurations about 10 percent of
the time for some unknown reason.

On error, the Console reads

*****
Attaching to process 9311.
[Switching to process 9311 thread 0x6403]
Current language:  auto; currently asm
*****

The Debugger window shows the calling stack at the top of which is

0 mach_msg_trap
1 mach_msg
2 CFRunLoopRunSpecific
etc.

The asm code breaks on blr.

The Utilities/Console app shows several lines all similar to

2/2/10 10:18:49 AM [0x0-0x1fe1fe].com.apple.Xcode[8765]
Xcode(8765,0xf0103000) malloc: free_garbage: garbage ptr = 0x3791fa0, has
non-zero refcount = 1

but with different ptr addresses.

Could anyone suggest how I might determine the cause of this error. I have
put try{}/catch(...){} in various places to no avail.  Likewise with
NSLog().

Thanks.

--
Mike McLaughlin

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

This email sent to email@hidden

  • Follow-Ups:
    • Re: Help with debugger (mach_msg_trap) message
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: printing
  • Next by Date: Re: Help with debugger (mach_msg_trap) message
  • Previous by thread: Re: printing
  • Next by thread: Re: Help with debugger (mach_msg_trap) message
  • Index(es):
    • Date
    • Thread