Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I am working for USB internet dongle application, so when device is inserted our application get the callbacks from device SDK, Main window Application and Callbacks both are in main thread. Now after receive the call-back when user enter the userId/password on Mainwindow textfiled it crash with the below crash log.

I also tried to move the callback in to separate thread but still it crash at same place. Please help.

<< CRASH LOG >>>

Process:         Connect [1039]
Path:            /Users/USER/Library/Developer/Xcode/DerivedData/Build/Products/Debug/Connect.app/Contents/MacOS/Connect
Identifier:      com.YTL.Connect
Version:         1.9.4.0 (1.9.4.0)
Code Type:       X86 (Native)
Parent Process:  launchd [135]
User ID:         501

Date/Time:       2013-07-13 16:47:15.401 +0800
OS Version:      Mac OS X 10.8.4 (12E55)
Report Version:  10

Crashed Thread:  9  Dispatch queue: com.apple.root.default-priority

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
Assertion failed: (addr != MAP_FAILED), function _open_and_mmap_for_reading, file /SourceCache/LanguageIdentifier/LanguageIdentifier-116/LanguageIdentifier.c, line 593.


Thread 0:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0x945567d2 mach_msg_trap + 10
1   libsystem_kernel.dylib          0x94555cb0 mach_msg + 68
2   com.apple.CoreFoundation        0x91c1df79 __CFRunLoopServiceMachPort + 185
3   com.apple.CoreFoundation        0x91c2395f __CFRunLoopRun + 1247
4   com.apple.CoreFoundation        0x91c2301a CFRunLoopRunSpecific + 378
5   com.apple.CoreFoundation        0x91c22e8b CFRunLoopRunInMode + 123
6   com.apple.HIToolbox             0x9224ff5a RunCurrentEventLoopInMode + 242
7   com.apple.HIToolbox             0x9224fcc9 ReceiveNextEventCommon + 374
8   com.apple.HIToolbox             0x9224fb44 BlockUntilNextEventMatchingListInMode + 88
9   com.apple.AppKit                0x9861993a _DPSNextEvent + 724
10  com.apple.AppKit                0x9861916c -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 119
11  com.apple.AppKit                0x9860f5cc -[NSApplication run] + 855
12  com.apple.AppKit                0x985b25f6 NSApplicationMain + 1053
13  com.YTL.Connect                 0x000bfd3b main + 43 (main.m:18)
14  com.YTL.Connect                 0x000a06d5 start + 53

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib          0x945599ae kevent + 10
1   libdispatch.dylib               0x993f2c71 _dispatch_mgr_invoke + 993
2   libdispatch.dylib               0x993f27a9 _dispatch_mgr_thread + 53

Thread 2:
0   libsystem_kernel.dylib          0x945567d2 mach_msg_trap + 10
1   libsystem_kernel.dylib          0x94555cb0 mach_msg + 68
2   com.apple.CoreFoundation        0x91c1df79 __CFRunLoopServiceMachPort + 185
3   com.apple.CoreFoundation        0x91c2395f __CFRunLoopRun + 1247
4   com.apple.CoreFoundation        0x91c2301a CFRunLoopRunSpecific + 378
5   com.apple.CoreFoundation        0x91c22e8b CFRunLoopRunInMode + 123
6   com.apple.Foundation            0x928c6bb6 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 278
7   com.YTL.Connect                 0x000a0b06 -[MainWindowController LaunchThreadWithPort:] + 278 (MainWindowController.m:168)
8   com.apple.Foundation            0x928c1448 -[NSThread main] + 45
9   com.apple.Foundation            0x928c13cb __NSThread__main__ + 1396
10  libsystem_c.dylib               0x94b955b7 _pthread_start + 344
11  libsystem_c.dylib               0x94b7fd4e thread_start + 34

Thread 3:
0   libsystem_kernel.dylib          0x945567de mach_msg_overwrite_trap + 10
1   libsystem_kernel.dylib          0x94555de8 mach_msg_overwrite + 86
2   libWiMAXSDK.dylib               0x0262ab0d dm_detect_device + 258
3   libWiMAXSDK.dylib               0x0262af01 dm_detector_thread + 689
4   libsystem_c.dylib               0x94b955b7 _pthread_start + 344
5   libsystem_c.dylib               0x94b7fd4e thread_start + 34

Thread 4:
0   libsystem_kernel.dylib          0x945588e2 __psynch_cvwait + 10
1   libsystem_c.dylib               0x94b9a2e9 _pthread_cond_wait + 938
2   libsystem_c.dylib               0x94c27af0 pthread_cond_wait + 48
3   libWiMAXSDK.dylib               0x026348d5 msg_recv + 70
4   libWiMAXSDK.dylib               0x02631c09 hci_receiver_thread + 159
5   libsystem_c.dylib               0x94b955b7 _pthread_start + 344
6   libsystem_c.dylib               0x94b7fd4e thread_start + 34

