New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
99arobe opened this Issue Aug 15, 2016 · 17 comments

Comments

Projects
None yet
@99arobe

99arobe commented Aug 15, 2016

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) /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

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@99arobe 99arobe changed the title from Xcode 8 beta 5 crashes on launch to Xcode 8 beta 5 crashes on launch after installing XVim Aug 15, 2016

@joshingly

This comment has been minimized.

Show comment
Hide comment
@joshingly

joshingly Aug 15, 2016

Having the same issue on Xcode 8 beta 6.

joshingly commented Aug 15, 2016

Having the same issue on Xcode 8 beta 6.

@99arobe

This comment has been minimized.

Show comment
Hide comment
@99arobe

99arobe Aug 16, 2016

Yea, I can confirm beta 6 also has this problem.

99arobe commented Aug 16, 2016

Yea, I can confirm beta 6 also has this problem.

@mayqiyue

This comment has been minimized.

Show comment
Hide comment
@mayqiyue

mayqiyue commented Aug 21, 2016

+1

@99arobe 99arobe changed the title from Xcode 8 beta 5 crashes on launch after installing XVim to Xcode 8 beta 5 (and beta 6) crashes on launch after installing XVim Aug 22, 2016

@juancampa

This comment has been minimized.

Show comment
Hide comment
@juancampa

juancampa Aug 24, 2016

+1. Seems to be related to the Code Signing issue

juancampa commented Aug 24, 2016

+1. Seems to be related to the Code Signing issue

@fe9lix

This comment has been minimized.

Show comment
Hide comment
@fe9lix

fe9lix Aug 28, 2016

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.

fe9lix commented Aug 28, 2016

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.

@JolieYang

This comment has been minimized.

Show comment
Hide comment
@JolieYang

JolieYang commented Sep 1, 2016

+1

@hyouuu

This comment has been minimized.

Show comment
Hide comment
@hyouuu

hyouuu Sep 8, 2016

Restart fixes it for me

hyouuu commented Sep 8, 2016

Restart fixes it for me

@Anrock

This comment has been minimized.

Show comment
Hide comment
@Anrock

Anrock Sep 8, 2016

@hyouuu after codesign crash? Weird.

Anrock commented Sep 8, 2016

@hyouuu after codesign crash? Weird.

@hyouuu

This comment has been minimized.

Show comment
Hide comment
@hyouuu

hyouuu Sep 8, 2016

@Anrock yes, weirdly (I mean restarting Mac)

hyouuu commented Sep 8, 2016

@Anrock yes, weirdly (I mean restarting Mac)

@juancampa

This comment has been minimized.

Show comment
Hide comment
@juancampa

juancampa Sep 8, 2016

Restarting seems to be required after installing Xcode 8. It also fixes the issue of commenting/uncommenting not working, at least for me

juancampa commented Sep 8, 2016

Restarting seems to be required after installing Xcode 8. It also fixes the issue of commenting/uncommenting not working, at least for me

@Anrock

This comment has been minimized.

Show comment
Hide comment
@Anrock

Anrock Sep 8, 2016

Rebooting fixed crash for me on 10.12 with XCode Beta 6.

Anrock commented Sep 8, 2016

Rebooting fixed crash for me on 10.12 with XCode Beta 6.

@crossle

This comment has been minimized.

Show comment
Hide comment
@crossle

crossle Sep 8, 2016

How about Xcode 8 GM version

crossle commented Sep 8, 2016

How about Xcode 8 GM version

@Anrock

This comment has been minimized.

Show comment
Hide comment
@Anrock

Anrock Sep 8, 2016

Xcode 8 GM also works after reboot.

Anrock commented Sep 8, 2016

Xcode 8 GM also works after reboot.

@azinman

This comment has been minimized.

Show comment
Hide comment
@azinman

azinman Sep 8, 2016

+1 reboot works

azinman commented Sep 8, 2016

+1 reboot works

@jspavlick

This comment has been minimized.

Show comment
Hide comment
@jspavlick

jspavlick Sep 10, 2016

+1 reboot works! I was having an anxiety attack about losing xvim!

jspavlick commented Sep 10, 2016

+1 reboot works! I was having an anxiety attack about losing xvim!

@ksteigerwald

This comment has been minimized.

Show comment
Hide comment
@ksteigerwald

ksteigerwald Sep 16, 2016

I wasn't able to get it to install manually, but was able to install it using Alcatraz. Additionally I had to run https://github.com/inket/update_xcode_plugins some plugin updates.

I am finding that Xcode crashes a bit...

ksteigerwald commented Sep 16, 2016

I wasn't able to get it to install manually, but was able to install it using Alcatraz. Additionally I had to run https://github.com/inket/update_xcode_plugins some plugin updates.

I am finding that Xcode crashes a bit...

@nightwolf-chen

This comment has been minimized.

Show comment
Hide comment
@nightwolf-chen

nightwolf-chen Sep 18, 2016

Restarting Mac works for me!

nightwolf-chen commented Sep 18, 2016

Restarting Mac works for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment