NetBSD Problem Report #46788
From paul@whooppee.com Thu Aug 9 13:45:35 2012
Return-Path: <paul@whooppee.com>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id B36E863B85F
for <gnats-bugs@gnats.NetBSD.org>; Thu, 9 Aug 2012 13:45:34 +0000 (UTC)
Message-Id: <20120809134533.C26B124729B@screamer.whooppee.com>
Date: Thu, 9 Aug 2012 06:45:33 -0700 (PDT)
From: paul@whooppee.com
Reply-To: paul@whooppee.com
To: gnats-bugs@gnats.NetBSD.org
Subject: memtestplus does not boot stand-alone on amd64
X-Send-Pr-Version: 3.95
>Number: 46788
>Category: pkg
>Synopsis: memtestplus does not boot stand-alone on amd64
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Aug 09 13:50:00 +0000 2012
>Closed-Date: Sat May 10 13:15:22 +0000 2014
>Last-Modified: Sat May 10 13:15:22 +0000 2014
>Originator: Paul Goyette
>Release: NetBSD 6.99.5
>Organization:
-------------------------------------------------------------------------
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer | | pgoyette at netbsd.org |
-------------------------------------------------------------------------
>Environment:
System: NetBSD screamer.whooppee.com 6.99.5 NetBSD 6.99.5 (WHOOPPEE (shared) 2012-04-21 19:59:48) #33: Sat Apr 21 13:02:53 PDT 2012 paul@screamer.whooppee.com:/build/netbsd-local/obj/amd64/sys/arch/amd64/compile/WHOOPPEE amd64
Architecture: x86_64
Machine: amd64
>Description:
The memtestplus.bin file cannot be booted on amd64 system.
>How-To-Repeat:
# cp /usr/pkg/mdec/memtestplus.bin /memtestplus
Now, reboot, drop to the bootloader prompt, and
boot memtestplus
You get error: Inappropriate file type or format
>Fix:
>Release-Note:
>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/46788: memtestplus does not boot stand-alone on amd64
Date: Fri, 10 Aug 2012 00:17:50 +0900
On Thu, 09 Aug 2012 22:50:00 +0900, <paul@whooppee.com> wrote:
>> Description:
> The memtestplus.bin file cannot be booted on amd64 system.
>> How-To-Repeat:
> # cp /usr/pkg/mdec/memtestplus.bin /memtestplus
>
> Now, reboot, drop to the bootloader prompt, and
>
> boot memtestplus
>
> You get error: Inappropriate file type or format
From MESSAGE (pkg_info -D memtestplus), for such purpose,
mdec/memtestplus should be used instead of mdec/memtestplus.bin.
--
OBATA Akio / obache@NetBSD.org
From: Paul Goyette <paul@whooppee.com>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/46788: memtestplus does not boot stand-alone on amd64
Date: Thu, 9 Aug 2012 08:50:31 -0700 (PDT)
On Thu, 9 Aug 2012, OBATA Akio wrote:
> > Now, reboot, drop to the bootloader prompt, and
> >
> > boot memtestplus
> >
> > You get error: Inappropriate file type or format
>
> From MESSAGE (pkg_info -D memtestplus), for such purpose,
> mdec/memtestplus should be used instead of mdec/memtestplus.bin.
I tried that, too. Booting that image simply results in an immediate
reboot.
I have an older version of memtestplus installed, which still boots
successfully under -current. The older, working image is from about one
year ago, and the size of that working image is similar to the size of
the new memtestplus.bin file:
-r--r--r-- 1 root wheel 162084 Aug 12 2011 /memtestplus
-rw-r--r-- 1 root wheel 1210660 Aug 9 06:38 /memtestplus.new
-rw-r--r-- 1 root wheel 164504 Aug 9 06:38 /memtestplus.new.bin
Booting memtestplus (old image) works.
Booting memtestplus.new fails and resets the machine
Booting memtestplus.new.bin "Inappropriate file type or format"
-------------------------------------------------------------------------
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer | | pgoyette at netbsd.org |
-------------------------------------------------------------------------
From: Paul Goyette <paul@whooppee.com>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/46788: memtestplus does not boot stand-alone on amd64
Date: Fri, 10 Aug 2012 06:01:14 -0700 (PDT)
> I have an older version of memtestplus installed, which still boots
> successfully under -current. The older, working image is from about one year
> ago, and the size of that working image is similar to the size of the new
> memtestplus.bin file:
>
> -r--r--r-- 1 root wheel 162084 Aug 12 2011 /memtestplus
> -rw-r--r-- 1 root wheel 1210660 Aug 9 06:38 /memtestplus.new
> -rw-r--r-- 1 root wheel 164504 Aug 9 06:38 /memtestplus.new.bin
>
> Booting memtestplus (old image) works.
> Booting memtestplus.new fails and resets the machine
> Booting memtestplus.new.bin "Inappropriate file type or format"
Please also note the following:
# file /mem*
/memtestplus: ELF 32-bit LSB executable, Intel 80386, version 1
(SYSV), statically linked, stripped
/memtestplus.new: ELF 32-bit LSB executable, Intel 80386, version 1
(SYSV), statically linked, stripped
/memtestplus.new.bin: Linux x86 kernel
The old, working file "memtestplus" is about 160kb in size, and is
tagged as an ELF executable.
Howver, for the new files, the ".new.bin" file is about the same size
but is a Linux kernel. The ".new" file is the correct type, but is much
larger in size.
It almost looks like the package installation procedures got the two
files somehow "confused". :)
-------------------------------------------------------------------------
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: | | Customer
Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com | | Network
Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net | | Kernel
Developer | | pgoyette at netbsd.org |
-------------------------------------------------------------------------
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/46788: memtestplus does not boot stand-alone on amd64
Date: Fri, 10 Aug 2012 22:14:05 +0900
On Fri, 10 Aug 2012 22:01:14 +0900, Paul Goyette <paul@whooppee.com> wrote:
>> I have an older version of memtestplus installed, which still boots
>> successfully under -current. The older, working image is from about one year
>> ago, and the size of that working image is similar to the size of the new
>> memtestplus.bin file:
>>
>> -r--r--r-- 1 root wheel 162084 Aug 12 2011 /memtestplus
>> -rw-r--r-- 1 root wheel 1210660 Aug 9 06:38 /memtestplus.new
>> -rw-r--r-- 1 root wheel 164504 Aug 9 06:38 /memtestplus.new.bin
>>
>> Booting memtestplus (old image) works.
>> Booting memtestplus.new fails and resets the machine
>> Booting memtestplus.new.bin "Inappropriate file type or format"
>
>
> Please also note the following:
>
> # file /mem*
> /memtestplus: ELF 32-bit LSB executable, Intel 80386, version 1
> (SYSV), statically linked, stripped
> /memtestplus.new: ELF 32-bit LSB executable, Intel 80386, version 1
> (SYSV), statically linked, stripped
> /memtestplus.new.bin: Linux x86 kernel
>
> The old, working file "memtestplus" is about 160kb in size, and is
> tagged as an ELF executable.
>
> Howver, for the new files, the ".new.bin" file is about the same size
> but is a Linux kernel. The ".new" file is the correct type, but is much
> larger in size.
>
> It almost looks like the package installation procedures got the two
> files somehow "confused". :)
On my NetBSD-5.1(amd64)
166180 memtestplus
164504 memtestplus.bin
So two binaries should be almost same size.
I don't know why but I feel that just your `memtestplus.new' is too big (and broken?)
--
OBATA Akio / obache@NetBSD.org
From: Paul Goyette <paul@whooppee.com>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/46788: memtestplus does not boot stand-alone on amd64
Date: Fri, 10 Aug 2012 06:19:40 -0700 (PDT)
On Fri, 10 Aug 2012, OBATA Akio wrote:
> On my NetBSD-5.1(amd64)
> 166180 memtestplus
> 164504 memtestplus.bin
> So two binaries should be almost same size.
>
> I don't know why but I feel that just your `memtestplus.new' is too
> big (and broken?)
I don't know why, either. But this is a clean, default remake of the
package, from scratch.
I would be happy to provide the entire log from 'make install' if it
would help.
-------------------------------------------------------------------------
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer | | pgoyette at netbsd.org |
-------------------------------------------------------------------------
From: Paul Goyette <paul@whooppee.com>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/46788: memtestplus does not boot stand-alone on amd64
Date: Fri, 10 Aug 2012 07:15:53 -0700 (PDT)
On Fri, 10 Aug 2012, Paul Goyette wrote:
> On Fri, 10 Aug 2012, OBATA Akio wrote:
>
>> On my NetBSD-5.1(amd64)
>> 166180 memtestplus
>> 164504 memtestplus.bin
>> So two binaries should be almost same size.
>>
>> I don't know why but I feel that just your `memtestplus.new' is too big
>> (and broken?)
>
> I don't know why, either. But this is a clean, default remake of the
> package, from scratch.
>
> I would be happy to provide the entire log from 'make install' if it would
> help.
One more point of information:
The old 'memtestplus' image is the same version as the newer broken
images. Both are
# strings /memtestplus | grep 'test86 '
Memtest86 v4.20
so whatever the problem is, it would seem to be a change in the pkgsrc
build environment, and not in memtest itself.
-------------------------------------------------------------------------
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer | | pgoyette at netbsd.org |
-------------------------------------------------------------------------
From: Paul Goyette <paul@whooppee.com>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/46788: memtestplus does not boot stand-alone on amd64
Date: Fri, 10 Aug 2012 16:59:21 -0700 (PDT)
On Fri, 10 Aug 2012, Paul Goyette wrote:
> On Fri, 10 Aug 2012, Paul Goyette wrote:
>
>> On Fri, 10 Aug 2012, OBATA Akio wrote:
>>
>>> On my NetBSD-5.1(amd64)
>>> 166180 memtestplus
>>> 164504 memtestplus.bin
>>> So two binaries should be almost same size.
>>>
>>> I don't know why but I feel that just your `memtestplus.new' is too big
>>> (and broken?)
>>
>> I don't know why, either. But this is a clean, default remake of the
>> package, from scratch.
>>
>> I would be happy to provide the entire log from 'make install' if it would
>> help.
>
> One more point of information:
>
> The old 'memtestplus' image is the same version as the newer broken images.
> Both are
>
> # strings /memtestplus | grep 'test86 '
> Memtest86 v4.20
>
> so whatever the problem is, it would seem to be a change in the pkgsrc build
> environment, and not in memtest itself.
And yet one more potentially useful datum.
Looking at the binary pre-built packages on ftp.netbsd.org, I find the
same "size problem" with the amd64 package. Yet the i386 package of the
same vintage appears correct, with both files very close in size.
So is it maybe a problem on amd64, trying to build a 32-bit package?
-------------------------------------------------------------------------
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer | | pgoyette at netbsd.org |
-------------------------------------------------------------------------
State-Changed-From-To: open->closed
State-Changed-By: pgoyette@NetBSD.org
State-Changed-When: Sat, 10 May 2014 13:15:22 +0000
State-Changed-Why:
With update to memtestplus from pkgsrc-2014Q1 this problem no longer
exists.
>Unformatted:
(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.