Skip to content

Crash when duplicating a line in a locked file #46

@iandundas

Description

@iandundas

Hi - just discovered a crashing bug reproducible 100% of the time. It happens if you try to Duplicate a Line in a file that's locked (e.g. a file in the Cocoapods project of your workspace)

Here is the stack-trace:

Process:               Xcode [71369]
Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               7.2 (9548)
Build Info:            IDEFrameworks-9548000000000000~7
App Item ID:           497799835
App External ID:       814662604
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Xcode [71369]
User ID:               501

PlugIn Path:             /Users/USER/Library/Application Support/Developer/*/MarvinPlugin
PlugIn Identifier:       com.zenangst.MarvinPlugin
PlugIn Version:          2.0.3 (2.0.3)

Date/Time:             2016-01-27 10:10:40.630 +0100
OS Version:            Mac OS X 10.11.2 (15C50)
Report Version:        11
Anonymous UUID:        DC78A84E-6DC5-2379-5D5D-C308488B71D6

Sleep/Wake UUID:       DB3CF102-C6FC-4671-B756-2720B781A991

Time Awake Since Boot: 480000 seconds
Time Since Wake:       3300 seconds

System Integrity Protection: enabled

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

Exception Type:        EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes:       0x0000000000000001, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
Sending duplicateLineAction to <MarvinPlugin.MarvinPlugin: 0x7fdbc6e420a0> from <NSMenuItem: 0x7fdbc60c5ec0 Duplicate Line>
ProductBuildVersion: 7C68
Performing @selector(duplicateLineAction) from sender NSMenuItem 0x7fdbc60c5ec0

Global Trace Buffer (reverse chronological seconds):
209.095491   CFNetwork                  0x00007fff8e614a5b TCP Conn 0x7fdbc6114400 SSL Handshake DONE
209.553910   CFNetwork                  0x00007fff8e614937 TCP Conn 0x7fdbc6114400 starting SSL negotiation
209.554100   CFNetwork                  0x00007fff8e613303 TCP Conn 0x7fdbc6114400 complete. fd: 45, err: 0
209.555208   CFNetwork                  0x00007fff8e6a1b1d TCP Conn 0x7fdbc6114400 event 1. err: 0
209.751340   CFNetwork                  0x00007fff8e6125d3 TCP Conn 0x7fdbc6114400 started
209.852453   CFNetwork                  0x00007fff8e5d621a Creating default cookie storage with process/bundle identifier
209.852463   CFNetwork                  0x00007fff8e5d61b2 Faulting in CFHTTPCookieStorage singleton
209.852463   CFNetwork                  0x00007fff8e5d6041 Faulting in NSHTTPCookieStorage singleton
209.863260   CFNetwork                  0x00007fff8e6d3654 NSURLConnection finished with error - code -1100

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.zenangst.MarvinPlugin       0x000000011657c686 _TFC12MarvinPlugin12XcodeManager9lineRangefS0_FT_VSC8_NSRange + 2918 (XcodeManager.swift:167)
1   com.zenangst.MarvinPlugin       0x0000000116582870 _TFC12MarvinPlugin12MarvinPlugin19duplicateLineActionfS0_FT_T_ + 416 (MarvinPlugin.swift:158)
2   com.zenangst.MarvinPlugin       0x0000000116583306 _TToFC12MarvinPlugin12MarvinPlugin19duplicateLineActionfS0_FT_T_ + 22
3   libsystem_trace.dylib           0x00007fff9b6b007a _os_activity_initiate + 75
4   com.apple.AppKit                0x00007fff9e60351d -[NSApplication sendAction:to:from:] + 460
5   com.apple.dt.DVTKit             0x0000000109d6dac7 __37-[DVTApplication sendAction:to:from:]_block_invoke + 379
6   com.apple.dt.DVTFoundation      0x000000010978c9a5 DVTInvokeWithFailureHint + 83
7   com.apple.dt.DVTKit             0x0000000109c3f1f7 -[DVTApplication sendAction:to:from:] + 335
8   com.apple.AppKit                0x00007fff9e6032b7 -[NSMenuItem _corePerformAction] + 336
9   com.apple.AppKit                0x00007fff9e603017 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 114
10  libsystem_trace.dylib           0x00007fff9b6b007a _os_activity_initiate + 75
11  com.apple.AppKit                0x00007fff9e601f05 -[NSMenu performKeyEquivalent:] + 357
12  com.apple.AppKit                0x00007fff9e6010aa -[NSApplication _handleKeyEquivalent:] + 920
13  com.apple.AppKit                0x00007fff9e51950f -[NSApplication sendEvent:] + 4274
14  com.apple.dt.IDEKit             0x000000010a9dec6d -[IDEApplication sendEvent:] + 739
15  com.apple.AppKit                0x00007fff9e44c03a -[NSApplication run] + 796
16  com.apple.AppKit                0x00007fff9e3ce520 NSApplicationMain + 1176
17  libdyld.dylib                   0x00007fff960295ad start + 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions