Re: Trouble with Remote Apple Events (eppc) and Keychain
Re: Trouble with Remote Apple Events (eppc) and Keychain
- Subject: Re: Trouble with Remote Apple Events (eppc) and Keychain
- From: has <email@hidden>
- Date: Tue, 9 Oct 2007 14:38:10 +0100
Maximilian Schirmer wrote:
2 (out of 2) Intel machines (MacBooks, 10.4.10) corrupted the protocol
identifier and crashed everytime the code was executed. No difference
in connecting to PPC, Intel or themselves either.
The reversed protcol issue ('eppc' -> 'cppe') does suggest an
endianess bug (a common cause is carelessly assuming big endianess
while converting an OSType to string; CFSwapInt32HostToBig exists for
a reason). Whether or not it's related to the crashing problem I
don't know - it's been around a while (most likely since Tiger-i386
was released) and I can't recall experiencing any crashes in the
past. However, testing remote AEs now OMM (Core Solo Mini, OS
10.4.10) results in a crash whenever the Apple Event Manager tries to
auto-authenticate:
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000
Thread 0 Crashed:
0 com.apple.CoreFoundation 0x9080e04a CFRelease + 56
1 com.apple.AE 0x9153c2c8
EPPCForwardRunLoopSource::doProcessSessionRequestResult() + 622
2 com.apple.CoreFoundation 0x9082cf92 CFRunLoopRunSpecific + 1213
3 com.apple.CoreFoundation 0x9082cace CFRunLoopRunInMode + 61
4 com.apple.AE 0x91521155 AESendMessage + 2207
I recommend filing a bug report with Apple (noting that not all users
seem to be affected) and hope they identify the cause and get some
fixes in pronto. In the meantime, the only workaround I can suggest
is to avoid the AEM auto-authenticating by adding the remote host's
username and password to the eppc URL yourself. The Keychain API docs
are at: <http://developer.apple.com/documentation/Security/Reference/
keychainservices/index.html>; I believe there are third-party ObjC-
based wrappers around as well but don't know anything about them.
HTH
has
p.s. Somewhat OT, but since you mentioned you're working in ObjC/
Cocoa you might like to take a look at objc-appscript <http://
appscript.sourceforge.net/objc-appscript.html> as a much more elegant
native alternative to all that ugly mucking about with NSAppleScripts.
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden