[cmake-developers] [CMake 0015667]: XCTest CocoaExample crashes Xcode GUI

Mantis Bug Tracker mantis at public.kitware.com
Wed Jul 29 02:47:03 EDT 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15667 
====================================================================== 
Reported By:                Seppo Tomperi
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15667
Category:                   Modules
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-07-29 02:47 EDT
Last Modified:              2015-07-29 02:47 EDT
====================================================================== 
Summary:                    XCTest CocoaExample crashes Xcode GUI
Description: 
cmake version 3.3.0 from homebrew

Starting XCTest CocoaExample test from Xcode GUI crashes Xcode 6.4 and 7.
XCTest FrameworkExample test works from Xcode GUI.

However from command line CocoaExample passes.

Steps to Reproduce: 
cd Tests/XCTest/
mkdir target
cd target/
cmake -G Xcode ..
open XCTest.xcodeproj

# running CocoaExample from GUI crashes Xcode

#however:
xcodebuild -project XCTest.xcodeproj/ -scheme CocoaExample -destination
'platform=OS X,arch=x86_64' build
xcodebuild -project XCTest.xcodeproj/ -scheme CocoaExample -destination
'platform=OS X,arch=x86_64' test

# passes:
Test Suite 'All tests' started at 2015-07-29 06:41:31 +0000
Test Suite 'CocoaExampleTests.xctest' started at 2015-07-29 06:41:31 +0000
Test Suite 'CocoaExampleTests' started at 2015-07-29 06:41:31 +0000
Test Case '-[CocoaExampleTests testExample]' started.
Test Case '-[CocoaExampleTests testExample]' passed (0.000 seconds).
Test Suite 'CocoaExampleTests' passed at 2015-07-29 06:41:31 +0000.
	 Executed 1 test, with 0 failures (0 unexpected) in 0.000 (0.000) seconds
Test Suite 'CocoaExampleTests.xctest' passed at 2015-07-29 06:41:31 +0000.
	 Executed 1 test, with 0 failures (0 unexpected) in 0.000 (0.001) seconds
Test Suite 'All tests' passed at 2015-07-29 06:41:31 +0000.
	 Executed 1 test, with 0 failures (0 unexpected) in 0.000 (0.001) seconds
** TEST SUCCEEDED **




Additional Information: 
Process:               Xcode [74137]
Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               6.4 (7720)
Build Info:            IDEFrameworks-7720000000000000~8
App Item ID:           497799835
App External ID:       812725084
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Xcode [74137]
User ID:               501

Date/Time:             2015-07-29 09:36:46.399 +0300
OS Version:            Mac OS X 10.10.4 (14E46)
Report Version:        11
Anonymous UUID:        6FE1E47C-AE8D-AA50-F104-3C3169AD118E

Sleep/Wake UUID:       E9A90012-D49D-45CD-8E55-F5314FA4C435

Time Awake Since Boot: 55000 seconds
Time Since Wake:       2700 seconds

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

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

