[Developers] Fwd: svn head .dmg
Brion Vibber
brion at pobox.com
Fri Jan 19 09:35:04 CET 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bart Matthaei wrote:
> What do you guys think. Should I place it as a beta on the website so
> people can use it?
If it's current SVN head, then it has a crashing bug and may crash
frequently, at least for some people.
My first home build crashed a couple times a day on my MacBook (crashes
strongly associated with putting the machine to sleep) until I tracked
it down and fixed the bug.
The bug is an uninitialized pointer being dereferenced due to incorrect
handling of the case where no unlocked keys are available on the
keychain during non-interactive checks.
I posted my one-line patch against trunk and a link to a binary I built
from it in December:
http://www.sshkeychain.org/pipermail/developers/2006-December/000040.html
I've been comfortably using my patched build on my MacBook for the last
three weeks with nary a problem. It would be super if the patch could be
applied...
Here's a stack trace of the crash, if you don't believe me... ;)
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x24c95d01
Thread 1 Crashed:
0 SSHKeychain 0x0000885a -[Controller
askPassphrase:withInteraction:] + 1402 (Controller.m:453)
1 libobjc.A.dylib 0x90a59d76 objc_msgSendv + 54
2 com.apple.Foundation 0x925ff5d7 -[NSInvocation invoke] + 1341
3 com.apple.Foundation 0x9264c74f -[NSConnection
dispatchInvocation:] + 487
4 com.apple.Foundation 0x9264ab51 -[NSConnection
handleRequest:sequence:] + 1273
5 com.apple.Foundation 0x9264a3ae -[NSConnection
handlePortCoder:] + 922
6 com.apple.Foundation 0x92649fef -[NSConcretePortCoder dispatch]
+ 188
7 com.apple.Foundation 0x92649a4c __NSFireMachPort + 307
8 com.apple.CoreFoundation 0x9083b3c5 __CFMachPortPerform + 136
9 com.apple.CoreFoundation 0x9082b66d CFRunLoopRunSpecific + 2904
10 com.apple.CoreFoundation 0x9082ab0e CFRunLoopRunInMode + 61
11 com.apple.Foundation 0x926b8e14 -[NSConnection run] + 214
12 com.apple.Foundation 0x925f836c forkThreadForFunction + 123
13 libSystem.B.dylib 0x90023d87 _pthread_body + 84
and my scribbled notes about the function during debugging...
if interaction is false
and [searchList count] is 0
then SecKeychainFindGenericPassword doesn't get run
caught it!
interaction is NO
- -- brion vibber (brion @ pobox.com / brion @ wikimedia.org)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFsIK4wRnhpk1wk44RAnLTAJ9ZzfZnB26+Q7HjvH+CaF/ku9PY6ACgjm4/
NZ7OfiXkFZuzCFOMUOh7F3Q=
=lcJ0
-----END PGP SIGNATURE-----
More information about the developers
mailing list