CocoaLumberjack: DDLog causing bad Access errors on iOS 7

Previously working fine on iOS 6. Latest version through pod update did not help

Exception Type: EXC_BAD_ACCESS Code: KERN_INVALID_ADDRESS at 0x0
10cocoa.lumberjack.ttyLogger Crashed
0    CoreFoundation  CFStringGetCString + 27
1    CoreFoundation  __CFCalendarCreateUCalendar + 158
2    CoreFoundation  __CFCalendarCreateUCalendar + 158
3    CoreFoundation  __CFCalendarSetupCal + 18
4    CoreFoundation  _CFCalendarDecomposeAbsoluteTimeV + 42
5    CoreFoundation  -[__NSCFCalendar components:fromDate:] + 588
6    CoreFoundation  -[_NSCopyOnWriteCalendarWrapper components:fromDate:] + 74
7    education  
DDTTYLogger.m line 1254
-[DDTTYLogger logMessage:]
8    education  
DDLog.m line 629
__16+[DDLog lt_log:]_block_invoke
9    libdispatch.dylib   _dispatch_call_block_and_release + 10
10   libdispatch.dylib   _dispatch_queue_drain$VARIANT$mp + 374
11   libdispatch.dylib   _dispatch_queue_invoke$VARIANT$mp + 42
12   libdispatch.dylib   _dispatch_root_queue_drain + 76
13   libdispatch.dylib   _dispatch_worker_thread2 + 56
14   libsystem_pthread.dylib     _pthread_wqthread + 298

About this issue

  • Original URL
  • State: closed
  • Created 11 years ago
  • Comments: 25 (11 by maintainers)

Commits related to this issue

Most upvoted comments

Status We have removed Lumberjack and rolled our own since it just throws errors for us.

Info We Have

cocoa.lumberjack.ttyLogger Crashed
0    libobjc.A.dylib     objc_msgSend + 5
1    CoreFoundation  -[_NSCopyOnWriteCalendarWrapper components:fromDate:] + 74
2    eventapp   
DDTTYLogger.m line 1255
-[DDTTYLogger logMessage:]
3    eventapp   
DDLog.m line 628
__16+[DDLog lt_log:]_block_invoke
4 ...    libdispatch.dylib   _dispatch_call_block_and_release + 10
9    libsystem_pthread.dylib     _pthread_wqthread + 298

We were just doing DDLog calls in various places in the app in various contexts from multiple threads. I can’t find out what the code was that pushed that asynchronous request because it doesn’t appear in logs.