[Pkg-javascript-devel] Bug#963457: node-buffer-shims: FTBFS: dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1
Lucas Nussbaum
lucas at debian.org
Sun Jun 21 21:10:27 BST 2020
Source: node-buffer-shims
Version: 1.0.0-2
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200620 ftbfs-bullseye
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> dpkg-buildpackage
> -----------------
>
> Command: dpkg-buildpackage -us -uc -sa -rfakeroot
> dpkg-buildpackage: info: source package node-buffer-shims
> dpkg-buildpackage: info: source version 1.0.0-2
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Xavier Guimard <yadd at debian.org>
> dpkg-source --before-build .
> dpkg-buildpackage: info: host architecture amd64
> debian/rules clean
> dh clean --with nodejs
> dh_auto_clean --buildsystem=nodejs
> rm -rf ./node_modules/.cache
> dh_clean
> dpkg-source -b .
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: info: building node-buffer-shims using existing ./node-buffer-shims_1.0.0.orig.tar.gz
> dpkg-source: info: using patch list from debian/patches/series
> dpkg-source: info: building node-buffer-shims in node-buffer-shims_1.0.0-2.debian.tar.xz
> dpkg-source: info: building node-buffer-shims in node-buffer-shims_1.0.0-2.dsc
> debian/rules binary
> dh binary --with nodejs
> dh_update_autotools_config
> dh_autoreconf
> dh_auto_configure --buildsystem=nodejs
> dh_auto_build --buildsystem=nodejs
> No build command found, searching known files
> dh_auto_test --buildsystem=nodejs
> /bin/sh -ex debian/tests/pkg-js/test
> + tape test/alloc.js test/save-unsafe.js
> b.length == 1024
> c.length == 512
> copied 512 bytes from b into c
> copied 512 bytes from c into b w/o sourceEnd
> copied 512 bytes from c into b w/o sourceStart
> copied 512 bytes from b into c w/o targetStart
> copied 256 bytes from end of b into beginning of c
> copied 512 bytes from b trying to overrun c
> copied 768 bytes from b into b
> bytes written to buffer: 11
> uber: 'über'
> f.length: 4 (should be 4)
> f.length: 8 (should be 8)
> f.length: 12 (should be 12)
> bytes written to buffer: 4 (should be 4)
> f.length: 8 (should be 8)
> f.length: 12 (should be 12)
> bytes written to buffer: 4 (should be 4)
> f.length: 8 (should be 8)
> f.length: 12 (should be 12)
> bytes written to buffer: 4 (should be 4)
> f.length: 8 (should be 8)
> f.length: 12 (should be 12)
> bytes written to buffer: 4 (should be 4)
> Create hex string from buffer
> Create buffer from hex string
> Try to slice off the end of the buffer
> <Buffer 81 a3 66 6f 6f a3 62 61 72>
> <Buffer 6f a3 62 61 72>
> 5
> <Buffer 81 a3 66 6f 6f a3 62 61 72>
> 9
> <Buffer 81 a3 66 6f>
> 4
> <Buffer 81 a3 66 6f 6f a3 62 61 72>
> 9
> <Buffer a3 66 6f>
> 3
> <Buffer 66 6f>
> 2
> <Buffer ff 61 62 ff>
> <Buffer ff 61 62 63>
> <Buffer ff 61 62 ff>
> <Buffer ff ab cd ff>
> <Buffer 61 00 ff ff>
> <Buffer 61 00 ff ff>
> <Buffer 61 00 ff ff>
> <Buffer 61 00 ff ff>
> buffer.js:362
> throw new ERR_INVALID_OPT_VALUE.RangeError('size', size);
> ^
>
> RangeError [ERR_INVALID_OPT_VALUE]: The value "NaN" is invalid for option "size"
> at Function.allocUnsafe (buffer.js:384:3)
> at Object.allocUnsafe (/<<PKGBUILDDIR>>/index.js:41:19)
> at Object.<anonymous> (/<<PKGBUILDDIR>>/test/alloc.js:840:25)
> at Module._compile (internal/modules/cjs/loader.js:1138:30)
> at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
> at Module.load (internal/modules/cjs/loader.js:986:32)
> at Function.Module._load (internal/modules/cjs/loader.js:879:14)
> at Module.require (internal/modules/cjs/loader.js:1026:19)
> at require (internal/modules/cjs/helpers.js:72:18)
> at /usr/lib/nodejs/tape/bin/tape:39:9 {
> code: 'ERR_INVALID_OPT_VALUE'
> }
> dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1
The full build log is available from:
http://qa-logs.debian.net/2020/06/20/node-buffer-shims_1.0.0-2_unstable.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.
More information about the Pkg-javascript-devel
mailing list