Thread 5:
0   libsystem_kernel.dylib          0x945588e2 __psynch_cvwait + 10
1   libsystem_c.dylib               0x94b9a2e9 _pthread_cond_wait + 938
2   libsystem_c.dylib               0x94c27af0 pthread_cond_wait + 48
3   libWiMAXSDK.dylib               0x026348d5 msg_recv + 70
4   libWiMAXSDK.dylib               0x026365f5 sdk_ind_thread + 109
5   libsystem_c.dylib               0x94b955b7 _pthread_start + 344
6   libsystem_c.dylib               0x94b7fd4e thread_start + 34

Thread 6:
0   libsystem_kernel.dylib          0x945567d2 mach_msg_trap + 10
1   libsystem_kernel.dylib          0x94555cb0 mach_msg + 68
2   com.apple.framework.IOKit       0x97c0f6aa IODataQueueWaitForAvailableData + 79
3   libWiMAXSDK.dylib               0x02633f58 io_receiver_thread + 1068
4   libsystem_c.dylib               0x94b955b7 _pthread_start + 344
5   libsystem_c.dylib               0x94b7fd4e thread_start + 34

Thread 7:
0   libsystem_kernel.dylib          0x94558c72 __semwait_signal + 10
1   libsystem_c.dylib               0x94c1fa55 nanosleep$UNIX2003 + 189
2   libsystem_c.dylib               0x94c1f91e usleep$UNIX2003 + 60
3   com.YTL.Connect                 0x000dde1b -[AccessSDK GetDevStatusUpdateThread] + 459 (AccessSDK.m:2628)
4   com.apple.Foundation            0x928c1448 -[NSThread main] + 45
5   com.apple.Foundation            0x928c13cb __NSThread__main__ + 1396
6   libsystem_c.dylib               0x94b955b7 _pthread_start + 344
7   libsystem_c.dylib               0x94b7fd4e thread_start + 34

Thread 8:
0   libsystem_kernel.dylib          0x945590ee __workq_kernreturn + 10
1   libsystem_c.dylib               0x94b980ac _pthread_workq_return + 45
2   libsystem_c.dylib               0x94b97e79 _pthread_wqthread + 448
3   libsystem_c.dylib               0x94b7fd2a start_wqthread + 30

Thread 9 Crashed:: Dispatch queue: com.apple.root.default-priority
0   libsystem_kernel.dylib          0x94558a6a __pthread_kill + 10
1   libsystem_c.dylib               0x94b96b2f pthread_kill + 101
2   libsystem_c.dylib               0x94bcd4ec abort + 168
3   libsystem_c.dylib               0x94bdbd2b __assert_rtn + 326
4   liblangid.dylib                 0x9549acf4 _langid_env_create + 660
5   liblangid.dylib                 0x9549a777 _langid_create_with_datapath_internal + 132
6   liblangid.dylib                 0x9549a691 langid_identify_withbuf + 51
7   com.apple.CoreFoundation        0x91d07a82 __CFSTIdentifyGermanLanguage + 178
8   com.apple.CoreFoundation        0x91cb3bec __CFSTUnitWordSentenceLineSetString + 316
9   com.apple.CoreFoundation        0x91cb37a1 CFStringTokenizerCreate + 657
10  com.apple.AppKit                0x9881a74e NSSpellCheckerCheckString + 2125
11  com.apple.AppKit                0x98819ea2 -[NSTextCheckingOperation main] + 156
12  com.apple.Foundation            0x928ba259 -[__NSOperationInternal start] + 740
13  com.apple.Foundation            0x928b9f64 -[NSOperation start] + 67
14  com.apple.Foundation            0x928c2039 __block_global_6 + 135
15  libdispatch.dylib               0x993f3f8f _dispatch_call_block_and_release + 15
16  libdispatch.dylib               0x993efc82 _dispatch_client_callout + 46
17  libdispatch.dylib               0x993f0f02 _dispatch_worker_thread2 + 285
18  libsystem_c.dylib               0x94b97e72 _pthread_wqthread + 441
19  libsystem_c.dylib               0x94b7fd2a start_wqthread + 30

Thread 10:
0   libsystem_kernel.dylib          0x945590ee __workq_kernreturn + 10
1   libsystem_c.dylib               0x94b980ac _pthread_workq_return + 45
2   libsystem_c.dylib               0x94b97e79 _pthread_wqthread + 448
3   libsystem_c.dylib               0x94b7fd2a start_wqthread + 30

Thread 9 crashed with X86 Thread State (32-bit):
  eax: 0x00000000  ebx: 0xac6d613c  ecx: 0xb018376c  edx: 0x94558a6a
  edi: 0xb0185000  esi: 0x00000006  ebp: 0xb0183788  esp: 0xb018376c
   ss: 0x00000023  efl: 0x00000206  eip: 0x94558a6a   cs: 0x0000000b
   ds: 0x00000023   es: 0x00000023   fs: 0x00000023   gs: 0x0000000f
  cr2: 0x04429000
Logical CPU: 0
share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.