[Reproducible-builds] Bug#831443: dh-strip-nondeterminism: "Out of memory" (on 4G RAM) while while processing a png in glib2.0

Helmut Grohne helmut at subdivi.de
Sat Jul 16 05:45:58 UTC 2016


Package: dh-strip-nondeterminism
Version: 0.019-1
Severity: important
User: helmutg at debian.org
Usertags: rebootstrap

I noticed that building glib2.0 (native or cross) started to fail for me
on some systems. The relevant part of the build log always is:

| dh_strip_nondeterminism -plibglib2.0-tests 
| Out of memory!
| /usr/share/cdbs/1/rules/debhelper.mk:302: recipe for target 'binary-strip-IMPL/libglib2.0-tests' failed
| make: *** [binary-strip-IMPL/libglib2.0-tests] Error 1
| dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit status 2

So I reran dh_strip_nondeterminism under strace and saw

    mmap(NULL, 4294971392, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)

as the last action before printing the "Out of memory" message. The last
file opened was

    debian/libglib2.0-tests/usr/lib/glib2.0/installed-tests/glib/thumbnails/huge-chunk-size.png

which has a size of 512 bytes.

If you try reproducing the issue, "ulimit -v $((1024*1024*4))" can be
useful.

I'll be using

    ln -sf /bin/true /usr/bin/dh_strip_nondeterminism

for now unless you can propose something better.

I was also thinking that since these files are deliberately broken,
maybe glib2.0 should explicitly --exclude them from
dh_strip_nondeterminism?

Helmut



More information about the Reproducible-builds mailing list