Xcode-beta (7A176x): Crash when disconnecting iOS device while showing the devices logs

Originator:dieter.komendera
Number:rdar://22298179 Date Originated:15-Aug-2015 12:51 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-beta (7A176x)
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
Crash when disconnecting iOS device while showing the device’s logs in Xcode.

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000018
Exception Note:        EXC_CORPSE_NOTIFY

VM Regions Near 0x18:
--> 
    __TEXT                 00000001017bf000-00000001017c0000 [    4K] r-x/rwx SM=COW  /Applications/Xcode-beta.app/Contents/MacOS/Xcode

Application Specific Information:
objc_msgSend() selector name: retain
ProductBuildVersion: 7A176x
CFRunLoopPerformBlock invoking 0x101a2405e

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib               	0x00007fff9069b51d objc_msgSend + 29
1   com.apple.Foundation          	0x00007fff922ed6cd -[NSKeyValueObservance observeValueForKeyPath:ofObject:change:context:] + 161
2   com.apple.Foundation          	0x00007fff9229a228 NSKeyValueNotifyObserver + 379
3   com.apple.Foundation          	0x00007fff9229b68b NSKeyValueWillChange + 626
4   com.apple.Foundation          	0x00007fff9228f174 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:] + 575
5   com.apple.Foundation          	0x00007fff922eb361 _NSSetObjectValueAndNotify + 274
6   com.apple.DTDeviceKitBase     	0x000000010b476bcd __46-[DTDKRemoteDeviceToken reload_productVersion]_block_invoke + 216
7   com.apple.dt.DVTFoundation    	0x0000000101a240a6 ___DVTAsyncPerformBlockOnMainRunLoop_block_invoke + 72
8   com.apple.CoreFoundation      	0x00007fff87593ce4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 196
9   com.apple.CoreFoundation      	0x00007fff875859a5 __CFRunLoopDoBlocks + 341
10  com.apple.CoreFoundation      	0x00007fff8758570b __CFRunLoopRun + 2347

Steps to Reproduce:
* connect iOS device to the Mac
* Window -> Device (or shift+cmd+2)
* select the connect device
* click View Device Logs
* disconnect iOS device from the Mac

Expected Results:
no crash

Actual Results:
crash

Regression:
I didn’t test older versions

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!