NetBSD Problem Report #51633

From www@NetBSD.org  Thu Nov 17 17:13:53 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(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 3EE077A2AB
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 17 Nov 2016 17:13:53 +0000 (UTC)
Message-Id: <20161117171352.0EB9F7A2F9@mollari.NetBSD.org>
Date: Thu, 17 Nov 2016 17:13:52 +0000 (UTC)
From: n54@gmx.com
Reply-To: n54@gmx.com
To: gnats-bugs@NetBSD.org
Subject: tests/lib/libpthread_dbg/t_dummy unreliable
X-Send-Pr-Version: www-1.0

>Number:         51633
>Category:       lib
>Synopsis:       tests/lib/libpthread_dbg/t_dummy unreliable
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 17 17:15:00 +0000 2016
>Closed-Date:    Sat Nov 19 15:15:58 +0000 2016
>Last-Modified:  Sat Nov 19 15:15:58 +0000 2016
>Originator:     Kamil Rytarowski
>Release:        NetBSD 7.99.42 amd64
>Organization:
TNF
>Environment:
NetBSD chieftec 7.99.42 NetBSD 7.99.42 (GENERIC) #0: Thu Nov 17 17:11:44 CET 2016  root@chieftec:/tmp/netbsd-tmp/sys/arch/amd64/compile/GENERIC amd64
>Description:
In tests/lib/libpthread_dbg/t_dummy tests dummy2 and dummy3 are unreliable.

dummy2 works for me on amd64 always and dummy2 sometimes works sometimes not

On releng machines on i386 dummy2 and dummy3 fail always.
No results for sparc neither amd64 are available.


http://releng.netbsd.org/b5reports/i386/build/2016.11.17.06.58.40/test.html#lib_libpthread_dbg_t_dummy_dummy2

Test case: lib/libpthread_dbg/t_dummy/dummy2

Duration: 0.073877 seconds
Termination reason

FAILED: /tmp/bracket/build/2016.11.17.06.58.40-i386/src/tests/lib/libpthread_dbg/t_dummy.c:163: td_open(&dummy_callbacks, NULL, &main_ta) == TD_ERR_OK not met
Standard output stream

Calling td_open(3)

Test case: lib/libpthread_dbg/t_dummy/dummy3

Duration: 0.074868 seconds
Termination reason

FAILED: /tmp/bracket/build/2016.11.17.06.58.40-i386/src/tests/lib/libpthread_dbg/t_dummy.c:192: td_open(&dummy_callbacks, NULL, &main_ta1) == TD_ERR_OK not met
Standard output stream

Calling td_open(3) for the first time - expecting success
>How-To-Repeat:
chieftec$ atf-run t_dummy |atf-report  
Tests root: /usr/tests/lib/libpthread_dbg

t_dummy (1/1): 3 test cases
    dummy1: [0.002360s] Passed.
    dummy2: [0.001078s] Passed.
    dummy3: [0.001098s] Failed: /usr/src/tests/lib/libpthread_dbg/t_dummy.c:196: td_open(&dummy_callbacks, NULL, &main_ta2) == TD_ERR_INUSE not met
[0.004712s]

Failed test cases:
    t_dummy:dummy3

Summary for 1 test programs:
    2 passed test cases.
    1 failed test cases.
    0 expected failed test cases.
    0 skipped test cases.


chieftec$ atf-run t_dummy |atf-report  
Tests root: /usr/tests/lib/libpthread_dbg

t_dummy (1/1): 3 test cases
    dummy1: [0.002365s] Passed.
    dummy2: [0.001083s] Passed.
    dummy3: [0.001086s] Passed.
[0.004715s]

Summary for 1 test programs:
    3 passed test cases.
    0 failed test cases.
    0 expected failed test cases.
    0 skipped test cases.
chieftec$ atf-run t_dummy |atf-report  
Tests root: /usr/tests/lib/libpthread_dbg

t_dummy (1/1): 3 test cases
    dummy1: [0.002357s] Passed.
    dummy2: [0.001076s] Passed.
    dummy3: [0.001086s] Failed: /usr/src/tests/lib/libpthread_dbg/t_dummy.c:196: td_open(&dummy_callbacks, NULL, &main_ta2) == TD_ERR_INUSE not met
[0.004704s]

Failed test cases:
    t_dummy:dummy3

Summary for 1 test programs:
    2 passed test cases.
    1 failed test cases.
    0 expected failed test cases.
    0 skipped test cases.
>Fix:
N/A

>Release-Note:

>Audit-Trail:
From: "Kamil Rytarowski" <kamil@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/51633 CVS commit: src/tests/lib/libpthread_dbg
Date: Thu, 17 Nov 2016 17:30:22 +0000

 Module Name:	src
 Committed By:	kamil
 Date:		Thu Nov 17 17:30:22 UTC 2016

 Modified Files:
 	src/tests/lib/libpthread_dbg: t_dummy.c

 Log Message:
 Mark dummy2 and dummy3 in lib/libpthread_dbg/t_dummy with expected fail

 The dummy2 test reports failures on i386 releng machines.

 The same with dummy3, but it's also reproducible sometimes on my amd64
 setup. It's not always broken, neither always functional - once a while it
 reports failure. So far I have not reproduced failure in dummy2.

 PR lib/51633 tests/lib/libpthread_dbg/t_dummy unreliable

 Sponsored by <The NetBSD Foundation>


 To generate a diff of this commit:
 cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libpthread_dbg/t_dummy.c

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

From: "Kamil Rytarowski" <kamil@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/51633 CVS commit: src/tests/lib/libpthread_dbg
Date: Sat, 19 Nov 2016 02:30:54 +0000

 Module Name:	src
 Committed By:	kamil
 Date:		Sat Nov 19 02:30:54 UTC 2016

 Modified Files:
 	src/tests/lib/libpthread_dbg: h_common.h

 Log Message:
 Fix basic_proc_read in pthread_dbg functions

 Source and destination were swapped. The source of this confusion was that
 running these tests under gdb(1) will generate false positives as it will
 initialize pthread__dbg to PID of the debugger. This means that it is
 currently not possible to debug pthread_dbg code under a full-stack
 debugger using NetBSD debugging library for threads.

 This should address:
 PR lib/51633 tests/lib/libpthread_dbg/t_dummy unreliable
 PR lib/51635: td_thr_iter in <pthread_dbg.h> seems broken

 After applying the fix I'm able to run all pthread_dbg tests without
 indeterminism. The indeterminism was caused by overwritting source of data
 with trash.

 Sponsored by <The NetBSD Foundation>


 To generate a diff of this commit:
 cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libpthread_dbg/h_common.h

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

From: "Kamil Rytarowski" <kamil@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/51633 CVS commit: src/tests/lib/libpthread_dbg
Date: Sat, 19 Nov 2016 15:13:46 +0000

 Module Name:	src
 Committed By:	kamil
 Date:		Sat Nov 19 15:13:46 UTC 2016

 Modified Files:
 	src/tests/lib/libpthread_dbg: t_dummy.c t_threads.c

 Log Message:
 Remove atf_tx_expect_fail from lib/libpthread_dbg/ tests

 The following PR are now resolved and are reported to be properly fixed:
 PR lib/51635 td_thr_iter in <pthread_dbg.h> seems broken
 PR lib/51633 tests/lib/libpthread_dbg/t_dummy unreliable

 Sponsored by <The NetBSD Foundation>


 To generate a diff of this commit:
 cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libpthread_dbg/t_dummy.c
 cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libpthread_dbg/t_threads.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: kamil@NetBSD.org
State-Changed-When: Sat, 19 Nov 2016 16:15:58 +0100
State-Changed-Why:
Problem resolved.


>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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.