NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/46761: "bad tag" message running old binary



>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
>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@localhost:/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.



Home | Main Index | Thread Index | Old Index