wrong return codes

Frank Beckmann Frank.Beckmann at vodafone.com
Tue Aug 19 05:33:08 EST 2003


Hello

we have a Problem with wrong Return Codes in some SSH Relases (3.1p1 and 
3.6.1p2) under Solaris (6 and 8)
Example:

ssh system ls /xy
echo $?
The file exist  or not ...
Somtimes the ssh give a wrong return code

Is the SSH compiled with the SUN WS Compiler (Versions 6 and 7) the 
supply more wrong return codes
The problem is not so strong when we use the gnu-gcc compiler. the error 
comes sporadic (not so many errors as a sun ws compiled version).

A Developer say to me that can be a Timing Problem... He says somthing 
with Race (Time!?) Conditons or so...
The Problem is strong on Maschine with high load (Multi CPU Sparc Systems)
Im not a Programmer :-)

In the /var/adm/messages we have many errors
Jun 22 03:14:31 d2cred2 sshd[20557]: error: Strange, wait returned pid 
20648, expected 20762
Jun 22 03:14:33 d2cred2 sshd[21044]: error: session_by_pid: unknown pid 
21190
Jun 22 03:14:38 d2cred2 sshd[15969]: error: Strange, wait returned pid 
16649, expected 18111

Is this a seperate Problem ?

We want to replace the rsh commands in scripts, but we dont can do this 
with this problem.

Sorry for my bad bad English ;-)

Greetings from Germany

Frank




More information about the openssh-unix-dev mailing list