[Vm-dev] What's the magic breakpoint for *** attempt to pop an
unknown autorelease pool?
eliot.miranda at gmail.com
Fri Nov 5 04:59:58 UTC 2010
bingo! Thanks so much!!
On Thu, Nov 4, 2010 at 9:19 PM, John M McIntosh <
johnmci at smalltalkconsulting.com> wrote:
> Ummm the magic eight ball says:
> "You should always drain an autorelease pool in the same context
> (invocation of a method or function, or body of a loop) that it was
> "You can debug it by setting a breakpoint in the _CFAutoreleasePoolPop
> function. To find out exactly where, disassemble the _CFAutoreleasePoolPop
> function, and look for the first call to CFLog. On the i386 architecture
> it’s at _CFAutoreleasePoolPop+84."
> Also consider just a breakpoint on NSLog CFLog
> On 2010-11-04, at 9:10 PM, Eliot Miranda wrote:
> Hi All,
> on Mac OS X Snow Leopard anyone know the magic breakpoint to find out
> when the program emits "*** attempt to pop an unknown autorelease pool".
> I've put breakpoints in __NSAutoreleaseNoPool, write,
> write$NOCANCEL$UNIX2003 (sp?) vrious ctime & ctime_r routines and still I
> can't get gdb to break on producing the error. Any hints?
> John M. McIntosh <johnmci at smalltalkconsulting.com> Twitter:
> Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Vm-dev