NetBSD Problem Report #52617

From gson@gson.org  Fri Oct 13 20:25:47 2017
Return-Path: <gson@gson.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 "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id BE60A7A167
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 13 Oct 2017 20:25:47 +0000 (UTC)
Message-Id: <20171013191014.250B1989E6C@guava.gson.org>
Date: Fri, 13 Oct 2017 22:10:14 +0300 (EEST)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: rtld tests failing on arm since August
X-Send-Pr-Version: 3.95

>Number:         52617
>Category:       lib
>Synopsis:       rtld tests failing on arm since August
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    joerg
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 13 20:30:00 +0000 2017
>Closed-Date:    Mon Apr 01 10:00:54 +0000 2024
>Last-Modified:  Mon Apr 01 10:00:54 +0000 2024
>Originator:     Andreas Gustafsson
>Release:        NetBSD-current, source date >= 2017.08.10.19.42.53
>Organization:

>Environment:
System: NetBSD
Architecture: earmv7hf
Machine: evbarm
>Description:

The rtld_ifunc test case of the libexec/ld.elf_so/t_ifunc test program
has been failing on evbarm-earmv7hf since August.  For a fairly recent
log showing a failure, see

  http://releng.netbsd.org/b5reports/evbarm-earmv7hf/build/2017.10.05.23.47.11/test.log

which contains the line:

  rtld_ifunc: [5.731747s] Failed: Test program received signal 11 (core dumped)

No raw ATF output or HTML reports are available from
b5, but martin's tests have the HTML reports, for example:

  http://www.netbsd.org/~martin/evbarm-atf/180_atf.html#libexec_ld.elf_so_t_ifunc_rtld_ifunc

