NetBSD Problem Report #52736

From  Sat Nov 18 16:40:50 2017
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 2B9E27A19A
	for <>; Sat, 18 Nov 2017 16:40:50 +0000 (UTC)
Subject: t_ifunc crahshes
X-Send-Pr-Version: 3.95

>Number:         52736
>Category:       toolchain
>Synopsis:       libexec/ld.elf_so/t_ifunc test program crashes on sparc64
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 18 16:45:00 +0000 2017
>Originator:     Martin Husemann
>Release:        NetBSD 8.99.7
The NetBSD Foundation, Inc.
System: NetBSD 8.99.7 NetBSD 8.99.7 (MODULAR) #30: Sat Nov 18 08:52:09 CET 2017 sparc64
Architecture: sparc64
Machine: sparc64

Starting with the test run on Nov 15, (that is most likely: after gcc
5.5 import) the ifunc test program started crashing.


cd /usr/test/libexec/ld.elf_so
atf-run t_ifunc


gdb ./t_ifunc

(gdb) run -l
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /usr/tests/libexec/ld.elf_so/t_ifunc -l

Program received signal SIGSEGV, Segmentation fault.
0x00000000409677c4 in strlen () from /usr/lib/
(gdb) bt
#0  0x00000000409677c4 in strlen () from /usr/lib/
#1  0x000000004070f7dc in atf_dynstr_init_ap (ad=ad@entry=0xffffffffffffd478, 
    fmt=fmt@entry=0x0, ap=ap@entry=0xffffffffffffd5e8)
    at /usr/src/external/bsd/atf/dist/atf-c/detail/dynstr.c:147
#2  0x000000004070b5b8 in atf_text_format_ap (
    dest=dest@entry=0xffffffffffffd540, fmt=fmt@entry=0x0, 
    at /usr/src/external/bsd/atf/dist/atf-c/detail/text.c:88
#3  0x0000000040709608 in atf_tc_set_md_var (tc=0x403059c0 <_rtld_exit>, 
    name=0x0, fmt=0x0) at /usr/src/external/bsd/atf/dist/atf-c/tc.c:778
#4  0x00000000001012a4 in ___start ()
#5  0x00000000403018cc in _rtld_start () from /usr/libexec/ld.elf_so

Note the "fmt" pointer is NULL.


NetBSD Home
NetBSD PR Database Search

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