Mantis - openssh
Viewing Issue Advanced Details
4367 regular use crash always 2010-03-23 10:09 2010-04-09 22:12
matti123  
yann  
normal  
closed  
fixed  
none    
none  
0004367: Sshd version OpenSSH_5.4p1 refuses to start on SPARC Solaris 10 zone
Today I installed lots of packages from current repository to a new Solaris 10 zone. One of the packages was CSWossh. Version OpenSSH_5.4p1, OpenSSL 0.9.8m 25 Feb 2010 outputs error message "derelativise_path: getcwd: Invalid argument" and refuses to start.

Previous version, OpenSSH_5.3p1, OpenSSL 0.9.8l 5 Nov 2009, which I installed about a week ago runs without any problems.
Issue History
2010-03-23 10:09 matti123 New Issue
2010-03-23 11:09 matti123 Note Added: 0007728
2010-03-24 05:14 mirch Note Added: 0007731
2010-03-24 05:15 mirch Note Edited: 0007731
2010-03-25 18:47 yann Note Added: 0007744
2010-03-25 18:47 yann Assigned To => yann
2010-03-25 18:47 yann Status new => assigned
2010-03-25 19:26 yann Note Added: 0007745
2010-03-25 22:51 yann Note Added: 0007752
2010-04-09 22:12 yann Note Added: 0007842
2010-04-09 22:12 yann Status assigned => closed
2010-04-09 22:12 yann Resolution open => fixed

Notes
(0007728)
matti123   
2010-03-23 11:09   
I was able to track the cause to this issue. After uncommenting a following line from sshd_config sshd refuses to start.

#AuthorizedKeysFile .ssh/authorized_keys

So the line should be left in comments. This is a little bit strange thing because above value should be default even if it's commented.
(0007731)
mirch   
2010-03-24 05:14   
(edited on: 2010-03-24 05:15)
I think the AuthorizedKeysFileis a side effect of the real problem.

The new function derelativise_path() in servconf.c calls getcwd(NULL,0) and using zero for the size argument is unsupported on Solaris. This usage is supported in the GNU libraries though.

(0007744)
yann   
2010-03-25 18:47   
Thanks for the diagnosis.

You will find fixed package in my experimental repository:
https://bugzilla.mindrot.org/show_bug.cgi?id=1739 [^]

There is a little bug remaining, .ssh/authorized_keys doesn't work as expected. You should replace it with %h/.ssh/authorized_keys to have the original behavior.

mirch I saw you opened a bug upstream [1], I will post the patch and discuss the issue there.


[1] https://bugzilla.mindrot.org/show_bug.cgi?id=1739 [^]
(0007745)
yann   
2010-03-25 19:26   
My mistake, the experimental repository is here:
http://mirror.opencsw.org/experimental.html#yann [^]
(0007752)
yann   
2010-03-25 22:51   
I upload new ssh package with a fix for the second issue.

Feedbacks are welcome.
(0007842)
yann   
2010-04-09 22:12   
Fixed package released, I am closing this bug.