A bisection shows the problem appeared during a period when the tree
did not even build,  so it can't easily be pinned down to a single
commit.  The last successful run was with source date 2017.08.10.13.13.03,
and the first unsuccessful run was with source date 2017.08.10.19.42.53
Here is the full list of changes committed during this time period:

  commit 2017.08.10.13.34.29 nat src/usr.sbin/btattach/Makefile 1.3
  commit 2017.08.10.13.34.29 nat src/usr.sbin/btattach/btattach.c 1.14
  commit 2017.08.10.13.34.29 nat src/usr.sbin/btattach/btattach.h 1.4
  commit 2017.08.10.13.34.29 nat src/usr.sbin/btattach/init_bcm43xx.c 1.1
  commit 2017.08.10.13.39.08 maxv src/distrib/sets/lists/comp/md.amd64 1.250
  commit 2017.08.10.13.40.04 nat src/distrib/sets/lists/comp/mi 1.2143
  commit 2017.08.10.13.48.19 nat src/sys/arch/evbarm/conf/RPI 1.75
  commit 2017.08.10.14.13.45 maxv src/sys/arch/i386/i386/locore.S 1.150
  commit 2017.08.10.15.15.48 nat src/external/broadcom/Makefile 1.1
  commit 2017.08.10.15.15.48 nat src/external/broadcom/Makefile.inc 1.1
  commit 2017.08.10.15.15.48 nat src/external/broadcom/bcm43xx/BCM43430A1.hcd 1.1
  commit 2017.08.10.15.15.48 nat src/external/broadcom/bcm43xx/LICENCE.broadcom_bcm43xx 1.1
  commit 2017.08.10.15.15.48 nat src/external/broadcom/bcm43xx/Makefile 1.1
  commit 2017.08.10.15.31.49 nat src/distrib/sets/lists/base/mi 1.1160
  commit 2017.08.10.15.31.49 nat src/external/Makefile 1.19
  commit 2017.08.10.17.33.32 maxv src/sys/arch/amd64/conf/XEN3_DOM0 1.138
  commit 2017.08.10.17.33.32 maxv src/sys/arch/amd64/conf/XEN3_DOMU 1.77
  commit 2017.08.10.17.33.32 maxv src/sys/arch/i386/conf/GENERIC_TINY 1.154
  commit 2017.08.10.17.33.32 maxv src/sys/arch/i386/conf/NET4501 1.97
  commit 2017.08.10.17.33.32 maxv src/sys/arch/i386/conf/XEN3_DOM0 1.120
  commit 2017.08.10.17.33.32 maxv src/sys/arch/i386/conf/XEN3_DOMU 1.84
  commit 2017.08.10.18.11.47 jakllsch src/sys/arch/evbarm/conf/GENERIC.common 1.20
  commit 2017.08.10.18.45.20 jakllsch src/usr.sbin/btattach/init_bcm43xx.c 1.2
  commit 2017.08.10.19.03.25 joerg src/libexec/ld.elf_so/arch/aarch64/mdreloc.c 1.4
  commit 2017.08.10.19.03.25 joerg src/libexec/ld.elf_so/reloc.c 1.111
  commit 2017.08.10.19.03.25 joerg src/libexec/ld.elf_so/rtld.c 1.186
  commit 2017.08.10.19.03.25 joerg src/libexec/ld.elf_so/rtld.h 1.130
  commit 2017.08.10.19.03.26 joerg src/libexec/ld.elf_so/arch/alpha/alpha_reloc.c 1.43
  commit 2017.08.10.19.03.26 joerg src/libexec/ld.elf_so/arch/arm/mdreloc.c 1.42
  commit 2017.08.10.19.03.26 joerg src/libexec/ld.elf_so/arch/hppa/hppa_reloc.c 1.45
  commit 2017.08.10.19.03.26 joerg src/libexec/ld.elf_so/arch/i386/mdreloc.c 1.39
  commit 2017.08.10.19.03.26 joerg src/libexec/ld.elf_so/arch/m68k/mdreloc.c 1.33
  commit 2017.08.10.19.03.26 joerg src/libexec/ld.elf_so/arch/mips/mips_reloc.c 1.69
  commit 2017.08.10.19.03.26 joerg src/libexec/ld.elf_so/arch/or1k/mdreloc.c 1.3
  commit 2017.08.10.19.03.26 joerg src/libexec/ld.elf_so/arch/powerpc/ppc_reloc.c 1.55
  commit 2017.08.10.19.03.26 joerg src/libexec/ld.elf_so/arch/riscv/mdreloc.c 1.4
  commit 2017.08.10.19.03.26 joerg src/libexec/ld.elf_so/arch/sh3/mdreloc.c 1.35
  commit 2017.08.10.19.03.26 joerg src/libexec/ld.elf_so/arch/sparc/mdreloc.c 1.51
  commit 2017.08.10.19.03.26 joerg src/libexec/ld.elf_so/arch/sparc64/mdreloc.c 1.64
  commit 2017.08.10.19.03.27 joerg src/libexec/ld.elf_so/arch/vax/mdreloc.c 1.34
  commit 2017.08.10.19.03.27 joerg src/libexec/ld.elf_so/arch/x86_64/mdreloc.c 1.45
  commit 2017.08.10.19.03.27 joerg src/sys/arch/arm/include/elf_machdep.h 1.18
  commit 2017.08.10.19.03.27 joerg src/sys/arch/powerpc/include/elf_machdep.h 1.13
  commit 2017.08.10.19.03.27 joerg src/sys/sys/cdefs_elf.h 1.53
  commit 2017.08.10.19.03.27 joerg src/tests/libexec/ld.elf_so/helper_ifunc_dso/h_helper_ifunc.c 1.5
  commit 2017.08.10.19.03.27 joerg src/tests/libexec/ld.elf_so/t_ifunc.c 1.3
  commit 2017.08.10.19.08.43 perseant src/tests/lib/libc/locale/t_btowc.c 1.3
  commit 2017.08.10.19.42.53 jakllsch src/etc/mtree/NetBSD.dist.base 1.162
  commit 2017.08.10.19.42.53 jakllsch src/external/broadcom/bcm43xx/Makefile 1.2

The rtld_hidden_ifunc test case is also failing, but since it was
enabled for arm in one of the above commits, I'm not sure if that one
counts as a new failure.

