NetBSD Problem Report #53457

From martin@duskware.de  Tue Jul 17 08:58:19 2018
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 306147A151
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 17 Jul 2018 08:58:19 +0000 (UTC)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: c++ -pg -m32 broken
X-Send-Pr-Version: 3.95

>Number:         53457
>Category:       toolchain
>Synopsis:       c++ -pg -m32 broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 17 09:00:00 +0000 2018
>Last-Modified:  Tue Jul 17 11:15:01 +0000 2018
>Originator:     Martin Husemann
>Release:        NetBSD 8.99.22
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD thirdstage.duskware.de 8.99.22 NetBSD 8.99.22 (MODULAR) #100: Mon Jul 16 10:08:57 CEST 2018 martin@thirdstage.duskware.de:/usr/src/sys/arch/sparc64/compile/MODULAR sparc64
Architecture: sparc64
Machine: sparc64
>Description:

Compiling any program with something like:

	c++ -m32 -pg -g -o hello test.cpp

creates a binary that crashes early in startup:
  0x000499c4 in dl_iterate_phdr ()
  0x00017d74 in __libc_static_tls_setup ()
  0x0004f11c in _libc_init ()

because auxinfo is not set and _dlauxinfo() returns a NULL pointer.

>How-To-Repeat:
s/a

>Fix:
n/a

>Audit-Trail:
From: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/53457: c++ -pg -m32 broken
Date: Tue, 17 Jul 2018 09:25:39 +0000

 It's probably the bfd change. I've mentioned it makes a lot of the
 binutils tests fail, but we don't care about creating unupstreamable
 patches.

From: Andreas Gustafsson <gson@gson.org>
To: martin@NetBSD.org, joerg@NetBSD.org
Cc: gnats-bugs@NetBSD.org
Subject: Re: toolchain/53457: c++ -pg -m32 broken
Date: Tue, 17 Jul 2018 14:14:25 +0300

 Martin wrote:
 >  0x000499c4 in dl_iterate_phdr ()
 >  0x00017d74 in __libc_static_tls_setup ()
 >  0x0004f11c in _libc_init ()

 This backtrace looks similar to that in
 http://mail-index.netbsd.org/current-users/2018/07/15/msg033936.html .

 "c++ -pg" is also broken on amd64, with or without -m32:

   http://releng.netbsd.org/b5reports/amd64/2018/2018.07.15.21.31.00/test.html#usr.bin_c++_t_hello_hello_profile

 The amd64 failures started with:

   2018.07.13.19.50.21 joerg src/lib/libc/tls/tls.c,v 1.9

 -- 
 Andreas Gustafsson, gson@gson.org

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.