Hi,

I have received a few cases like the trace below - it always happens in OSX
10.10 and runModalForWindow and crashes in CFStringDeallocate. Any ideas
what that could be? I have tested 4 computers, with like 6 different OSX
versions, always works here, yet there are machines where this happens
apparently, somewhere out there :). Moreover all the Cocoa calls here are
actually just wrapped in our crossplatform library, and there's not much
going on, that makes this especially surprising. NSStrings, which are
probably the issue here are always created from our MString like this:

const unichar *utf16 = (const unichar  *)s.GetUTF16();
return [NSString stringWithCharacters: utf16 length: s.GetLength()];

The crash log excerpt:




















*Crashed Thread:  0  Dispatch queue: com.apple.main-threadException Type:
 EXC_CRASH (SIGABRT)Exception Codes: 0x0000000000000000,
0x0000000000000000Application Specific Information:abort() called*** error
for object 0x61800167df40: Freeing already free'd pointerThread 0 Crashed::
Dispatch queue: com.apple.main-thread0   libsystem_kernel.dylib
0x00007fff8d6b4286 __pthread_kill + 101   libsystem_c.dylib
 0x00007fff875699a3 abort + 1292   libsystem_malloc.dylib
0x00007fff8391df4f nanozone_error + 5243   com.apple.CoreFoundation
0x00007fff8abb3606 __CFStringDeallocate + 2144   com.apple.CoreFoundation
    0x00007fff8abb0c9e CFRelease + 5265   com.apple.logic10
 0x000000010f6ea9bb std::__1::vector<TOSCService,
std::__1::allocator<TOSCService> >::vector(std::__1::vector<TOSCService,
std::__1::allocator<TOSCService> > const&) + 804116   com.apple.logic10
         0x000000010f6eaff3 std::__1::vector<TOSCService,
std::__1::allocator<TOSCService> >::vector(std::__1::vector<TOSCService,
std::__1::allocator<TOSCService> > const&) + 820037   com.apple.logic10
         0x000000010f760fda void std::__1::vector<CTRow,
std::__1::allocator<CTRow> >::__push_back_slow_path<CTRow>(CTRow&&) +
3622988   com.apple.logic10              0x000000010f725dc0 void
std::__1::vector<CTRow, std::__1::allocator<CTRow>
>::__push_back_slow_path<CTRow>(CTRow&&) + 1200969   com.apple.AppKit
        0x00007fff88412e89 -[NSApplication runModalForWindow:] + 138*

Cheers!
Vojtech
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to