Application Specific Information:
ProductBuildVersion: 6E35b
ASSERTION FAILURE in
/SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-7709/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/ProjectModel/Xcode3Model/Xcode3TargetBuildable.m:181
Details:  string should be a non-empty string, but it's an empty string
Object:   <Xcode3TargetProduct: 0x7fc577345ae0>
Method:   -stringByEvaluatingBuildSettingExpressionString:withBuildParameters:
Thread:   <NSThread: 0x7fc571439800>{number = 1, name = main}
Hints:   None
Backtrace:
  0  0x000000010d8a4fda -[IDEAssertionHandler
handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:]
(in IDEKit)
  1  0x000000010c5fa65f _DVTAssertionHandler (in DVTFoundation)
  2  0x000000010c5fa94e _DVTAssertionFailureHandler (in DVTFoundation)
  3  0x0000000116fbdbf3 -[Xcode3TargetBuildable
stringByEvaluatingBuildSettingExpressionString:withBuildParameters:] (in
DevToolsCore)
  4  0x000000010d103333 -[IDESchemeAction
bundleIdentifierFromBuildableProduct:withBuildParameters:] (in IDEFoundation)
  5  0x000000010d1f38bc __192-[IDETestSchemeAction
testOperationWithTestManager:executionEnvironment:withBuildOperation:buildParameters:schemeCommand:actionRecord:overridingTestingSpecifiers:outError:actionCallbackBlock:]_block_invoke
(in IDEFoundation)
  6  0x000000010d0af6ae -[IDEOCUnitTestRunner
testOperationsForExecutionEnvironment:withBuildOperation:buildParameters:runDestination:workspace:error:launchParametersBlock:]
(in IDEFoundation)
  7  0x0000000116fe24a8 -[Xcode3OCUnitTestRunner
testOperationsForExecutionEnvironment:withBuildOperation:buildParameters:runDestination:workspace:error:launchParametersBlock:]
(in DevToolsCore)
  8  0x000000010d27cad0 -[IDETestManager
testOperationForTestingSpecification:executionEnvironment:withBuildOperation:buildParameters:runDestination:workspace:actionRecord:schemeIdentifier:outSchemeActionResultOperation:error:launchParametersBlock:actionCallbackBlock:]
(in IDEFoundation)
  9  0x000000010d1f231d -[IDETestSchemeAction
testOperationWithTestManager:executionEnvironment:withBuildOperation:buildParameters:schemeCommand:actionRecord:overridingTestingSpecifiers:outError:actionCallbackBlock:]
(in IDEFoundation)
 10  0x000000010d16c9bd -[IDEScheme
_executionOperationForExecutionEnvironment:build:onlyBuild:buildPurpose:buildCommand:schemeCommand:title:overridingProperties:destination:buildLog:filePath:overridingBuildConfiguration:dontActuallyRunCommands:restorePersistedBuildResults:invocationRecord:overridingTestingSpecifiers:error:actionCallbackBlock:]
(in IDEFoundation)
 11  0x000000010d16a144 -[IDEScheme
testOperationWithExecutionContext:buildIfNeeded:onlyBuild:destination:overridingProperties:overridingTestingSpecifiers:schemeCommand:buildLog:overridingBuildConfiguration:restorePersistedBuildResults:invocationRecord:name:title:error:actionCallbackBlock:]
(in IDEFoundation)
 12  0x000000010d16a4c4 -[IDEScheme
testWithExecutionContext:buildIfNeeded:onlyBuild:destination:overridingProperties:schemeCommand:commandName:overridingTestingSpecifiers:buildLog:invocationRecord:error:completionBlock:]
(in IDEFoundation)
 13  0x000000010d847342 -[IDEWorkspaceTabController
_actuallyPerformSchemeTask:onScheme:runDestination:command:commandName:buildCommand:filePath:overridingTestingSpecifiers:invocationRecord:completionBlock:]
(in IDEKit)
 14  0x000000010d84bae7 __175-[IDEWorkspaceTabController
_performSchemeTask:onScheme:runDestination:command:commandName:buildCommand:filePath:overridingTestingSpecifiers:invocationRecord:completionBlock:]_block_invoke
(in IDEKit)
 15  0x000000010d84a61a -[IDEWorkspaceTabController
_performSchemeTask:onScheme:runDestination:command:commandName:buildCommand:filePath:overridingTestingSpecifiers:invocationRecord:completionBlock:]
(in IDEKit)
 16  0x000000010d84c883 __185-[IDEWorkspaceTabController
_performDebuggableSchemeTask:onScheme:runDestination:command:commandName:buildCommand:filePath:overridingTestingSpecifiers:invocationRecord:completionBlock:]_block_invoke_2
(in IDEKit)
 17  0x000000010f3a228c -[DVTDeveloperModeAlertHelper
askToEnableDeveloperModeIfNecessaryWithCompletionHandler:] (in
DVTDeveloperModeHelper)
 18  0x000000010d84c767 __185-[IDEWorkspaceTabController
_performDebuggableSchemeTask:onScheme:runDestination:command:commandName:buildCommand:filePath:overridingTestingSpecifiers:invocationRecord:completionBlock:]_block_invoke
(in IDEKit)
 19  0x000000010d852c23 -[IDEWorkspaceTabController
showAppChooserIfNecessaryForScheme:runDestination:command:onCompletion:] (in
IDEKit)
 20  0x000000010d84c3cc -[IDEWorkspaceTabController
_performDebuggableSchemeTask:onScheme:runDestination:command:commandName:buildCommand:filePath:overridingTestingSpecifiers:invocationRecord:completionBlock:]
(in IDEKit)
 21  0x000000010d84eae8 -[IDEWorkspaceTabController
testUsingActiveRunContextWithOverridingTestingSpecifiers:] (in IDEKit)
 22  0x000000010dae1bb0 +[IDETestingHelper
_executeTestsAndTestables:forWorkspaceTabController:withBlock:] (in IDEKit)
 23  0x000000010dae1d5b +[IDETestingHelper
runTestsAndTestables:forWorkspaceTabController:] (in IDEKit)
 24  0x000000010dced5f0 -[IDETestingCommands contextMenu_runTest:] (in IDEKit)
 25  0x00007fff90eeccd7 _os_activity_initiate (in libsystem_trace.dylib)
 26  0x00007fff8ed8beb1 -[NSApplication sendAction:to:from:] (in AppKit)
 27  0x000000010cb7b4dd __37-[DVTApplication sendAction:to:from:]_block_invoke
