• 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: A Weird Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A Weird Problem


  • Subject: Re: A Weird Problem
  • From: email@hidden
  • Date: Sat, 26 Jul 2003 13:51:55 -0400

Well, thanks everyone. It seems to be working now, but I'll look through my code to try to find what was causing it.

On Saturday, July 26, 2003, at 11:45 AM, James Quick wrote:

On Saturday, July 26, 2003, at 04:42 AM, Sherm Pendley wrote:

On Saturday, July 26, 2003, at 3:35 AM, email@hidden wrote:

Has anyone ever had this happen?

Actually, it happens often enough that there's a term for it: It's called a Heisenbug. See <http://catb.org/~esr/jargon/html/H/heisenbug.html>.

As the referenced page points out, in C (including Objective-C), nine out of ten Heisenbugs are caused by uninitialized variables and/or stray pointers. In Objective-C, nine out of ten stray pointer bugs are caused by over-released objects.

That has bitten me couple of times.

In each case, it turned out to be an out of date resource being referenced because
your search paths are different. Frequently, DYLD_LIBRARY_PATH is the culprit.
That may cause a Framework which a PB spawned process finds in your build tree or
in a place specified in a target setting to not be found from the shell. If it finds a
different one anyway, in ~/Library, /Library, etc. the differences can be big enough to crash
before main() gets called.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: A Weird Problem (From: James Quick <email@hidden>)

  • Prev by Date: Re: Localizing a project
  • Next by Date: Empty folder /Library/InputManagers/QuickTime
  • Previous by thread: Re: A Weird Problem
  • Next by thread: Re: A Weird Problem
  • Index(es):
    • Date
    • Thread