NetBSD Problem Report #49674

From  Wed Feb 18 02:26:46 2015
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (not verified))
	by (Postfix) with ESMTPS id B873CA654B
	for <>; Wed, 18 Feb 2015 02:26:46 +0000 (UTC)
Message-Id: <>
Date: Wed, 18 Feb 2015 02:26:45 +0000 (UTC)
Subject: Failed test case: lib/librumphijack/t_tcpip:http
X-Send-Pr-Version: www-1.0

>Number:         49674
>Category:       misc
>Synopsis:       Failed test case: lib/librumphijack/t_tcpip:http
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 18 02:30:00 +0000 2015
>Originator:     Travis Paul
>Release:        6.1.5
NetBSD 6.1.5 NetBSD 6.1.5 (GENERIC) amd64
The lib/librumphijack/t_tcpip:http test case fails when running the test suite on a fresh install performed using sysinstall. This error ONLY occurs when running the test as a regular user, it does not fail when being run as root. I can reproduce these failures on 2 different amd64 machines.

Note that I will create a separate PR for the fs/vfs/t_renamerace:lfs_renamerace_dirs error below.

Summarized Output:

$ cd /usr/tests
$ atf-run | atf-report
lib/librumphijack/t_tcpip (400/500): 4 test cases
    http: [0.054570s] Failed: atf-check failed; see the output of the test for details
    nfs: [0.188953s] Passed.
    nfs_autoload: [0.025749s] Skipped: test currently valid only on i386
    ssh: [0.647354s] Passed.
Failed test cases:
    fs/vfs/t_renamerace:lfs_renamerace_dirs, lib/librumphijack/t_tcpip:http
Summary for 500 test programs:
    2740 passed test cases.
    2 failed test cases.
    32 expected failed test cases.
    305 skipped test cases.

Detailed output:

$ cd /usr/tests/lib/librumphijack/ 
$ atf-run t_tcpip
Content-Type: application/X-atf-tps; version="3"

info: atf.version, Automated Testing Framework 0.15 (atf-0.15)
info: tests.root, /usr/tests/lib/librumphijack
tc-start: 1424225450.926942, http
tc-so:Executing command [ rump_server -lrumpnet -lrumpnet_net -lrumpnet_netinet unix://csock ]
c-so:Executing command [ env LD_PRELOAD=/usr/lib/ /usr/libexec/httpd -P ./ -b -s /usr/tests/lib/librump
hijack ]
tc-so:Executing command [ rump.netstat -a ]
tc-se:Fail: incorrect exit status: 1, expected: 0
tc-se:Active Internet connections (including servers)
tc-se:Proto Recv-Q Send-Q  Local Address          Foreign Address        State
tc-se:tcp        0      0  *.http                 *.*                    LISTEN
tc-se:rump.netstat: kvm error: /dev/mem: Permission denied
tc-end: 1424225450.980832, http, failed, atf-check failed; see the output of the test for details

Perform an amd64 install, reboot and run the test suite described by tests(7) as a non-root user.
Running the test as root or adding 'atf_set "require.user" "root"' to the http_head function suppresses the failure however I'm not sure this is the correct fix.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.