--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: mklibs-copy: crashes on static binaries
- From: Samuel Thibault <sthibault@debian.org>
- Date: Thu, 31 Dec 2015 14:55:50 +0100
- Message-id: <20151231135550.GA27804@var.home>
Package: mklibs-copy
Version: 0.1.40+b1
Severity: important
Hello,
I just tried to build a d-i image, but got:
Bus error
Command failed with status 135 : mklibs-readelf -R ./tmp/netboot-gtk/tree/sbin/blkid
And indeed,
$ cat > test.c << EOF
int main(void) {}
EOF
$ gcc test.c -o test -static
$ mklibs-readelf -R test
bus error mklibs-readelf -R test
I agree that running mklibs-readelf -R on a static elf file is a bit
odd, but it makes sense when e.g. running over a bunch of elf files.
Samuel
-- System Information:
Debian Release: stretch/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'oldoldstable'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages mklibs-copy depends on:
ii dpkg-dev 1.18.3
ii libc6 2.21-6
ii libgcc1 1:6-20151211-1
ii libstdc++6 5.3.1-4
ii python 2.7.11-1
pn python:any <none>
mklibs-copy recommends no packages.
mklibs-copy suggests no packages.
-- no debconf information
--
Samuel
Les roots ne sont plus ce qu'ils étaient...Maintenant il sont dioxinés,
c'est de la m... ! Avant on les élevaient avec du bon unix mais ça été
remplacé par des farines industrielles nouvelles technologies (NT).
-+- JdK in NPC : Exigez un root élevé sous la mère ! -+-
--- End Message ---
--- Begin Message ---
- To: Cyril Brulebois <kibi@debian.org>
- Cc: 809501-done@bugs.debian.org
- Subject: Re: Bug#809501: mklibs-copy: crashes on static binaries
- From: Samuel Thibault <sthibault@debian.org>
- Date: Mon, 10 Oct 2016 21:37:28 +0200
- Message-id: <20161010193728.GU2988@var.home>
- In-reply-to: <20160930224038.GA19415@mraw.org>
- References: <20151231135550.GA27804@var.home> <20151231140340.GG4579@var.home> <20160930224038.GA19415@mraw.org>
Version: 0.1.42
Hello,
Cyril Brulebois, on Sat 01 Oct 2016 00:40:38 +0200, wrote:
> Samuel Thibault <sthibault@debian.org> (2015-12-31):
> > Samuel Thibault, on Thu 31 Dec 2015 14:55:50 +0100, wrote:
> > > I agree that running mklibs-readelf -R on a static elf file is a bit
> > > odd, but it makes sense when e.g. running over a bunch of elf files.
> >
> > Actually mklibs-copy already filters out non-elf in
> >
> > for prog in proglist:
> >
> > Either it should filter out static elf files, or mklibs-readelf made not
> > to crash :)
>
> please check my analysis in #839264 (and upcoming fix), I suspect you
> were hitting the same thing.
It fixes my case too indeed.
Thanks,
Samuel
--- End Message ---