NetBSD Problem Report #46761
From simonb@thistledown.com.au Tue Jul 31 11:13:08 2012
Return-Path: <simonb@thistledown.com.au>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id 2684863B85F
for <gnats-bugs@gnats.NetBSD.org>; Tue, 31 Jul 2012 11:13:08 +0000 (UTC)
Message-Id: <20120731111304.99DCA5989D@thoreau.thistledown.com.au>
Date: Tue, 31 Jul 2012 21:13:04 +1000 (EST)
From: Simon Burge <simonb@NetBSD.org>
Reply-To: Simon Burge <simonb@NetBSD.org>
To: gnats-bugs@gnats.NetBSD.org
Subject: "bad tag" message running old binary
X-Send-Pr-Version: 3.95
>Number: 46761
>Category: kern
>Synopsis: "bad tag" message on console when running old binary
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 31 11:15:00 +0000 2012
>Last-Modified: Wed Aug 01 17:50:02 +0000 2012
>Originator: Simon Burge
>Release: NetBSD 6.0_BETA2 (sources from July 16)
>Environment:
System: NetBSD silmech.thistledown.com.au 6.0_BETA2 NetBSD 6.0_BETA2 (GENERIC) #0: Mon Jul 16 23:29:03 EST 2012 simonb@silmech.thistledown.com.au:/home/simonb/netbsd/build6/amd64/obj/home/simonb/netbsd/src6/sys/arch/amd64/compile/GENERIC amd64
Architecture: amd64
Machine: amd64
>Description:
When trying to run an old i386 ELF binary on an amd64 machine
this message appears on the console:
/usr/local/bin/bd: bad tag 1: [8 4, 0 4, 01.0 PaX]
Here is some details on the binary:
silmech 11> ls -l /usr/local/bin/bd
-r-xr-xr-x 1 root wheel 4712 Jul 4 2002 /usr/local/bin/bd*
silmech 12> file /usr/local/bin/bd
/usr/local/bin/bd: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for NetBSD, stripped
silmech 13> readelf -h /usr/local/bin/bd
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: Intel 80386
Version: 0x1
Entry point address: 0x8048714
Start of program headers: 52 (bytes into file)
Start of section headers: 3672 (bytes into file)
Flags: 0x0
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 6
Size of section headers: 40 (bytes)
Number of section headers: 26
Section header string table index: 25
silmech 14> ldd /usr/local/bin/bd
/usr/local/bin/bd:
-lc.12 => /usr/lib/i386/libc.so.12
The same warning appears for other binaries of a similar
vintage. Another binary built in 2007 doesn't cause the
message to appear on the console.
>How-To-Repeat:
Run an old(ish) i386 ELF binary. Binary available if required.
>Fix:
None given.
>Audit-Trail:
From: Robert Elz <kre@munnari.OZ.AU>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/46761: "bad tag" message running old binary
Date: Thu, 02 Aug 2012 00:25:44 +0700
I have seen that too, running similar vintage (last compiled Oct 2000 or so)
i386 binaries, running under an i386 6.0_BETA type kernel. On current, on
an amd64 kernel, I get ...
Aug 2 00:26:37 minerva /netbsd: ./fdate: Unknown elf note type 1: [namesz=8, descsz=0 name= 01.01]
kre
(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-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.