NetBSD Problem Report #55352

From  Sat Jun  6 11:17:04 2020
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id A466F1A921E
	for <>; Sat,  6 Jun 2020 11:17:04 +0000 (UTC)
Message-Id: <>
Date: Sat,  6 Jun 2020 14:16:59 +0300 (EEST)
From: (Andreas Gustafsson)
Reply-To: (Andreas Gustafsson)
Subject: access_regs_set_unaligned_pc_0x7 test cases sometimes fail
X-Send-Pr-Version: 3.95

>Number:         55352
>Category:       kern
>Synopsis:       access_regs_set_unaligned_pc_0x7 test cases sometimes fail
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kamil
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 06 11:20:00 +0000 2020
>Last-Modified:  Sat Jun 06 11:22:20 +0000 2020
>Originator:     Andreas Gustafsson
>Release:        NetBSD-current
System: NetBSD
Architecture: x86_64
Machine: amd64

The access_regs_set_unaligned_pc_0x7 test case in multiple
lib/libc/sys/t_ptrace_wait* tests is now randomly failing on my amd64
bare metal testbed which runs the tests on a physical HP DL360 G7
system.  Each test case fails in maybe 3/4 of the runs, but there's
six of them, so at least one of them is almost certain to fail in
each run.

Here is a tabular representation of the outcomes of the last 30 test
runs, with passing test cases marked by "-" and failing ones by "X":

  -------------------------XX-X-X-X-X--XXX   lib/libc/sys/t_ptrace_wait3:access_regs_set_unaligned_pc_0x7
  -------------------------X--XXXXX-X-XXXX   lib/libc/sys/t_ptrace_wait4:access_regs_set_unaligned_pc_0x7
  -------------------------X-XX--XXX-X-X-X   lib/libc/sys/t_ptrace_wait6:access_regs_set_unaligned_pc_0x7
  --------------------------XXX-X--XXX-XX-   lib/libc/sys/t_ptrace_wait:access_regs_set_unaligned_pc_0x7
  -------------------------XX-XXXXXX-XXXX-   lib/libc/sys/t_ptrace_waitid:access_regs_set_unaligned_pc_0x7
  -------------------------XXX--XXXXXX---X   lib/libc/sys/t_ptrace_waitpid:access_regs_set_unaligned_pc_0x7

Although the failures are easily reproduced on the system in case,
I'm having a hard time reproducing it on other systems.  None of the
following are failing:

 - Tetsts run in qemu
 - Tests run on a Dell R630 rather than a HP DL360
 - Tests run on the same hardware under NetBSD/i386 rather than NetBSD/amd64
 - The access_regs_set_unaligned_pc_0xN test case for any N other than 7

The first failures appeared after this commit:

  2020. ad src/sys/dev/acpi/acpi_cpu_cstate.c 1.61



With difficulty.




Responsible-Changed-From-To: kern-bug-people->kamil
Responsible-Changed-When: Sat, 06 Jun 2020 13:22:20 +0200


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.