[Pkg-javascript-devel] Bug#850506: Unreproducible FTBFS of acorn

Santiago Vila sanvila at unex.es
Tue Feb 21 23:21:10 UTC 2017


Hi.

I don't know anything about Javascript (sorry), but I'd like to suggest a
general way to deal with this, which is not language-specific:

Instead of trying to reproduce the bug yourself (by trying many times),
look at the build logs and look at the code, and try to guess how it
could happen:

Error: missing module import from src/bin/acorn.js for path: acorn
    at Container.getModule
(/usr/lib/nodejs/es6-module-transpiler/lib/container.js:94:9)
    at Module.getModule
(/usr/lib/nodejs/es6-module-transpiler/lib/module.js:189:25)
    at ImportDeclaration.<anonymous>
(/usr/lib/nodejs/es6-module-transpiler/lib/module_binding_declaration.js:106:40)
    at ImportDeclaration.Object.defineProperty.get
(/usr/lib/nodejs/es6-module-transpiler/lib/utils.js:15:31)
    at CommonJSFormatter.importedReference
(/usr/lib/nodejs/es6-module-transpiler/lib/formatters/commonjs_formatter.js:319:46)
    at Context.Rewriter.getExportReferenceForReference
(/usr/lib/nodejs/es6-module-transpiler/lib/rewriter.js:363:20)
    at Context.Rewriter.visitIdentifier
(/usr/lib/nodejs/es6-module-transpiler/lib/rewriter.js:106:32)
    at Context.invokeVisitorMethod
(/usr/lib/nodejs/ast-types/lib/path-visitor.js:344:49)
    at Rewriter.PVp.visitWithoutReset
(/usr/lib/nodejs/ast-types/lib/path-visitor.js:196:32)
    at visitChildren
(/usr/lib/nodejs/ast-types/lib/path-visitor.js:246:25)


For example: Is it true that the above functions call the other
functions in cascade and the first one (or the last one) tries to load
a module which is missing? How could that happen? That sort of thing.

If you can guess how it may happen by looking at the code and the
build log, you would not even need to reproduce it, but of course this
would be all Knuth style:

"Beware of bugs in the above code; I have only proved it correct, not tried it"

In this case, if you try to prove that the code is correct, you should
surely fail, because we get those build failures which seem to
indicate that it's not.

And if this does not help you in any way, well, I'm really sorry.
I would try to forward the bug upstream anyway. The bug seems real,
as it happens on completely different environments (my autobuilders,
using sbuild, and the ones from reproducible builds, using pbuilder).

Thanks.



More information about the Pkg-javascript-devel mailing list