NetBSD Problem Report #49008

From Manuel.Bouyer@lip6.fr  Thu Jul 17 10:48:12 2014
Return-Path: <Manuel.Bouyer@lip6.fr>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 21175A5832
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 17 Jul 2014 10:48:12 +0000 (UTC)
Message-Id: <20140717104808.6355B34CD0@armandeche.soc.lip6.fr>
Date: Thu, 17 Jul 2014 12:48:08 +0200 (MEST)
From: bouyer@antioche.eu.org
Reply-To: bouyer@antioche.eu.org
To: gnats-bugs@gnats.NetBSD.org
Subject: rump (or atf) doesn't properly report KASSERT()
X-Send-Pr-Version: 3.95

>Number:         49008
>Category:       kern
>Synopsis:       rump (or atf) doesn't properly report KASSERT()
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 17 10:50:00 +0000 2014
>Last-Modified:  Thu Jul 17 11:05:00 +0000 2014
>Originator:     Manuel Bouyer
>Release:        NetBSD 6.99.44
>Organization:
>Environment:
System: NetBSD test1 6.99.44 NetBSD 6.99.44 (XEN3PAE_DOMU) #4: Thu Jul 17 11:59:48 CEST 2014  bouyer@houla:/dsk/l1/misc/bouyer/tmp/i386/obj/dsk/l1/misc/bouyer/HEAD/src/sys/arch/i386/compile/XEN3PAE_DOMU i386
Architecture: i386
Machine: i386
>Description:
	I've been pointed out that some MPLS tests are failing since a commit
	of mine:
http://releng.netbsd.org/b5reports/i386/build/2014.05.13.20.29.59/test.html#net_mpls_t_mpls_fw_mplsfw4

	notice that stderr only has
Fail: incorrect exit status: 2, expected: 0
stdout:
PING 10.0.4.1 (10.0.4.1): 64 data bytes

----10.0.4.1 PING Statistics----
4 packets transmitted, 0 packets received, 100.0% packet loss 

stderr:

rump.halt: init failed: No such file or directory

	To debug this I setup 4 Xen guests to reproduce the setup of this
	test. Then the problem became immediatly obvious:
test2# panic: kernel diagnostic assertion "KERNEL_LOCKED_P()" failed: file "/dsk/l1/misc/bouyer/HEAD/src/sys/net/if_ethersubr.c", line 215

	I guess the second rump server of the test did panic and exit, but
	this message was not inclued in the test output.

>How-To-Repeat:
	revert if_mpls.c 1.16 and run atf in tests/net/mpls.
	Notice that the tests fails without usefull messages.
>Fix:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49008: rump (or atf) doesn't properly report KASSERT()
Date: Thu, 17 Jul 2014 13:00:42 +0200

 This seems to be a specific problem with the way this test case uses
 rump servers - however, it is a common pattern and a more general "collect
 stdout from all rump servers I started" method would be nice (as well
 as a "kill all rump servers I started" during cleanup).

 Martin

NetBSD Home
NetBSD PR Database Search

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