Xcode Crash Bug: Watchpoint with AND or OR (&& or ||)

Hello folks,

i just found a bug in Xcode that occures when you add && or || into a watchpoint or breakpoint.

Here's my example code:

  1. import Foundation
  2. struct Struct {
  3.     var a: Int
  4.     var b: Int
  5. }
  6. var fail = Struct(a: 2, b: 3)
  7. println("Set breakpoint here and add watchpoint: 'fail.a == 1 && fail.b == 1'")
And here is the error report from Xcode:
Process:               Xcode [5258]
Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               6.1 (6539)
Build Info:            IDEFrameworks-6539000000000000~11
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Xcode [5258]
User ID:               501
Date/Time:             2015-01-26 21:44:03.702 +0100
OS Version:            Mac OS X 10.10.2 (14C106a)
Report Version:        11
Anonymous UUID:        3E22A2EB-4001-DD43-E3B9-E738C1A9AEE8
Sleep/Wake UUID:       D652AEEC-B106-4EED-84A5-22C82E11B452
Time Awake Since Boot: 19000 seconds
Time Since Wake:       12000 seconds
Crashed Thread:        40  <DBGLLDBSessionThread (pid=5281)>
Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000008
VM Regions Near 0x8:
-->
    __TEXT                 000000010b8dc000-000000010b8dd000 [    4K] r-x/rwx SM=COW  /Applications/Xcode.app/Contents/MacOS/Xcode
Application Specific Information:
ProductBuildVersion: 6A1046a
.....
To remove Watchpoints delete the "ContextStates" in:
%PROJECT_DIR%/%PROJECT_NAME%.xcodeproj/project.xcworkspace/xcuserdata/barbewaldemar.xcuserdatad/xcdebugger/Expressions.xcexplist

Kommentare

Beliebte Posts aus diesem Blog

Apache "The requested operation has failed!"

Exchange SSL Error