Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jun 30, 2006, 03:57 PM   #1
macbook123
macrumors 68000
 
Join Date: Feb 2006
ssh broken after upgrade to 10.4.7

since I upgraded to 10.4.7, whenever using ssh I get a Segmentation Fault message. I also upgraded to the newest Xcode a few days earlier so it could be related to that. Any ideas what could be going wrong? Thanks.
macbook123 is offline   0 Reply With Quote
Old Jun 30, 2006, 04:48 PM   #2
yellow
Moderator
 
yellow's Avatar
 
Join Date: Oct 2003
Location: Portland, OR
Did you use fink or darwinports to compile an Openssh other than the one the Mac is using?

Make sure by specifying the COMPLETE path to darwin's ssh..

/usr/bin/ssh user@host

Still getting a segfault?
yellow is offline   0 Reply With Quote
Old Jun 30, 2006, 06:24 PM   #3
Eraserhead
macrumors G4
 
Eraserhead's Avatar
 
Join Date: Nov 2005
Location: UK
it works for me at least to connect to the Warwick UNIX servers with 10.4.7, i have XCode 2.3 installed too... I just did ssh username@server.warwick.ac.uk to connect... I do have a PPC Mac, unless you have an Intel I suspect it's a problem with your server...
__________________
If they have to tell you every day they are fair you can bet they arent, if they tell you they are balanced then you should know they are not - Don't Hurt me
Eraserhead is offline   0 Reply With Quote
Old Jun 30, 2006, 09:37 PM   #4
macbook123
Thread Starter
macrumors 68000
 
Join Date: Feb 2006
I do have an Intel Mac (see my signature). It's not my server either, since I can log on fine from my Linux laptop. I use Xcode 2.3 and OS 10.4.7. I've never seen ssh giving a "Segmentation Fault" message. Hope somebody will be able to diagnose this!
macbook123 is offline   0 Reply With Quote
Old Jun 30, 2006, 11:59 PM   #5
plinden
macrumors 68040
 
plinden's Avatar
 
Join Date: Apr 2004
Quote:
Originally Posted by macbook123
I do have an Intel Mac (see my signature). It's not my server either, since I can log on fine from my Linux laptop. I use Xcode 2.3 and OS 10.4.7. I've never seen ssh giving a "Segmentation Fault" message. Hope somebody will be able to diagnose this!
ssh is working fine on my Intel Mac after the update.

If you type "ssh -V" what do you get?

I see:
Code:
OpenSSH_3.8.1p1, OpenSSL 0.9.7i 14 Oct 2005
If you're getting a segmentation fault, presumably there's a core file somewhere. You can load this into gdb and try to find what's happening.
plinden is offline   0 Reply With Quote
Old Jul 1, 2006, 06:55 AM   #6
macbook123
Thread Starter
macrumors 68000
 
Join Date: Feb 2006
I do get the same if I just call /usr/bin/ssh:

OpenSSH_3.8.1p1, OpenSSL 0.9.7i 14 Oct 2005

However when trying to log on to any server, I get the segmentation fault message. As if ssh didn't like the format of the comman line option. I don't understand...
macbook123 is offline   0 Reply With Quote
Old Jul 1, 2006, 07:16 AM   #7
macbook123
Thread Starter
macrumors 68000
 
Join Date: Feb 2006
Quote:
Originally Posted by plinden
ssh is working fine on my Intel Mac after the update.

If you type "ssh -V" what do you get?

I see:
Code:
OpenSSH_3.8.1p1, OpenSSL 0.9.7i 14 Oct 2005
If you're getting a segmentation fault, presumably there's a core file somewhere. You can load this into gdb and try to find what's happening.
Using gdb, I'm getting the following but don't know how to interpret it:

(gdb) run user@server.edu
Starting program: /usr/bin/ssh user@server.edu

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xb1d2a484
0x90b37e3a in __cxa_get_globals ()
(gdb) bt
#0 0x90b37e3a in __cxa_get_globals ()
#1 0x90b3853a in __gxx_personality_v0 ()
#2 0x90bcabf7 in _Unwind_RaiseException ()
#3 0x90b38857 in __cxa_throw ()
#4 0x94c5e238 in CCIContextDataMachIPCStub::OpenCCache ()
#5 0x94c5dfde in CCEContext::OpenCCache ()
#6 0x94c5dd5e in cc_open ()
#7 0x94c5dbf6 in krb5_stdcc_resolve ()
#8 0x94c631a1 in __KLGetCCacheByName ()
#9 0x94c62e8a in __KLAcquireInitialTicketsForCache ()
#10 0x94c62d7f in krb5int_cc_default ()
#11 0x94c54215 in krb5_gss_acquire_cred ()
#12 0x94c62d11 in kg_get_defcred ()
#13 0x94c61a14 in krb5_gss_init_sec_context ()
#14 0x00024305 in ?? ()
#15 0x000246f4 in ?? ()
#16 0x000247fb in ?? ()
#17 0x0000c462 in ?? ()
#18 0x0000a251 in ?? ()
#19 0x000042c7 in ?? ()
#20 0x000025f2 in ?? ()
#21 0x0000250d in ?? ()
(gdb) quit
macbook123 is offline   0 Reply With Quote
Old Jul 1, 2006, 03:08 PM   #8
plinden
macrumors 68040
 
plinden's Avatar
 
Join Date: Apr 2004
Looks like this problem - http://discussions.apple.com/thread....sageID=2574621

You're not the only one out there. There doesn't seem to be a fix.
plinden is offline   0 Reply With Quote
Old Jul 1, 2006, 03:26 PM   #9
mkrishnan
Moderator emeritus
 
mkrishnan's Avatar
 
Join Date: Jan 2004
Location: Grand Rapids, MI, USA
Quote:
Originally Posted by plinden
Looks like this problem - http://discussions.apple.com/thread....sageID=2574621

You're not the only one out there. There doesn't seem to be a fix.
I don't know how to solve the problem either, but I find the "status" of that thread to be somewhat... erm... fugazi.

Quote:
This question is answered. "Helpful" answers available: 2. "Solved" answers available: 1.


There is one thing I can contribute to this thread...the issue doesn't appear to have anything to do with the version of SSH... from my 10.4.6 iBook:

Quote:
OpenSSH_3.8.1p1, OpenSSL 0.9.7i 14 Oct 2005
The build didn't change with 10.4.7....
__________________
Mohan
mkrishnan is offline   0 Reply With Quote
Old Jul 1, 2006, 03:53 PM   #10
macbook123
Thread Starter
macrumors 68000
 
Join Date: Feb 2006
Quote:
Originally Posted by mkrishnan
I don't know how to solve the problem either, but I find the "status" of that thread to be somewhat... erm... fugazi.




I don't know what you're referring to. In any event, I never checked the question to be answered. It is clearly not answered.

Quote:
Originally Posted by mkrishnan
There is one thing I can contribute to this thread...the issue doesn't appear to have anything to do with the version of SSH... from my 10.4.6 iBook:

The build didn't change with 10.4.7....
After doing a combo update of 10.4.7 the problem has changed:

lap~/Desktop>ssh
OpenSSL version mismatch. Built against 90581f, you have 9060cf

Interestingly, my partner has a Macbook, she also did the upgrade to 10.4.7, and ssh still works on hers. Also, somebody over on the Apple forum did the upgrade on his MBP 2.0 and it worked. So far the only other case of somebody having the problem is the link "plinden" provided. However there the problem apparently appeared under 10.4.6 and was solved with 10.4.7. It looks like this happens only in isolated cases. That's what's driving me nuts: that on some computers it seems to work on others it doesn't. How can this be a hardware problem?

Last edited by macbook123; Jul 1, 2006 at 04:00 PM.
macbook123 is offline   0 Reply With Quote
Old Jul 1, 2006, 06:38 PM   #11
macbook123
Thread Starter
macrumors 68000
 
Join Date: Feb 2006
o.k., since nothing else helped I did the 2.5 hour reinstall of the OS. Too bad one can't rely on updates of Mac OS. I know most people are probably happy with theirs and think this is whining, however it cost me probably 6 hours overall to go through this. There were other troubles caused presumably by 10.4.7 (since those were new to me): my MBP did freeze twice in the last 4 days, usually while doing simple browsing with Safari. Plus once the keyboard and mouse stopped working and only a PRAM reset saved me.

To wrap up, unless someone very much needs one of the new features of 10.4.7, I would wait until it has been patched up a couple of times.
macbook123 is offline   0 Reply With Quote
Old Jul 1, 2006, 06:52 PM   #12
Peace
macrumors P6
 
Join Date: Apr 2005
Location: Space--The ONLY Frontier
Quote:
Originally Posted by macbook123
o.k., since nothing else helped I did the 2.5 hour reinstall of the OS. Too bad one can't rely on updates of Mac OS. I know most people are probably happy with theirs and think this is whining, however it cost me probably 6 hours overall to go through this. There were other troubles caused presumably by 10.4.7 (since those were new to me): my MBP did freeze twice in the last 4 days, usually while doing simple browsing with Safari. Plus once the keyboard and mouse stopped working and only a PRAM reset saved me.

