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

Re: Daily d-i builds fail on armhf and armel with segfault in mklibs

On Thu, Sep 08, 2016 at 10:41:14PM +0200, Karsten Merker wrote:

> Hello everybody,
> since 2016-09-05, the daily d-i builds on armhf and armel are
> incomplete. The builds fail in the library reduction step with a
> segfault during the mklibs run:
> -----8<----------8<----------8<----------8<----------8<----------8<-----
> mklibs-copy --ldlib=/lib/ld-linux-armhf.so.3 -L ./tmp/hd-media/tree/usr/lib -L ./tmp/hd-media/tree/usr/lib/arm-linux-gnueabihf \
>         -L ./tmp/hd-media/udeblibs -v -d ./tmp/hd-media/tree/lib --root=./tmp/hd-media/tree \
>         -L ./tmp/hd-media/tree/usr/lib/cdebconf/frontend \
>         -ltext.so -lnewt.so \
>         `find ./tmp/hd-media -type f -a \( -perm /0111 -o -name '*.so' -o -name '*.so.*' \) | \
>          grep -v udeblibs | grep -v 'usr/lib/xorg/modules/.*\.so'`
> INFO: Using /lib/ld-linux-armhf.so.3 as dynamic linker
> Segmentation fault
> Command failed with status 139 : mklibs-readelf -R ./tmp/hd-media/tree/sbin/blkid
> -----8<----------8<----------8<----------8<----------8<----------8<-----

I have narrowed down the problem to one specific case: it only
occurs when mklibs-readelf works on a static binary while being
called from within a fakeroot environment:

$ ldd ./tmp/hd-media/tree/bin/archdetect
        linux-vdso.so.1 (0xbefd9000)
        libdebian-installer.so.4 => not found
        libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6e0a000)
        /lib/ld-linux-armhf.so.3 (0x7f581000)
$ mklibs-readelf -R ./tmp/hd-media/tree/bin/archdetect
$ fakeroot mklibs-readelf -R ./tmp/hd-media/tree/bin/archdetect
$ ldd ./tmp/hd-media/tree/sbin/blkid
        not a dynamic executable
$ mklibs-readelf -R ./tmp/hd-media/tree/sbin/blkid
$ fakeroot mklibs-readelf -R ./tmp/hd-media/tree/sbin/blkid
/usr/bin/fakeroot: line 181: 21932 Segmentation fault

CCing Clint Adams (fakeroot maintainer) in the hope that he might
be able to provide some further insight.

Gem. Par. 28 Abs. 4 Bundesdatenschutzgesetz widerspreche ich der Nutzung
sowie der Weitergabe meiner personenbezogenen Daten für Zwecke der
Werbung sowie der Markt- oder Meinungsforschung.

Reply to: