NetBSD Problem Report #53355
From martin@aprisoft.de Sun Jun 10 10:37:39 2018
Return-Path: <martin@aprisoft.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 CA5547A20C
for <gnats-bugs@gnats.NetBSD.org>; Sun, 10 Jun 2018 10:37:39 +0000 (UTC)
Message-Id: <20180610103728.949ED5CC8BC@emmas.aprisoft.de>
Date: Sun, 10 Jun 2018 12:37:28 +0200 (CEST)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: MKREPRO fallout with MKDEBUG
X-Send-Pr-Version: 3.95
>Number: 53355
>Category: toolchain
>Synopsis: MKREPRO fallout with MKDEBUG
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: toolchain-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jun 10 10:40:00 +0000 2018
>Closed-Date: Fri Jun 22 08:51:14 +0000 2018
>Last-Modified: Fri Jun 22 08:51:14 +0000 2018
>Originator: Martin Husemann
>Release: NetBSD 8.99.19
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD seven-days-to-the-wolves.aprisoft.de 8.99.19 NetBSD 8.99.19 (GENERIC) #228: Mon Jun 4 09:01:34 CEST 2018 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
Trying to reproduce a releng auto cluster build of netbsd-8
locally fails to create the same results. There are binary
difference in the debug sections. Two random examples:
--- local/usr/lib/libexpat.so.2.3
+++ releng/usr/lib/libexpat.so.2.3
readelf --wide --decompress --hex-dump=.gnu_debuglink {}
@@ -1,5 +1,5 @@
Hex dump of section '.gnu_debuglink':
0x00000000 6c696265 78706174 2e736f2e 322e332e libexpat.so.2.3.
- 0x00000010 64656275 67000000 17bc9869 debug......i
+ 0x00000010 64656275 67000000 66cddb6a debug...f..j
--- local/bin/pwd
+++ releng/bin/pwd
readelf --wide --decompress --hex-dump=.gnu_debuglink {}
@@ -1,4 +1,4 @@
Hex dump of section '.gnu_debuglink':
- 0x00000000 7077642e 64656275 67000000 dee95ad5 pwd.debug.....Z.
+ 0x00000000 7077642e 64656275 67000000 bb5469dd pwd.debug....Ti.
All differences I looked at are exactly like this, and always only a single
line of differences early at the start of the hexdump.
>How-To-Repeat:
s/a
>Fix:
n/a
>Release-Note:
>Audit-Trail:
From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, toolchain-manager@netbsd.org,
gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc:
Subject: Re: toolchain/53355: MKREPRO fallout with MKDEBUG
Date: Sun, 10 Jun 2018 08:59:19 -0400
On Jun 10, 10:40am, martin@NetBSD.org (martin@NetBSD.org) wrote:
-- Subject: toolchain/53355: MKREPRO fallout with MKDEBUG
| Trying to reproduce a releng auto cluster build of netbsd-8
| locally fails to create the same results. There are binary
| difference in the debug sections. Two random examples:
|
| --- local/usr/lib/libexpat.so.2.3
| +++ releng/usr/lib/libexpat.so.2.3
| readelf --wide --decompress --hex-dump=.gnu_debuglink {}
| @@ -1,5 +1,5 @@
|
| Hex dump of section '.gnu_debuglink':
| 0x00000000 6c696265 78706174 2e736f2e 322e332e libexpat.so.2.3.
| - 0x00000010 64656275 67000000 17bc9869 debug......i
| + 0x00000010 64656275 67000000 66cddb6a debug...f..j
| --- local/bin/pwd
| +++ releng/bin/pwd
| readelf --wide --decompress --hex-dump=.gnu_debuglink {}
| @@ -1,4 +1,4 @@
|
| Hex dump of section '.gnu_debuglink':
| - 0x00000000 7077642e 64656275 67000000 dee95ad5 pwd.debug.....Z.
| + 0x00000000 7077642e 64656275 67000000 bb5469dd pwd.debug....Ti.
|
|
| All differences I looked at are exactly like this, and always only a single
| line of differences early at the start of the hexdump.
I believe this is the checksum. So this means that the debug files
must be different. Have you compared the debug sets?
christos
From: Martin Husemann <martin@duskware.de>
To: Christos Zoulas <christos@zoulas.com>
Cc: gnats-bugs@NetBSD.org
Subject: Re: toolchain/53355: MKREPRO fallout with MKDEBUG
Date: Sun, 10 Jun 2018 16:02:53 +0200
There are differences, exammple:
readelf --wide --debug-dump=info {}
@@ -2,247 +2,247 @@
Compilation Unit @ offset 0x0:
Length: 0x100b (32-bit)
Version: 4
Abbrev Offset: 0x0
Pointer Size: 8
<0>: Abbrev Number: 1 (DW_TAG_compile_unit)
- <c> DW_AT_producer : (indirect string, offset: 0x222): GNU C99 5.5.0 -fno-canonical-system-headers -mtune=nocona -march=x86-64 -g -O2 -std=gnu99 -fPIE -fdebug-prefix-map=$DESTDIR= -fdebug-prefix-map=$NETBSDSRCDIR=/usr/src -fdebug-prefix-map=$X11SRCDIR=/usr/xsrc -fdebug-regex-map=/usr/src/(.*)/obj$=/usr/obj/\1 -fdebug-regex-map=/usr/src/(.*)/obj/(.*)=/usr/obj/\1/\2 -fdebug-regex-map=/usr/src/(.*)/obj\..*=/usr/obj/\1 -fdebug-regex-map=/usr/src/(.*)/obj\..*/(.*)=/usr/obj/\1/\2
+ <c> DW_AT_producer : (indirect string, offset: 0x202): GNU C99 5.5.0 -fno-canonical-system-headers -mtune=nocona -march=x86-64 -g -O2 -std=gnu99 -fPIE -fdebug-prefix-map=$DESTDIR= -fdebug-prefix-map=$NETBSDSRCDIR=/usr/src -fdebug-prefix-map=$X11SRCDIR=/usr/xsrc -fdebug-regex-map=/usr/src/(.*)/obj$=/usr/obj/\1 -fdebug-regex-map=/usr/src/(.*)/obj/(.*)=/usr/obj/\1/\2 -fdebug-regex-map=/usr/src/(.*)/obj\..*=/usr/obj/\1 -fdebug-regex-map=/usr/src/(.*)/obj\..*/(.*)=/usr/obj/\1/\2
<10> DW_AT_language : 12 (ANSI C99)
- <11> DW_AT_name : (indirect string, offset: 0x1c7): /usr/src/bin/cat/cat.c
- <15> DW_AT_comp_dir : (indirect string, offset: 0x11f): /work/obj-8r/work/src-8/bin/cat
+ <11> DW_AT_name : (indirect string, offset: 0x1a7): /usr/src/bin/cat/cat.c
+ <15> DW_AT_comp_dir : (indirect string, offset: 0x57b): /home/builds/ab/netbsd-8/amd64/201806080020Z-obj/home/source/ab/netbsd-8/src/bin/cat
<19> DW_AT_ranges : 0x1d0
<1d> DW_AT_low_pc : 0x0
<25> DW_AT_stmt_list : 0x0
Note that this is on netbsd-8, did this work in -current before?
Martin
State-Changed-From-To: open->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Fri, 22 Jun 2018 08:51:14 +0000
State-Changed-Why:
Christos fixed it
>Unformatted:
(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.