NetBSD Problem Report #50174

From  Wed Aug 26 09:05:12 2015
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id 71AA3A6531
	for <>; Wed, 26 Aug 2015 09:05:12 +0000 (UTC)
Subject: lib/librumphijack/t_tcpip:ssh fails consistently
X-Send-Pr-Version: 3.95

>Number:         50174
>Category:       lib
>Synopsis:       lib/librumphijack/t_tcpip:ssh fails consistently
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 26 09:10:00 +0000 2015
>Closed-Date:    Fri Sep 10 21:25:57 +0000 2021
>Last-Modified:  Fri Sep 10 21:25:57 +0000 2021
>Originator:     Martin Husemann
>Release:        NetBSD 7.99.21
The NetBSD Foundation, Inc.
System: NetBSD 7.99.21 NetBSD 7.99.21 (UNPLUGED) #83: Tue Aug 25 19:44:20 CEST 2015 evbarm
Architecture: earm
Machine: evbarm

librumphijack (as used in the lib/librumphijack/t_tcpip:ssh test case)
is not able to fully deal with ssh in -current. The test fails consistently.

Just try to run that test



From: "Martin Husemann" <>
Subject: PR/50174 CVS commit: src/tests/lib/librumphijack
Date: Wed, 26 Aug 2015 09:19:20 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Wed Aug 26 09:19:20 UTC 2015

 Modified Files:

 Log Message:
 Mark the ssh test as expected failure pointing to PR lib/50174

 To generate a diff of this commit:
 cvs rdiff -u -r1.14 -r1.15 src/tests/lib/librumphijack/

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->analyzed
State-Changed-When: Wed, 26 Aug 2015 05:49:18 -0400
The problem is that the rump emulation of fcntl F_CLOSEM is broken.
sshd fails with  21641      1 sshd     GIO   fd 2 wrote 39 bytes
       "closefrom failed: Bad file descriptor\r\n"
Removing the check for closefrom makes the test work, but it is wrong.

From: Andreas Gustafsson <>
Subject: Re: lib/50174 (lib/librumphijack/t_tcpip:ssh fails consistently)
Date: Sat, 4 Sep 2021 15:42:15 +0300

 Since Christos' ssh commits of September 2, this test case is failing
 differently than before, with a timeout rather than a prompt failure,
 and the atf_expect_fail statement in the test appears to no longer be
 effective as the test is once again reported as an unexpected failure.

 Log output from the last one of the old, expected failures:

 Log output from the first one of the new, unexpected failures:

 Andreas Gustafsson,

State-Changed-From-To: analyzed->closed
State-Changed-When: Fri, 10 Sep 2021 17:25:57 -0400
Fixed by:
1. making closefrom(3) always succeed in librumphijack
2. implementing pselect(2) in librumphijack. This was the reason that the
   test now times out instead of failing. Since pselect was not hijacked,
   it did not see the data coming from the rump file descriptor.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.