To wrap up, unless someone very much needs one of the new features of 10.4.7, I would wait until it has been patched up a couple of times.
Please list ALL the haxies you have installed..
__________________
Throw us one Russell---John Fox Super Bowl 49
Peace is offline   0 Reply With Quote
Old Jul 1, 2006, 06:57 PM   #13
mkrishnan
Moderator emeritus
 
mkrishnan's Avatar
 
Join Date: Jan 2004
Location: Grand Rapids, MI, USA
Quote:
Originally Posted by Peace
Please list ALL the haxies you have installed..
I'm sorry to say it, but this is my thinking too... this isn't a result of a problem with 10.4.7. This is a result of something else you installed on your system that confused the OS....
__________________
Mohan
mkrishnan is offline   0 Reply With Quote
Old Jul 1, 2006, 07:54 PM   #14
macbook123
Thread Starter
macrumors 68000
 
Join Date: Feb 2006
Hi, it's well possible that the second error I got, the mismatch between OpenSSL versions, was caused by all kinds of hacks I tried. However the first (Segmentation Fault) appeared after updating to 10.4.7, and wasn't there before. Note that I'm not the only one out there who has the problem. Anyways, of course I *hope* it is not due to a problem with 10.4.7, but just that I did something I don't remember. Take it easy.
macbook123 is offline   0 Reply With Quote
Old Jul 5, 2006, 02:33 AM   #15
mforbes
macrumors newbie
 
Join Date: Jul 2006
There is a workaround---specify the protocol explicitly:

ssh -1 ...

See http://discussions.apple.com/thread....sageID=2574621
mforbes is offline   0 Reply With Quote
Old Sep 20, 2006, 04:29 AM   #16
eureka
macrumors newbie
 
Join Date: Sep 2006
Possible solution

Dear all, I have just experienced the same problem with ssh in my macbook.

I used the Darwin ports (http://darwinports.com) to install the new version of openSSL and openSSH.

Simply type
% sudo port install openssl
and, after having done it
% sudo port install openssh
at the end of this second installation, a msg will tell you how to launch the new ssh at the startup; type it and restart your computer

with it has worked fine.

good luck!!!
eureka is offline   0 Reply With Quote
Old Sep 23, 2006, 08:09 AM   #17
superbovine
macrumors 68030
 
superbovine's Avatar
 
Join Date: Nov 2003
Quote:
Originally Posted by eureka
Dear all, I have just experienced the same problem with ssh in my macbook.

I used the Darwin ports (http://darwinports.com) to install the new version of openSSL and openSSH.

Simply type
% sudo port install openssl
and, after having done it
% sudo port install openssh
at the end of this second installation, a msg will tell you how to launch the new ssh at the startup; type it and restart your computer

with it has worked fine.

good luck!!!
leave it to the newbie....
openssl is broke, well let's reinstall it. genius!
...but yeah that is what I would have done.
superbovine is offline   0 Reply With Quote
Old Sep 26, 2006, 05:34 PM   #18
dattilo0691
macrumors newbie
 
Join Date: Sep 2006
Work around for ssh problems...

However it happened, this appears to be an issue directly related to a corrupt kerberos database/library which gets accessed when ssh v2 is instantiated. One solution is to find another Mac(book)Pro and replace the contents of:
/System/Library/Frameworks/Kerberos.framework
With the relative files from the machine with functional ssh.
Hope that helps someone,
-Garth
dattilo0691 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
iPad: Can I upgrade from iOS 6.1.2 (jail broken) to iOS 6.1.6 (jail broken) on my iPad 3? Idgit Jailbreaks and iOS Hacks 5 Apr 25, 2014 03:36 PM
Ssh server. How to block all internet traffic except ssh? Mikehuang OS X Mavericks (10.9) 3 Mar 30, 2014 08:55 PM
10.9 upgrade - ssh frequently hangs/pauses... grouch OS X Mavericks (10.9) 8 Nov 6, 2013 11:28 AM
Wakeup from Sleep = Broken after Mavericks Upgrade Hevelius OS X Mavericks (10.9) 14 Nov 4, 2013 08:41 AM
How to Upgrade to Leopard with a broken disc drive 091527w MacBook 1 Jun 18, 2013 01:08 PM

Forum Jump

All times are GMT -5. The time now is 03:48 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC