XVim: Xcode 8 beta 5 (and beta 6) crashes on launch after installing XVim

Description

Xcode 8 beta 5 crashes on launch if I install XVim using the latest commit on master (3eb09a). Xcode opens successfully if I don’t install XVim. If I uninstall XVim (either running make uninstall or manually via rm -rf foo/Xcode-beta/bar/) Xcode still crashes on launch. Reinstalling Xcode fixes the issue.

Operation

Installed XVim by cloning the repo, running make and accepting the request to remove the signing certificate. Once this happens Xcode will no longer open.

Expected behaviour

Xcode should open after installing Xvim.

Environments

  • Xcode Version [ 8 beta 5 ]
  • XVim branch and revision [ Master (3eb09a) ]
  • Keyboard Language [ en - gb ]
  • Input source language [ ]

Crash log (if any)

Process: Xcode [74439] Path: /Applications/Xcode-beta.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: ??? Build Info: IDEFrameworks-11228002000000000~5 Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Xcode [74439] User ID: 501

Date/Time: 2016-08-15 09:34:27.981 +0100 OS Version: Mac OS X 10.11.5 (15F34) Report Version: 11 Anonymous UUID: 205FBFB7-3A88-7E79-A9C7-018328BB

Sleep/Wake UUID: A0F7C431-4170-4B18-B928-B9E2E241

Time Awake Since Boot: 560000 seconds Time Since Wake: 2800 seconds

System Integrity Protection: disabled

Crashed Thread: 0

Exception Type: EXC_BAD_ACCESS (Code Signature Invalid) Exception Codes: 0x0000000000000032, 0x0000000100ec9010 Exception Note: EXC_CORPSE_NOTIFY

kernel messages: -1 sec CODE SIGNING: cs_invalid_page(0x100ec9000): p=74439[Xcode] final status 0x3006a00, denying page sending SIGKILL -1 sec CODE SIGNING: process 74439[Xcode]: rejecting invalid page at address 0x100ec9000 from offset 0x0 in file “/Applications/Xcode-beta.app/Contents/MacOS/Xcode” (cs_mtime:1470586897.0 != mtime:1471250040.0) (signed:1 validated:1 tainted:1 wpmapped:0 slid:0)

VM Regions Near 0x100ec9010: –> mapped file 0000000100ec9000-0000000100eca000 [ 4K] r-x/rwx SM=COW . mapped file 0000000100eca000-0000000100ecb000 [ 4K] rw-/rwx SM=COW .

Thread 0 Crashed: 0 dyld 0x00007fff6a1e8202 dyldbootstrap::start(macho_header const_, int, char const__, long, macho_header const_, unsigned long*) + 396 1 dyld 0x00007fff6a1e8036 _dyld_start + 54

Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000100ec9000 rbx: 0x00007fff5ed36cc8 rcx: 0x2900b0c423be16a1 rdx: 0x00000000000000f0 rdi: 0x00007fff5ed36fab rsi: 0x00007fff6a210cc0 rbp: 0x00007fff5ed36c00 rsp: 0x00007fff5ed36ba0 r8: 0x000000000000003d r9: 0x0000000000000b30 r10: 0x000000000000000c r11: 0x0000000000000206 r12: 0x00007fff6a1e7520 r13: 0x000000000000000e r14: 0x00007fff6a1e76c0 r15: 0x000000000000000e rip: 0x00007fff6a1e8202 rfl: 0x0000000000010206 cr2: 0x0000000100ec9010

Logical CPU: 1 Error Code: 0x00000004 Trap Number: 14

Binary Images: 0x7fff6a1e7000 - 0x7fff6a21e25f dyld (360.22) <A468D85E-D8D6-3461-8C99-49D3B9ACFC63> /usr/lib/dyld

External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 278709 thread_create: 0 thread_set_state: 32561

VM Region Summary: ReadOnly portion of Libraries: Total=308K resident=0K(0%) swapped_out_or_unallocated=308K(100%) Writable regions: Total=10.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=10.2M(100%)

                            VIRTUAL   REGION 

REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Process Corpse Info 2048K 2 STACK GUARD 56.0M 2 Stack 8192K 2 VM_ALLOCATE 4K 2 __DATA 240K 3 __LINKEDIT 84K 2 __TEXT 224K 2 mapped file 20K 4 shared memory 8K 3 =========== ======= ======= TOTAL 66.6M 13

Model: MacBookPro9,1, BootROM MBP91.00D3.B0D, 4 processors, Intel Core i7, 2.6 GHz, 8 GB, SMC 2.1f170 Graphics: Intel HD Graphics 4000, Intel HD Graphics 4000, Built-In Graphics: NVIDIA GeForce GT 650M, NVIDIA GeForce GT 650M, PCIe, 1024 MB Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54333531533643465238432D50422020 Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54333531533643465238432D50422020 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xF5), Broadcom BCM43xx 1.0 (7.21.95.175.1a6) Bluetooth: Version 4.4.5f3 17904, 3 services, 27 devices, 1 incoming serial ports Network Service: Wi-Fi, AirPort, en1 Serial ATA Device: Samsung SSD 850 EVO 1TB, 1 TB Serial ATA Device: MATSHITADVD-R UJ-8A8 USB Device: USB 2.0 Bus USB Device: Hub USB Device: FaceTime HD Camera (Built-in) USB Device: USB 2.0 Bus USB Device: Hub USB Device: Hub USB Device: Apple Internal Keyboard / Trackpad USB Device: IR Receiver USB Device: BRCM20702 Hub USB Device: Bluetooth USB Host Controller USB Device: USB 3.0 Bus USB Device: Hub USB Device: Hub USB Device: Hub USB Device: Hub USB Device: USB to VGA Adapter USB Device: USB Receiver Thunderbolt Bus: MacBook Pro, Apple Inc., 25.1

<bountysource-plugin>

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>

About this issue

  • Original URL
  • State: open
  • Created 8 years ago
  • Reactions: 5
  • Comments: 17

Most upvoted comments

As workaround, you could use MakeXcodeGr8Again instead: https://github.com/fpg1503/MakeXcodeGr8Again

  • Download a fresh copy of Xcode 8 beta 6 from Apple.
  • Build and export MakeXcodeGr8Again with Xcode 8.
  • Close Xcode.
  • Start the exported MakeXcodeGr8Again app.
  • Drag Xcode-beta.app from the Applications folder into the MakeXcodeGr8Again window.
  • Wait for the Beachball to disappear. Application folder now contains XcodeGr8.app.
  • Point the Xcode dev directory to XcodeGr8: sudo xcode-select -s /Applications/XcodeGr8.app/Contents/Developer
  • Install XVim: Download XVim master, cd into the extracted dir and execute: make
  • Open XcodeGr8 (odd: opening only works via Spotlight for me).
  • Confirm the “Load Bundle” dialog.
  • Use XVim.
  • If needed: Reset the dev dir back to default: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

MakeXcodeGr8Again also seems to work the unsign tool internally. However, XVims built-in unsign tool didn’t work for me (immediate crash as described in this thread).

Thanks to @mhilscher for pointing out MakeXcodeGr8Again.

Having the same issue on Xcode 8 beta 6.

Xcode 8 GM also works after reboot.