NOTE: This issue first appeared when I converted a set of NSMutableArrays to CGFloat * and created them using calloc to speed up performance. (And yes, I did properly free() all the pointers in -dealloc).
I'll be submitting a PR for this issue. Unfortunately, I can't create a test spec because it involves a pretty complex BDD-style test with a large database.
This may be related to #571
Platform:
ae9f6d83faf774754ea60a9dfc6556eb23800f47
)I got a VERY RELIABLE
EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
memory crash in-[KWSpec runExample]
.It seems as if the
@autoreleasepool
block may be a little over-aggressive in releasing eitherself.currentExample
orself.invocation
.When I commented out the
@autorelease
block, everything worked fine.Here's the backtrace:
NOTE: This issue first appeared when I converted a set of
NSMutableArrays
toCGFloat *
and created them usingcalloc
to speed up performance. (And yes, I did properlyfree()
all the pointers in-dealloc
).I'll be submitting a PR for this issue. Unfortunately, I can't create a test spec because it involves a pretty complex BDD-style test with a large database.