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

Bug#279382: marked as done (64-bit kernel -> ldd -> mkinitrd issue)



Your message dated Fri, 13 May 2005 23:21:23 -0700
with message-id <20050514062120.GC12173@mauritius.dodds.net>
and subject line [vorlon@debian.org: Fixed in NMU of initrd-tools 0.1.79]
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 2 Nov 2004 18:28:10 +0000
>From bap@snot.cs.unm.edu Tue Nov 02 10:28:10 2004
Return-path: <bap@snot.cs.unm.edu>
Received: from webmail.cs.unm.edu (mail.cs.unm.edu) [64.106.20.39] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CP3O6-0001Nc-00; Tue, 02 Nov 2004 10:28:10 -0800
Received: from snot.cs.unm.edu ([64.106.46.98])
	by mail.cs.unm.edu with esmtp (Exim 3.35 #1 (Debian))
	id 1CP2RU-0007cL-00; Tue, 02 Nov 2004 10:27:36 -0700
Received: from bap by snot.cs.unm.edu with local (Exim 4.34)
	id 1CP2Po-0005Xw-Fx; Tue, 02 Nov 2004 10:25:52 -0700
From: Barak Pearlmutter <barak@cs.may.ie>
To: submit@bugs.debian.org
Subject: 64-bit kernel -> ldd -> mkinitrd issue
Reply-to: barak@cs.may.ie
Message-Id: <E1CP2Po-0005Xw-Fx@snot.cs.unm.edu>
Sender: Barak Pearlmutter <bap@snot.cs.unm.edu>
Date: Tue, 02 Nov 2004 10:25:52 -0700
X-Scanner: exiscan *1CP2RU-0007cL-00*/fVpxy7ZVDI*
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: initrd-tools
Version: 0.1.74

There is an unfortunate interaction that occurs when a system is
running an em64t-p4 or amd64 kernel, but a standard 32-bit "testing"
user space.  When configuring a kernel-image package the mkinitrd
fails with a cpio failure to read a file named "(0x00000000)".

The cause of this is that "ldd" has an extra entry: with a 32-bit
kernel you see this

    # ldd /bin/cat

		    libc.so.6 => /lib/tls/libc.so.6 (0x40028000)
	    /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

but with a 64-bit kernel you see this

    # uname -a

    Linux x 2.6.8-9-em64t-p4-smp #1 SMP Thu Oct 7 16:01:47 CEST 2004 x86_64 GNU/Linux

    # ldd /bin/cat

	    linux-gate.so.1 =>  (0x00000000)
	    libc.so.6 => /lib/tls/libc.so.6 (0x5557d000)
	    /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x55555000)

When mkinitrd runs ldd on executables to find libraries to be included
them in the initrd, it does not skip the linux-gate line and instead
includes an entry for the strange filename, which fails.

This would be really easy to fix by hacking mkinitrd, either by
ignoring filenames that don't start with "/", or that do start with
"(", or by ignoring the linux-gate lines specially, or whatever.

Or (the "right" solution) ldd could be modified to take a flag telling
it to just print the filenames of all used libraries and mkinitrd
could call it that way, removing the need to parse ldd's output.

But as a cheesy workaround for myself, which might be of value to
others, I created a stub

    # cat /usr/local/bin/ldd

    #! /bin/sh
    /usr/bin/ldd $* | egrep -v linux-gate\[.\]so\[.\]1

and then did

  PATH=/usr/local/bin:$PATH dpkg --configure --pending

which worked fine.
--
Barak A. Pearlmutter <barak@cs.may.ie>
 Hamilton Institute & Dept Comp Sci, NUI Maynooth, Co. Kildare, Ireland
 http://www-bcl.cs.may.ie/~barak/

---------------------------------------
Received: (at 279382-done) by bugs.debian.org; 14 May 2005 06:21:30 +0000
>From vorlon@debian.org Fri May 13 23:21:30 2005
Return-path: <vorlon@debian.org>
Received: from dsl093-039-086.pdx1.dsl.speakeasy.net (localhost.localdomain) [66.93.39.86] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DWq1c-0008Up-00; Fri, 13 May 2005 23:21:24 -0700
Received: by localhost.localdomain (Postfix, from userid 1000)
	id 67E54172CDB; Fri, 13 May 2005 23:21:23 -0700 (PDT)
Date: Fri, 13 May 2005 23:21:23 -0700
From: Steve Langasek <vorlon@debian.org>
To: 266591-done@bugs.debian.org, 279382-done@bugs.debian.org,
	285767-done@bugs.debian.org, 290329-done@bugs.debian.org,
	291386-done@bugs.debian.org, 292080-done@bugs.debian.org,
	295412-done@bugs.debian.org, 295422-done@bugs.debian.org,
	296894-done@bugs.debian.org, 297724-done@bugs.debian.org,
	298727-done@bugs.debian.org, 301455-done@bugs.debian.org,
	303281-done@bugs.debian.org, 303401-done@bugs.debian.org,
	306219-done@bugs.debian.org
