[Pkg-javascript-devel] Bug#1123416: node-rewire: FTBFS: dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 134
Santiago Vila
sanvila at debian.org
Tue Dec 16 20:27:55 GMT 2025
Package: src:node-rewire
Version: 6.0.0-4
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, this package failed to build.
Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:
https://people.debian.org/~sanvila/build-logs/202512/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:node-rewire, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean
dh_auto_clean --buildsystem=nodejs
rm -rf ./node_modules/.cache ./.nyc_output
rm ./node_modules/.cache
rm ./node_modules/.cache
dh_clean
debian/rules binary
dh binary
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
mkdir -p node_modules
ln -s ../. node_modules/rewire
/bin/sh -ex debian/tests/pkg-js/test
+ mocha -R spec
__get__
undefined should return the initial value
undefined should return the changed value of the number
undefined should throw a ReferenceError when getting not existing vars
undefined should throw a TypeError when passing misfitting params
__set__
undefined should set the new value when calling with varName, varValue
undefined should set the new reference when calling with varName, varValue
undefined should set the new number and the new obj when calling with an env-obj
undefined should return a function that when invoked reverts to the values before set was called
undefined should be able to revert when calling with an env-obj
undefined should throw a TypeError when passing misfitting params
__with__
undefined should return a function
undefined should return a function that can be invoked with a callback which guarantees __set__'s undo function is called for you at the end
undefined should also accept a variable name and a variable value (just like __set__)
undefined should still revert values if the callback throws an exception
undefined should throw an error if something other than a function is passed as the callback
using promises
undefined should pass the returned promise through
undefined should not undo any changes until the promise has been resolved
undefined should also undo any changes if the promise has been rejected
undefined should ignore any returned value which doesn't provide a then()-method
detectStrictMode
undefined should detect all valid uses of "use strict";
undefined should be allowed to place comments before "use strict";
undefined should not detect invalid uses of "use strict";
undefined should not detect "use strict"; if it occurs in some nested function
getImportGlobalsSrc
# node[52]: v8::MaybeLocal<v8::Object> node::GetPerContextExports(v8::Local<v8::Context>, IsolateData*) at ../src/api/environment.cc:657
# Assertion failed: isolate_data
----- Native stack trace -----
1: 0x7f25b66c9e3d node::Assert(node::AssertionInfo const&) [/usr/lib/x86_64-linux-gnu/libnode.so.127]
2: 0x7f25b65a2e94 node::GetPerContextExports(v8::Local<v8::Context>, node::IsolateData*) [/usr/lib/x86_64-linux-gnu/libnode.so.127]
3: 0x7f25b6724756 [/usr/lib/x86_64-linux-gnu/libnode.so.127]
4: 0x7f25b718d54d v8::internal::Object::GetPropertyWithAccessor(v8::internal::LookupIterator*) [/usr/lib/x86_64-linux-gnu/libnode.so.127]
5: 0x7f25b6f72070 v8::internal::LoadIC::Load(v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Name>, bool, v8::internal::Handle<v8::internal::Object>) [/usr/lib/x86_64-linux-gnu/libnode.so.127]
6: 0x7f25b6f78581 v8::internal::Runtime_LoadNoFeedbackIC_Miss(int, unsigned long*, v8::internal::Isolate*) [/usr/lib/x86_64-linux-gnu/libnode.so.127]
7: 0x7f25b6af2476 [/usr/lib/x86_64-linux-gnu/libnode.so.127]
----- JavaScript stack trace -----
1: evalmachine.<anonymous>:1:2231
2: runInContext (node:vm:149:12)
3: runInNewContext (node:vm:154:17)
4: runInNewContext (node:vm:310:38)
5: /<<PKGBUILDDIR>>/test/getImportGlobalsSrc.test.js:37:12
6: callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
7: Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
8: Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:719:10)
9: /usr/share/nodejs/mocha/lib/runner.js:842:12
10: next (/usr/share/nodejs/mocha/lib/runner.js:634:14)
Aborted
dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 134
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
More information about the Pkg-javascript-devel
mailing list