我一直在尝试使用macport安装GDB,我在第二个回答here中遵循了这两个建议。简而言之,第一种方法涉及使用我自己的证书签署GDB并将自己添加到procmod和_developer组。一旦我发现这不起作用,我尝试了第二种方法,包括禁用SIP和编辑/System/Library/LaunchDaemons/com.apple.taskgated.plist
。
这第二个选项确实让GDB工作,但突然间或多或少突然出现在我的系统中的所有应用程序(但内置的mac os应用程序,如safari等,将无法启动,并且意外退出'# 39;或者'已损坏且无法打开。删除XX并从App Store再次下载'错误。
所有崩溃报告(最后粘贴一个指示性案例)提到EXC_CRASH(代码签名无效)异常,因此我假设整个问题与我在尝试安装GDB时更改的某种设置有关。我删除了为此创建的签名,我从_developer和procmod组中删除了自己(至少我认为我做了),将我所做的更改还原到/System/Library/LaunchDaemons/com.apple.taskgated.plist
,问题仍然存在。
除了使用时间机器恢复到以前的稳定状态之外,别知道还有什么,但这将花费我几天的时间重新安装和复制。有什么想法吗?
这是这种崩溃的指示性报告:
Process: Things [2735]
Path: /Applications/Things.app/Contents/MacOS/Things
Identifier: com.culturedcode.things
Version: ???
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Things [2735]
User ID: 501
Date/Time: 2016-02-23 12:57:17.785 +0200
OS Version: Mac OS X 10.11.3 (15D21)
Report Version: 11
Anonymous UUID: F92433D6-4B65-2003-90E0-8C9AB4A742ED
Time Awake Since Boot: 2100 seconds
System Integrity Protection: disabled
Crashed Thread: 0
Exception Type: EXC_CRASH (Code Signature Invalid)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
kernel messages:
VM Regions Near 0x7fff7ad3a0a8 (cr2):
__LINKEDIT 00007fff6283f000-00007fff62854000 [ 84K] r--/rwx SM=COW /usr/lib/dyld
--> Submap 00007fff70000000-00007fff80000000 [256.0M] r--/rwx SM=PRV process-only VM submap
unused shlib __DATA 00007fff76fa4000-00007fff7b50a000 [ 69.4M] rw-/rw- SM=COW system shared lib __DATA not used by this process
Thread 0 Crashed:
0 dyld 0x00007fff627cc000 _dyld_start + 0
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x000000000000000d rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000000
rdi: 0x0000000000000000 rsi: 0x0000000000000000 rbp: 0x0000000000000000 rsp: 0x00007fff5ee0bc38
r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000000
r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000
rip: 0x00007fff627cc000 rfl: 0x0000000000000201 cr2: 0x00007fff7ad3a0a8
Logical CPU: 0
Error Code: 0x020000f4
Trap Number: 133
Binary Images:
0x7fff627cb000 - 0x7fff62802007 dyld (???) <9D05FDF4-65CE-3B53-86D4-ABE1A5BF35F3> /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: 2283
thread_create: 0
thread_set_state: 0
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
VM_ALLOCATE (reserved) 4K 2 reserved VM address space (unallocated)
__DATA 240K 3
__LINKEDIT 84K 2
__TEXT 224K 2
mapped file 2160K 4
shared memory 8K 3
=========== ======= =======
TOTAL 68.7M 14
TOTAL, minus reserved VM space 68.7M 14
Model: MacBookPro5,5, BootROM MBP55.00AC.B03, 2 processors, Intel Core 2 Duo, 2,53 GHz, 8 GB, SMC 1.47f2
Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1067 MHz, 0x859B, 0x435434473353313036374D2E433136464B44
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1067 MHz, 0x859B, 0x435434473353313036374D2E433136464B44
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (5.106.98.100.24)
Bluetooth: Version 4.4.3f4 16616, 3 services, 19 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
Serial ATA Device: Samsung SSD 840 EVO 250GB, 250,06 GB
Serial ATA Device: HL-DT-ST DVDRW GS23N
USB Device: USB 2.0 Bus
USB Device: Built-in iSight
USB Device: USB 2.0 Bus
USB Device: Card Reader
USB Device: Elements 10B8
USB Device: USB Bus
USB Device: BRCM2046 Hub
USB Device: Bluetooth USB Host Controller
USB Device: USB Bus
USB Device: Apple Internal Keyboard / Trackpad
USB Device: IR Receiver
USB Device: My Passport 070A
Thunderbolt Bus:
MacBook Pro, OS X El Capitan (10.11.3)