Subject: [vorlon@debian.org: Fixed in NMU of initrd-tools 0.1.79]
Message-ID: <20050514062120.GC12173@mauritius.dodds.net>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="1ccMZA6j1vT5UqiK"
Content-Disposition: inline
User-Agent: Mutt/1.5.9i
Delivered-To: 279382-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-4.0 required=4.0 tests=BAYES_00,SORTED_RECIPS,
	VALID_BTS_CONTROL autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 2


--1ccMZA6j1vT5UqiK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

These bugs were all closed in the most recent initrd-tools upload, but owing
to pilot error, were not marked as such.  The original closure message was
as follows.

Cheers,
--=20
Steve Langasek
postmodern programmer

----- Forwarded message from Steve Langasek <vorlon@debian.org> -----

X-Original-To: vorlon@dodds.net
=46rom: Steve Langasek <vorlon@debian.org>
To: control@bugs.debian.org
Cc: Steve Langasek <vorlon@debian.org>,
	Debian kernel team <debian-kernel@lists.debian.org>
X-Katie: $Revision: 1.55 $
Subject: Fixed in NMU of initrd-tools 0.1.79
Date: Sat, 14 May 2005 01:32:13 -0400
X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on norad.dodds.net
X-Spam-Level:=20
X-Spam-Status: No, score=3D-2.6 required=3D5.0 tests=3DBAYES_00 autolearn=
=3Dham=20
	version=3D3.0.2

tag 266591 + fixed
tag 279382 + fixed
tag 285767 + fixed
tag 290329 + fixed
tag 291386 + fixed
tag 292080 + fixed
tag 295412 + fixed
tag 295422 + fixed
tag 296894 + fixed
tag 297724 + fixed
tag 298727 + fixed
tag 301455 + fixed
tag 303281 + fixed
tag 303401 + fixed
tag 306219 + fixed

quit

This message was generated automatically in response to a
non-maintainer upload.  The .changes file follows.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 13 May 2005 21:25:52 -0700
Source: initrd-tools
Binary: initrd-tools
Architecture: source all
Version: 0.1.79
Distribution: unstable
Urgency: high
Maintainer: Debian kernel team <debian-kernel@lists.debian.org>
Changed-By: Steve Langasek <vorlon@debian.org>
Description:=20
 initrd-tools - tools to create initrd image for prepackaged Linux kernel
Closes: 266591 279382 285767 290329 291386 292080 295412 295422 296894 2977=
24 298727 301455 303281 303401 306219
Changes:=20
 initrd-tools (0.1.79) unstable; urgency=3Dhigh
 .
   * Steve Langasek
     - Don't be so hasty to use lvm10: only use it if lvmiopversion
       says we're lvm10-only, *or* there's no dm-mod for the kernel;
       this avoids breaking lvm2 volumes in 2.4 when the lvm10 package
       is installed.  Closes: #291386.
     - Add myself to uploaders.
   * GOTO Masanori
     - Make mkinitrd work with new ldd format which change is introduced
       in glibc 2.3.4.  (Closes: #301455, #303281)
       This change also fixes amd64 mkinitrd breakage.
       (Closes: #279382, #292080, #295412, #295422, #297724)
   * Maximilian Attems
     - Resynchronise with Ubuntu:
       * Error message should refer to mdadm, not raidtools2.
       * Take /etc/mkinitrd/DSDT and put it in the initrd if it exists.
       * Use mktemp, not $$ for creating temporary directories.
     - Function module_exist recognizes modules in subdirs. Closes: #296894
     - Fix upgrade path from woody for sparc arch. thanks to
       Jurij Smakov <jurij@wooyd.org> Closes: #306219
     - Use libdevmapper1.01 Closes: #266591, #298727, #303401
     - Fix permissions of the initrd files. thanks to patch for debian/rules
       from Horms <horms@debian.org> Closes: #285767
   * Sven Luther
     - Powerpc now defaults to MODULES=3Ddep. (Closes: #290329)
Files:=20
 d55fad2edd46b490476c6e640037e622 608 utils optional initrd-tools_0.1.79.dsc
 048265f342b32440466b256296878af8 27103 utils optional initrd-tools_0.1.79.=
tar.gz
 6180afbac9c9516ec2ce696b4c8b237d 29558 utils optional initrd-tools_0.1.79_=
all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFChYpTKN6ufymYLloRArmxAJ96ibimA1H8yQI3sjosX6nQyoRCngCglJ9/
NJ1vAGYLxonkH4h3dY1TPis=3D
=3Dgt9k
-----END PGP SIGNATURE-----

----- End forwarded message -----

--1ccMZA6j1vT5UqiK
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFChZjdKN6ufymYLloRAh/aAKCUibLxWjHdzA2tuJL7cfz8YOHi9ACffIh9
MehFc/TKvmzF4JAlLq4Z84g=
=kBEU
-----END PGP SIGNATURE-----

--1ccMZA6j1vT5UqiK--



Reply to: