NetBSD Problem Report #48582

From gson@gson.org  Sun Feb  9 15:43:41 2014
Return-Path: <gson@gson.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 04DF9A6487
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  9 Feb 2014 15:43:41 +0000 (UTC)
Message-Id: <20140209154336.838D675E3E@guava.gson.org>
Date: Sun,  9 Feb 2014 17:43:36 +0200 (EET)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@gnats.NetBSD.org
Subject: Multiple ATF tests now fail with "Invariant check failed"
X-Send-Pr-Version: 3.95

>Number:         48582
>Category:       bin
>Synopsis:       Multiple ATF tests fail with "Invariant check failed"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jmmv
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 09 15:45:00 +0000 2014
>Closed-Date:    Sun Feb 09 21:42:34 +0000 2014
>Last-Modified:  Sun Feb 09 21:42:34 +0000 2014
>Originator:     Andreas Gustafsson
>Release:        NetBSD-current, source date 2014.02.09.01.46.10
>Organization:

>Environment:
System: NetBSD
Architecture: i386
Machine: i386
>Description:

Since the recent import of atf 0.19, a number of tests that previously
passed are failing.  Here is the standard error from one of them:

   t_paths: Invariant check failed at /tmp/bracket/build/2014.02.08.19.45.51-i386/src/external/bsd/atf/dist/atf-c/config.c:146: value != NULL
   t_paths: 
   t_paths: This is probably a bug in this application or one of the libraries it uses.  If you believe this problem is caused by, or is related to Automated Testing Framework 0.17, please report it to atf-devel@NetBSD.org and provide as many detatils as possible describing how you got to this condition.
   Test program crashed; attempting to get stack trace
   [New process 1]
   Core was generated by `t_paths'.
   Program terminated with signal 6, Aborted.
   #0  0xbbb6b457 in _lwp_kill () from /usr/lib/libc.so.12
   #0  0xbbb6b457 in _lwp_kill () from /usr/lib/libc.so.12
   #1  0xbbb6b3f3 in raise () from /usr/lib/libc.so.12
   #2  0xbbb6aff1 in abort () from /usr/lib/libc.so.12
   #3  0xbbbde1b6 in ?? () from /usr/lib/libatf-c.so.0
   #4  0xbbbde1ec in atf_sanity_inv () from /usr/lib/libatf-c.so.0
   #5  0xbbbd7d8b in atf_config_get () from /usr/lib/libatf-c.so.0
   #6  0x08048d10 in atfu_paths_body ()
   #7  0xbbbd929e in atf_tc_run () from /usr/lib/libatf-c.so.0
   #8  0xbbbd5d41 in atf_tp_run () from /usr/lib/libatf-c.so.0
   #9  0xbbbd558e in atf_tp_main () from /usr/lib/libatf-c.so.0
   #10 0x0804913d in main ()
   Stack trace complete

Examining a core dump with gdb shows atf_config_get() being called
with an argument of "atf_arch".

>How-To-Repeat:

Inspect the output from the TNF test server, for example

  http://releng.netbsd.org/b5reports/i386/build/2014.02.08.19.45.51/test.html#failed-tcs-summary

and look for failed tests with a Reason of "Test program received
signal 6 (core dumped)".

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: bin-bug-people->jmmv
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sun, 09 Feb 2014 17:00:13 +0000
Responsible-Changed-Why:
Over to atf maintainer.


From: "Julio Merino" <jmmv@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48582 CVS commit: src/tests
Date: Sun, 9 Feb 2014 21:26:07 +0000

 Module Name:	src
 Committed By:	jmmv
 Date:		Sun Feb  9 21:26:07 UTC 2014

 Modified Files:
 	src/tests/include: t_paths.c
 	src/tests/lib/libc/gen: t_fpsetmask.c t_isnan.c t_siginfo.c
 	src/tests/lib/libm: t_ldexp.c t_log.c
 	src/tests/lib/libpthread: t_mutex.c

 Log Message:
 Use compiler builtins instead of atf_arch and atf_machine.

 The atf_arch and atf_machine configuration variables were removed from
 atf-0.19 without me realizing that some tests were querying them directly.

 Instead of reintroducing those variables, just rely on compiler builtins
 as many other tests already do.

 Should fix PR bin/48582.


 To generate a diff of this commit:
 cvs rdiff -u -r1.12 -r1.13 src/tests/include/t_paths.c
 cvs rdiff -u -r1.12 -r1.13 src/tests/lib/libc/gen/t_fpsetmask.c
 cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libc/gen/t_isnan.c
 cvs rdiff -u -r1.22 -r1.23 src/tests/lib/libc/gen/t_siginfo.c
 cvs rdiff -u -r1.10 -r1.11 src/tests/lib/libm/t_ldexp.c
 cvs rdiff -u -r1.8 -r1.9 src/tests/lib/libm/t_log.c
 cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libpthread/t_mutex.c

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

State-Changed-From-To: open->closed
State-Changed-By: jmmv@NetBSD.org
State-Changed-When: Sun, 09 Feb 2014 21:42:34 +0000
State-Changed-Why:
Should be fixed.


>Unformatted:

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.