NetBSD Problem Report #52987

From martin@duskware.de  Wed Feb  7 16:09:41 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 E084E7A166
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  7 Feb 2018 16:09:40 +0000 (UTC)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: ld.elf_so-sparc broken on sparc64
X-Send-Pr-Version: 3.95

>Number:         52987
>Category:       lib
>Synopsis:       ld.elf_so-sparc broken on sparc64
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    lib-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 07 16:10:00 +0000 2018
>Closed-Date:    Mon Feb 12 11:15:45 +0000 2018
>Last-Modified:  Mon Feb 12 11:15:45 +0000 2018
>Originator:     Martin Husemann
>Release:        NetBSD 8.99.12
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD thirdstage.duskware.de 8.99.12 NetBSD 8.99.12 (MODULAR) #59: Tue Jan 30 13:52:49 CET 2018 martin@thirdstage.duskware.de:/usr/src/sys/arch/sparc64/compile/MODULAR sparc64
Architecture: sparc64
Machine: sparc64
>Description:

Between Jan 30 and today "something" broke the 32bit compat ld.elf_so
on sparc64, although no relevant changes happened to src/libexec/ld.elf_so.

This breaks all atf tests running 32bit compat binaries.

Replacing /libexec/ld.elf_so-sparc with an older version fixes the fallout.

>How-To-Repeat:

Compile the typical hello.c with -m32 (but w/o -static) and try to run
the exectutable. It dies in _sysctl() when the caller meant to call
something else (and thus with completely bogus arguments).

>Fix:
n/a

>Release-Note:

>Audit-Trail:
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/52987 CVS commit: src/common/lib/libc/string
Date: Mon, 12 Feb 2018 11:14:15 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Mon Feb 12 11:14:15 UTC 2018

 Modified Files:
 	src/common/lib/libc/string: bcopy.c

 Log Message:
 Complete previous by complteley removing the _DIAGASSERT from memmove -
 the accidental left over from previous fired on all legitimate calls
 and caused PR bin/52986 and PR lib/52987.


 To generate a diff of this commit:
 cvs rdiff -u -r1.12 -r1.13 src/common/lib/libc/string/bcopy.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Mon, 12 Feb 2018 11:15:45 +0000
State-Changed-Why:
Fallout from bogus assert in memmove()


>Unformatted:

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.