Closed thebitguru closed 10 years ago
this is the crash rapport Process: rcd [575] Path: /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd Identifier: rcd Version: 320.15 (320.15) Code Type: X86-64 (Native) Parent Process: launchd [138] User ID: 501
Date/Time: 2013-05-14 09:43:31.757 +0200 OS Version: Mac OS X 10.8.3 (12D78) Report Version: 10
Interval Since Last Report: -484095 sec Crashes Since Last Report: -1 Per-App Crashes Since Last Report: 2 Anonymous UUID: 034A6CF7-F43E-4226-72DA-F1A8B8326ED8
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (Code Signature Invalid) Exception Codes: 0x0000000000000000, 0x0000000000000000
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 com.apple.CoreFoundation 0x00007fff8fe49c70 CFStringHash + 208 1 com.apple.CoreFoundation 0x00007fff8fe4c963 CFBasicHashAddValue + 675 2 com.apple.CoreFoundation 0x00007fff8fe4b9ed CFDictionarySetValue + 189 3 com.apple.rcd 0x000000010bf3d381 main + 161 4 libdyld.dylib 0x00007fff942497e1 start + 1
Thread 0 crashed with X86 Thread State (64-bit): rax: 0x00007fff79d07dd0 rbx: 0xffffffffffffffff rcx: 0x0000000000000009 rdx: 0x0000000000000000 rdi: 0x000000010bf41636 rsi: 0x0000000000000009 rbp: 0x00007fff53cc5c40 rsp: 0x00007fff53cc5c38 r8: 0x0000000000000032 r9: 0x0000000000000000 r10: 0x000000010bf41636 r11: 0x000000010bf4163e r12: 0x00007fe0a0410aa0 r13: 0x0000000000000001 r14: 0x000000010bf45628 r15: 0x0000000000000687 rip: 0x00007fff8fe49c70 rfl: 0x0000000000010202 cr2: 0x000000010bf41636 Logical CPU: 1
Binary Images:
0x10bf3a000 - 0x10bf44fff com.apple.rcd (320.15 - 320.15)
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: 743 thread_create: 0 thread_set_state: 0
VM Region Summary: ReadOnly portion of Libraries: Total=142.0M resident=68.1M(48%) swapped_out_or_unallocated=74.0M(52%) Writable regions: Total=19.8M written=224K(1%) resident=328K(2%) swapped_out=0K(0%) unallocated=19.4M(98%)
REGION TYPE VIRTUAL =========== ======= MALLOC 11.5M MALLOC guard page 48K STACK GUARD 56.0M Stack 8192K VM_ALLOCATE 4K DATA 10.3M IMAGE 528K LINKEDIT 52.1M TEXT 89.9M __UNICODE 544K shared memory 12K =========== ======= TOTAL 229.0M
Model: MacBook7,1, BootROM MB71.0039.B0E, 2 processors, Intel Core 2 Duo, 2.4 GHz, 2 GB, SMC 1.60f6 Graphics: NVIDIA GeForce 320M, NVIDIA GeForce 320M, PCI, 256 MB Memory Module: BANK 0/DIMM0, 1 GB, DDR3, 1067 MHz, 0x80AD, 0x484D54313132533654465238432D47372020 Memory Module: BANK 1/DIMM0, 1 GB, DDR3, 1067 MHz, 0x80AD, 0x484D54313132533654465238432D47372020 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x93), Broadcom BCM43xx 1.0 (5.106.98.100.16) Bluetooth: Version 4.1.3f3 11349, 2 service, 11 devices, 1 incoming serial ports Network Service: Wi-Fi, AirPort, en1 Serial ATA Device: Hitachi HTS545025B9SA02, 250,06 GB Serial ATA Device: OPTIARC DVD RW AD-5970H USB Device: Built-in iSight, apple_vendor_id, 0x8507, 0x24600000 / 2 USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0237, 0x06300000 / 3 USB Device: BRCM2070 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0x06600000 / 2 USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8218, 0x06630000 / 4
Thanks, @daiced. This is a code signing issue. Can you please include the output of the command I put in my original post (which codesign)?
Last login: Tue May 14 17:57:54 on console Daniels-MacBook:~ danieldaemi$ /Users/danieldaemi/Downloads/PlayButtoniTunesPatch-0.8.2\ 2/Patch.command ; exit;
-------------------------- Play Button iTunes Patch -------------------------- This patch requires that you run it as root. Trying: sudo /Users/danieldaemi/Downloads/PlayButtoniTunesPatch-0.8.2 2/Patch.command Password: Confirmed that the script is running as root (uid 0).
-------------------------- Play Button iTunes Patch -------------------------- This program will patch the Remote Control Daemon to prevent it from starting iTunes whenever you press the play button on the keyboard or an external remote control. This will only prevent iTunes from starting, all other functions (like play/pause while iTunes is running) will continue to work as before.
Also, this program will backup the original file in case if you would like to restore the original functionality.
This program comes with ABSOLUTELY NO WARRANTY; please see the included license file for details.
Everything is ready. Would you like to create a backup and apply the patch? (y/N) y Patching...
Finished patching. To verify:
Run this script again if you would like to restore the original functionality.
For questions and/or comments please visit http://www.thebitguru.com/projects/iTunesPatch logout
[Processen slutförd]
Interesting. By the way, do you have XCode installed?
If so, this might be worth a try: http://iosdevelopertips.com/mac-osx/code-signing-error-object-file-format-unrecognized-invalid-or-unsuitable.html
export CODESIGN_ALLOCATE="/Applications/Xcode.app/Contents/Developer/usr/bin/codesign_allocate"
I have the same issue on OS X 10.8.4. Here's the output when running which codessign:
/usr/bin/codesign
Installed xcode, tried the "export code sign" before running "sudo codesign -f -s - /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd" and still get the "object file format unrecognized, invalid, or unsuitable" What can i try next? OSX10.8.4
@vinht23, @mikeriv, Sorry for the delay, I have been very busy at work lately. After applying the patch one more time can you please try running the following comands in Terminal and send the output?
sudo killall rcd 2> /dev/null sudo codesign -f -s - /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd
After this rcd should start backup itself. Let the system run for a few minutes and see if you continue to experience those rcd crashes.
Also, can you send me what your system has for "Allow applications downloaded from:" under "Security & Privacy" system preference?
There seems to be an issue with some users not having an identity.
$ sudo codesign -f -s - /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd
/System/Library/CoreServices/rcd.app/Contents/MacOS/rcd: no identity found
I have posted on stack exchange to see if someone there can point me in the right direction to fix this.
Hi, How do I uninstall your patch?
iTunes was occasionally launching by itself and I saw that this might help but now I get a "rcd quit unexpectedly while using the rcd plug-in." error when I hit any of the keyboard controls.... like volume.
I should add that I'm not very experience with the command line.... :-/
Ok, Just just located the /System/Library/CoreServices/rcd.app and deleted it .... is that enough?? It seems to have stopped the crash errors from popping up constantly ... Sorry I realise these ares a total newb questions...
@Hilmon Which Mac OS X version are you on? If you run the patch again then it will undo the changes it made, but rcd.app needs to be there. Can you recover rcd.app from trash and then run the patch?
Hi, Thanks for the reply .... I'm running 10.9.1 Mavrick ... Thanks, that sorted it! ..... I still haven't found the answer to why iTunes occasionally launches by itself tho .... :-/
@Hilmon That's surprising because I am running 10.9.1 myself and successfully applied this patch. I have also heard from numerous folks that the patch worked for them. The rcd
crash was probably caused by this patch though. I am committing some changes in a few minutes see if that helps.
I am not sure why iTunes would randomly pop up. I don't think that would be related to this. After you restored the original rcd.app
are you continuing to see it pop up or has that stopped?
No more iTunes launching but as I said it is very intermittent... When I did run your patch it did see something about running it from root ... and it wouldn't let me, or at least didn't display my password when prompted.... No more crash pop ups after rerunning the patch and restoring the original files.
If possible, please share the output if you decide to run it again. Also, if iTunes pops up again then take a look in the Console
(Applications > Utilities > Console) to see if there are any clues there.
Will do! Thanks again for your help!
I also get the crashing of RCD. Running OSX 10.8.5. Here's an interesting thing I noticed while running v0.8.3 of the patch:
Patching...
+ Killed any running processes.
+ Backed up the existing file as rcd_backup_0.8.3_201404141421.33
+ Patching...
Successfully patched the file (found 1 instances at 28702).
+ Regenerating the code signature...
/System/Library/CoreServices/rcd.app/Contents/MacOS/rcd: replacing existing signature
/System/Library/CoreServices/rcd.app/Contents/MacOS/rcd: object file format unrecognized, invalid, or unsuitable
+ Successfully patched the existing file.
Thoughts?
@bluestarstudios I have created a new issue (#6). Please see that issue for next steps.
RCD seems to be crashing for some folks. I am guessing that this is because they are missing the codesign utility which might be part of XCode. If you are facing this issue then can you please include the output of running the following command in
Terminal
(available at Applications > Utilities)?