NetBSD Problem Report #48738
From www@NetBSD.org Sat Apr 12 10:13:11 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id C4063A5806
for <gnats-bugs@gnats.NetBSD.org>; Sat, 12 Apr 2014 10:13:10 +0000 (UTC)
Message-Id: <20140412101309.8D0C0A5816@mollari.NetBSD.org>
Date: Sat, 12 Apr 2014 10:13:09 +0000 (UTC)
From: joachim.thiemnn@gmail.com
Reply-To: joachim.thiemnn@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Upgrade of -current kernel on Raspberry Pi brakes running executables from previous version requiring reinstall
X-Send-Pr-Version: www-1.0
>Number: 48738
>Category: port-evbarm
>Synopsis: Upgrade of -current kernel on Raspberry Pi brakes running executables from previous version requiring reinstall
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: port-evbarm-maintainer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Apr 12 10:15:00 +0000 2014
>Closed-Date: Mon Oct 13 23:30:29 +0000 2014
>Last-Modified: Mon Oct 13 23:30:29 +0000 2014
>Originator: Joachim Thiemann
>Release: 6.99.40
>Organization:
Carl-von-Ossietzky University Oldenburg
>Environment:
NetBSD rpi 6.99.40 NetBSD 6.99.40 (RPI) #3: Thu Apr 10 14:59:51 CEST 2014 srcr@virt:/usr/obj/sys/arch/evbarm/compile/RPI evbarm
>Description:
Booting with a new kernel (6.99.38 or so; exact version unknown) resulted in a nonbooting system, even rescue binaries didn't work (init fails), using an userland around 6.99.28.
See thread "Current build of netbsd for rpi is unable to boot" on port-arm.
>How-To-Repeat:
Install a RPI system from March 2014, replace the kernel with one from at least Apr. 7th. Boot.
>Fix:
Either upgrade all of userland, or use kernel option COMPAT_NETBSD32. The latter can still cause problems though, with dynamic libraries (I think).
>Release-Note:
>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-evbarm/48738: Upgrade of -current kernel on Raspberry Pi brakes running executables from previous version requiring reinstall
Date: Sat, 12 Apr 2014 18:40:33 +0200
On Sat, Apr 12, 2014 at 10:15:00AM +0000, joachim.thiemnn@gmail.com wrote:
> Either upgrade all of userland, or use kernel option COMPAT_NETBSD32.
> The latter can still cause problems though, with dynamic libraries (I
> think).
Did you try COMPAT_NETBSD32?
This should only help if you changed from an old "arm" install to "earm"
now - which might need a bit more planning and library copying (and would
make it no bug).
If you have an old binary around still, you can check the ABI by running
file on it. On my eabrm machine for example file /bin/sh says:
/bin/sh: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for NetBSD 6.99.40, compiled for: earmv4, not stripped
Another possible issue are broken binaries with corrupt ELF notes (I've seen
that on test machines I updated early to gcc 4.8 - not sure if this ever
happend in the official builds). Symptom here would be a corrupt binary
that old kernels erroneously accepted, but newer kernels reject. You
can verify this by running readelf -n on the binary. Again /bin/sh as
an example:
Notes at offset 0x00000128 with length 0x00000018:
Owner Data size Description
NetBSD 0x00000004 IDENT 699004000 (6.99.40)
Notes at offset 0x00000140 with length 0x00000014:
Owner Data size Description
PaX 0x00000004 Unknown note type: (0x00000003)
Notes at offset 0x00000154 with length 0x0000001c:
Owner Data size Description
NetBSD 0x00000007 MARCH <earmv4>
(the last one will be different on RPi).
The corrupt binaries cause readelf to complain in this output.
Martin
State-Changed-From-To: open->feedback
State-Changed-By: skrll@NetBSD.org
State-Changed-When: Tue, 02 Sep 2014 11:44:26 +0000
State-Changed-Why:
I think this is fixed. OK to close?
State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 13 Oct 2014 23:30:29 +0000
State-Changed-Why:
Feedback mail is bouncing.
>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.