(in DVTKit)
 28  0x000000010ca43c28 -[DVTApplication sendAction:to:from:] (in DVTKit)
 29  0x000000010d8a06c3 +[IDECommandManager
sendActionForCommandWithIdentifier:from:] (in IDEKit)
 30  0x000000010dae76f6 __28-[IDETestNavigator loadView]_block_invoke (in
IDEKit)
 31  0x000000010dae6bf9 -[IDETestNavigatorOutlineView mouseDown:] (in IDEKit)
 32  0x00007fff8f3082dc -[NSWindow _reallySendEvent:isDelayedEvent:] (in AppKit)
 33  0x00007fff8ec97c86 -[NSWindow sendEvent:] (in AppKit)
 34  0x000000010d8ca5d8 -[IDEWorkspaceWindow sendEvent:] (in IDEKit)
 35  0x00007fff8ec94212 -[NSApplication sendEvent:] (in AppKit)
 36  0x000000010d674064 -[IDEApplication sendEvent:] (in IDEKit)
 37  0x00007fff8ebbdb68 -[NSApplication run] (in AppKit)
 38  0x00007fff8eb3a244 NSApplicationMain (in AppKit)
 39  0x00007fff874ed5c9 start (in libdyld.dylib)
 40  0x0000000000000001
 
Performing @selector(contextMenu_runTest:) from sender IDETestNavigator
0x7fc577cf39b0
abort() called

