NetBSD Problem Report #52736

From martin@duskware.de  Sat Nov 18 16:40:50 2017
Return-Path: <martin@duskware.de>
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 2B9E27A19A
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 18 Nov 2017 16:40:50 +0000 (UTC)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
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
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD thirdstage.duskware.de 8.99.7 NetBSD 8.99.7 (MODULAR) #30: Sat Nov 18 08:52:09 CET 2017 martin@thirdstage.duskware.de:/usr/src/sys/arch/sparc64/compile/MODULAR sparc64
Architecture: sparc64
Machine: sparc64
>Description:

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

>How-To-Repeat:

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

or:

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/libc.so.12
(gdb) bt
#0  0x00000000409677c4 in strlen () from /usr/lib/libc.so.12
#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, 
    ap=ap@entry=0xffffffffffffd5e8)
    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.

>Fix:
n/a

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.