OpenSSH
[Top] [All Lists]

RE: Patch to fix the 255 status code problem

To: tim.mann@bt.com
Subject: RE: Patch to fix the 255 status code problem
From: Damien Miller <djm@mindrot.org>
Date: Thu, 1 Feb 2007 05:01:34 +1100 (EST)
Cc: dkg-openssh.com@fifthhorseman.net, openssh-unix-dev@mindrot.org
Delivered-to: sp-com-lists@consult.net
Delivered-to: openssh-unix-dev-list1@securepoint.com
Delivered-to: openssh-unix-dev-tmda@mindrot.org
Delivered-to: openssh-unix-dev@mindrot.org
In-reply-to: <FB1AA5A4B2D3444F926032839CF31A760265CA56@i2km10-ukbr.domain1.systemhost.net>
List-archive: <http://lists.mindrot.org/pipermail/openssh-unix-dev>
List-help: <mailto:openssh-unix-dev-request@mindrot.org?subject=help>
List-id: Development of portable OpenSSH <openssh-unix-dev.mindrot.org>
List-post: <mailto:openssh-unix-dev@mindrot.org>
List-subscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=subscribe>
List-unsubscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=unsubscribe>
References: <FB1AA5A4B2D3444F926032839CF31A760265CA56@i2km10-ukbr.domain1.systemhost.net>
Sender: openssh-unix-dev-bounces+openssh-unix-dev-list1=securepoint.com@mindrot.org
On Wed, 31 Jan 2007, tim.mann@bt.com wrote:

> Hi,
> 
> Thanks for your reply.
> 
> I'm having problems with  a dataguard deployment using Oracle 8.1.7.4. I
> found an article on Metalink which seem to explain the problem I was
> having. It states that with openssh (on Solaris) it returns status code
> 255 for a successful execution and this is interpreted by dataguard as a
> connection failure. 

My guess would be that dataguard is exiting abnormally. Exit code 255
is returned when the child process exited due to reception of a signal
(including crashes due to SIGSEGV/SIGBUS/SIGABORT):

[djm@fuyu djm]$ ssh localhost false ; echo $?
1
[djm@fuyu djm]$ ssh localhost true ; echo $?
0
[djm@fuyu djm]$ ssh localhost 'sh -c "kill -SEGV $$"' ; echo $?
255

SSH protocol 1 has no way to signal that the child process terminated
abnormally.

-d
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

<Prev in Thread] Current Thread [Next in Thread>