Application Specific Signatures:
![@"" isEqualToString:(string)]

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff8ca6a286 __pthread_kill + 10
1   libsystem_c.dylib             	0x00007fff84ba8b53 abort + 129
2   com.apple.dt.IDEKit           	0x000000010d8a4bc3 +[IDEAssertionHandler
_handleAssertionWithLogString:assertionSignature:assertionReason:extraBacktrace:]
+ 1507
3   com.apple.dt.IDEKit           	0x000000010d8a5190 -[IDEAssertionHandler
handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:]
+ 1169
4   com.apple.dt.DVTFoundation    	0x000000010c5fa65f _DVTAssertionHandler + 367
5   com.apple.dt.DVTFoundation    	0x000000010c5fa94e
_DVTAssertionFailureHandler + 407
6   com.apple.Xcode.DevToolsCore  	0x0000000116fbdbf3 -[Xcode3TargetBuildable
stringByEvaluatingBuildSettingExpressionString:withBuildParameters:] + 681
7   com.apple.dt.IDEFoundation    	0x000000010d103333 -[IDESchemeAction
bundleIdentifierFromBuildableProduct:withBuildParameters:] + 136
8   com.apple.dt.IDEFoundation    	0x000000010d1f38bc __192-[IDETestSchemeAction
testOperationWithTestManager:executionEnvironment:withBuildOperation:buildParameters:schemeCommand:actionRecord:overridingTestingSpecifiers:outError:actionCallbackBlock:]_block_invoke
+ 3645
9   com.apple.dt.IDEFoundation    	0x000000010d0af6ae -[IDEOCUnitTestRunner
testOperationsForExecutionEnvironment:withBuildOperation:buildParameters:runDestination:workspace:error:launchParametersBlock:]
+ 1905
10  com.apple.Xcode.DevToolsCore  	0x0000000116fe24a8 -[Xcode3OCUnitTestRunner
testOperationsForExecutionEnvironment:withBuildOperation:buildParameters:runDestination:workspace:error:launchParametersBlock:]
+ 254
11  com.apple.dt.IDEFoundation    	0x000000010d27cad0 -[IDETestManager
testOperationForTestingSpecification:executionEnvironment:withBuildOperation:buildParameters:runDestination:workspace:actionRecord:schemeIdentifier:outSchemeActionResultOperation:error:launchParametersBlock:actionCallbackBlock:]
+ 3119
12  com.apple.dt.IDEFoundation    	0x000000010d1f231d -[IDETestSchemeAction
testOperationWithTestManager:executionEnvironment:withBuildOperation:buildParameters:schemeCommand:actionRecord:overridingTestingSpecifiers:outError:actionCallbackBlock:]
+ 1084
13  com.apple.dt.IDEFoundation    	0x000000010d16c9bd -[IDEScheme
_executionOperationForExecutionEnvironment:build:onlyBuild:buildPurpose:buildCommand:schemeCommand:title:overridingProperties:destination:buildLog:filePath:overridingBuildConfiguration:dontActuallyRunCommands:restorePersistedBuildResults:invocationRecord:overridingTestingSpecifiers:error:actionCallbackBlock:]
+ 3461
14  com.apple.dt.IDEFoundation    	0x000000010d16a144 -[IDEScheme
testOperationWithExecutionContext:buildIfNeeded:onlyBuild:destination:overridingProperties:overridingTestingSpecifiers:schemeCommand:buildLog:overridingBuildConfiguration:restorePersistedBuildResults:invocationRecord:name:title:error:actionCallbackBlock:]
+ 636
15  com.apple.dt.IDEFoundation    	0x000000010d16a4c4 -[IDEScheme
testWithExecutionContext:buildIfNeeded:onlyBuild:destination:overridingProperties:schemeCommand:commandName:overridingTestingSpecifiers:buildLog:invocationRecord:error:completionBlock:]
+ 610
16  com.apple.dt.IDEKit           	0x000000010d847342
-[IDEWorkspaceTabController
_actuallyPerformSchemeTask:onScheme:runDestination:command:commandName:buildCommand:filePath:overridingTestingSpecifiers:invocationRecord:completionBlock:]
+ 2615
17  com.apple.dt.IDEKit           	0x000000010d84bae7
__175-[IDEWorkspaceTabController
_performSchemeTask:onScheme:runDestination:command:commandName:buildCommand:filePath:overridingTestingSpecifiers:invocationRecord:completionBlock:]_block_invoke
+ 174
18  com.apple.dt.IDEKit           	0x000000010d84a61a
-[IDEWorkspaceTabController
_performSchemeTask:onScheme:runDestination:command:commandName:buildCommand:filePath:overridingTestingSpecifiers:invocationRecord:completionBlock:]
+ 4172
19  com.apple.dt.IDEKit           	0x000000010d84c883
__185-[IDEWorkspaceTabController
_performDebuggableSchemeTask:onScheme:runDestination:command:commandName:buildCommand:filePath:overridingTestingSpecifiers:invocationRecord:completionBlock:]_block_invoke_2
+ 101
20  com.apple.dt.DVTDeveloperModeHelper	0x000000010f3a228c
-[DVTDeveloperModeAlertHelper
askToEnableDeveloperModeIfNecessaryWithCompletionHandler:] + 261
21  com.apple.dt.IDEKit           	0x000000010d84c767
__185-[IDEWorkspaceTabController
_performDebuggableSchemeTask:onScheme:runDestination:command:commandName:buildCommand:filePath:overridingTestingSpecifiers:invocationRecord:completionBlock:]_block_invoke
+ 773
22  com.apple.dt.IDEKit           	0x000000010d852c23
-[IDEWorkspaceTabController
showAppChooserIfNecessaryForScheme:runDestination:command:onCompletion:] + 497
23  com.apple.dt.IDEKit           	0x000000010d84c3cc
-[IDEWorkspaceTabController
_performDebuggableSchemeTask:onScheme:runDestination:command:commandName:buildCommand:filePath:overridingTestingSpecifiers:invocationRecord:completionBlock:]
+ 529
24  com.apple.dt.IDEKit           	0x000000010d84eae8
-[IDEWorkspaceTabController
testUsingActiveRunContextWithOverridingTestingSpecifiers:] + 381
25  com.apple.dt.IDEKit           	0x000000010dae1bb0 +[IDETestingHelper
_executeTestsAndTestables:forWorkspaceTabController:withBlock:] + 139
26  com.apple.dt.IDEKit           	0x000000010dae1d5b +[IDETestingHelper
runTestsAndTestables:forWorkspaceTabController:] + 307
27  com.apple.dt.IDEKit           	0x000000010dced5f0 -[IDETestingCommands
contextMenu_runTest:] + 134
28  libsystem_trace.dylib         	0x00007fff90eeccd7 _os_activity_initiate + 75
29  com.apple.AppKit              	0x00007fff8ed8beb1 -[NSApplication
sendAction:to:from:] + 452
30  com.apple.dt.DVTKit           	0x000000010cb7b4dd __37-[DVTApplication
sendAction:to:from:]_block_invoke + 379
31  com.apple.dt.DVTKit           	0x000000010ca43c28 -[DVTApplication
sendAction:to:from:] + 377
32  com.apple.dt.IDEKit           	0x000000010d8a06c3 +[IDECommandManager
sendActionForCommandWithIdentifier:from:] + 109
33  com.apple.dt.IDEKit           	0x000000010dae76f6 __28-[IDETestNavigator
loadView]_block_invoke + 188
34  com.apple.dt.IDEKit           	0x000000010dae6bf9
-[IDETestNavigatorOutlineView mouseDown:] + 369
35  com.apple.AppKit              	0x00007fff8f3082dc -[NSWindow
_reallySendEvent:isDelayedEvent:] + 14125
36  com.apple.AppKit              	0x00007fff8ec97c86 -[NSWindow sendEvent:] +
470
37  com.apple.dt.IDEKit           	0x000000010d8ca5d8 -[IDEWorkspaceWindow
sendEvent:] + 156
38  com.apple.AppKit              	0x00007fff8ec94212 -[NSApplication
sendEvent:] + 2504
39  com.apple.dt.IDEKit           	0x000000010d674064 -[IDEApplication
sendEvent:] + 924
40  com.apple.AppKit              	0x00007fff8ebbdb68 -[NSApplication run] + 711
41  com.apple.AppKit              	0x00007fff8eb3a244 NSApplicationMain + 1832
42  libdyld.dylib                 	0x00007fff874ed5c9 start + 1

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-07-29 02:47 Seppo Tomperi  New Issue                                    
======================================================================



More information about the cmake-developers mailing list