>How-To-Repeat:

Run the ATF tests on ARM.

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: lib-bug-people->joerg
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Fri, 13 Oct 2017 21:01:42 +0000
Responsible-Changed-Why:
Over to committer


State-Changed-From-To: open->closed
State-Changed-By: gson@NetBSD.org
State-Changed-When: Tue, 27 Feb 2018 08:43:58 +0000
State-Changed-Why:
Test is now skipped on arm since src/tests/libexec/ld.elf_so/t_ifunc.c 1.6.


State-Changed-From-To: closed->open
State-Changed-By: gson@NetBSD.org
State-Changed-When: Tue, 27 Feb 2018 08:54:18 +0000
State-Changed-Why:
Although the test is no longer reporting a failure, there's still a
problem:
t_ifunc: Unsupported relocation type 160 in non-PLT relocations
libexec/ld.elf_so/t_ifunc (407/722): 0 test cases
libexec/ld.elf_so/t_ifunc: BOGUS TEST PROGRAM: Cannot trust its results because of `Invalid format for test case list: 1: Unexpected token `<<EOF>>'; expected a header name'


From: Andreas Gustafsson <gson@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: joerg@NetBSD.org
Subject: Re: lib/52617 (rtld tests failing on arm since August)
Date: Mon, 1 Apr 2024 12:57:26 +0300

 In 2018, I wrote:
 > Although the test is no longer reporting a failure, there's still a
 > problem:
 > t_ifunc: Unsupported relocation type 160 in non-PLT relocations
 > libexec/ld.elf_so/t_ifunc (407/722): 0 test cases
 > libexec/ld.elf_so/t_ifunc: BOGUS TEST PROGRAM: Cannot trust its results because of `Invalid format for test case list: 1: Unexpected token `<<EOF>>'; expected a header name'

 These errors are no longer occurring since this commit:

   2018.04.03.21.10.27 joerg src/libexec/ld.elf_so/arch/arm/Makefile.inc 1.21
   2018.04.03.21.10.27 joerg src/libexec/ld.elf_so/arch/arm/mdreloc.c 1.44
   2018.04.03.21.10.27 joerg src/libexec/ld.elf_so/arch/i386/Makefile.inc 1.15
   2018.04.03.21.10.27 joerg src/libexec/ld.elf_so/arch/i386/mdreloc.c 1.41
   2018.04.03.21.10.27 joerg src/libexec/ld.elf_so/arch/powerpc/Makefile.inc 1.16
   2018.04.03.21.10.27 joerg src/libexec/ld.elf_so/arch/powerpc/ppc_reloc.c 1.57
   2018.04.03.21.10.27 joerg src/libexec/ld.elf_so/arch/sparc/Makefile.inc 1.15
   2018.04.03.21.10.27 joerg src/libexec/ld.elf_so/arch/sparc/mdreloc.c 1.55
   2018.04.03.21.10.27 joerg src/libexec/ld.elf_so/arch/sparc64/Makefile.inc 1.9
   2018.04.03.21.10.27 joerg src/libexec/ld.elf_so/arch/sparc64/mdreloc.c 1.69
   2018.04.03.21.10.27 joerg src/libexec/ld.elf_so/arch/x86_64/Makefile.inc 1.8
   2018.04.03.21.10.27 joerg src/libexec/ld.elf_so/arch/x86_64/mdreloc.c 1.47
   2018.04.03.21.10.27 joerg src/libexec/ld.elf_so/reloc.c 1.112
   2018.04.03.21.10.27 joerg src/libexec/ld.elf_so/rtld.c 1.192
   2018.04.03.21.10.27 joerg src/libexec/ld.elf_so/rtld.h 1.133

 -- 
 Andreas Gustafsson, gson@NetBSD.org

State-Changed-From-To: open->closed
State-Changed-By: gson@NetBSD.org
State-Changed-When: Mon, 01 Apr 2024 10:00:54 +0000
State-Changed-Why:
"Unsupported relocation type 160 in non-PLT relocations" error no longer occurs.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.