Re: A Weird Problem
Re: A Weird Problem
- Subject: Re: A Weird Problem
- From: James Quick <email@hidden>
- Date: Sat, 26 Jul 2003 11:45:27 -0400
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.