[Pkg-javascript-devel] Bug#922075: Bug#922075: npm: segfault during extract on i386

Bernhard Übelacker bernhardu at mailbox.org
Thu Mar 28 10:58:07 GMT 2019


Hello Jérémy Lal,
unfortunately yes, it still crashes.

Attached file shows a test starting with a minimal up-to-date
Buster i386 qemu VM, and as far as I see after the crash
/usr/local/lib/node_modules does not exist and following command
shows just these files in ~/node_modules, so I can assume
it took gyp from the installed package?

    benutzer at debian:~$ find -iname "*gyp*"
    ./node_modules/.staging/@paulcbetts/spellchecker-c39cd101/binding.gyp
    ./node_modules/.staging/keyboard-layout-87dfeaf6/binding.gyp

Kind regards,
Bernhard

-------------- next part --------------

# Buster i386 qemu VM 2019-03-28

apt update
apt dist-upgrade


apt install systemd-coredump npm


benutzer at debian:~$ dpkg -l | grep gyp
ii  gyp                               0.1+20180428git4d467626-3   all          Cross-platform build script generator
ii  node-gyp                          3.8.0-6                     all          Native addon build tool for Node.js

benutzer at debian:~$ LANG=C ls -lisah ./node_modules
ls: cannot access './node_modules': No such file or directory

benutzer at debian:~$ LANG=C ls -lisah ./.npm
ls: cannot access './.npm': No such file or directory

benutzer at debian:~$ LANG=C ls -lisah /usr/local/lib/node_modules
ls: cannot access '/usr/local/lib/node_modules': No such file or directory



benutzer at debian:~$ npm --verbose install electron-spellchecker at 1.1.2
npm info it worked if it ends with ok
npm WARN npm npm does not support Node.js v10.15.2
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
npm verb cli [ '/usr/bin/node',
npm verb cli   '/usr/bin/npm',
npm verb cli   '--verbose',
npm verb cli   'install',
npm verb cli   'electron-spellchecker at 1.1.2' ]
npm info using npm at 5.8.0
npm info using node at v10.15.2
npm verb config Skipping project config: /home/benutzer/.npmrc. (matches userconfig)
npm verb npm-session a34f421692981832
npm http fetch GET 200 https://registry.npmjs.org/electron-spellchecker 210ms
npm http fetch GET 200 https://registry.npmjs.org/electron-spellchecker/-/electron-spellchecker-1.1.2.tgz 52ms
npm http fetch GET 200 https://registry.npmjs.org/mkdirp 72ms
npm http fetch GET 200 https://registry.npmjs.org/electron-remote 84ms
npm http fetch GET 200 https://registry.npmjs.org/keyboard-layout 88ms
npm http fetch GET 200 https://registry.npmjs.org/bcp47 94ms
npm http fetch GET 200 https://registry.npmjs.org/debug 95ms
npm http fetch GET 200 https://registry.npmjs.org/lru-cache 107ms
npm http fetch GET 200 https://registry.npmjs.org/pify 107ms
npm http fetch GET 200 https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz 38ms
npm http fetch GET 200 https://registry.npmjs.org/rxjs-serial-subscription 31ms
npm http fetch GET 200 https://registry.npmjs.org/debug/-/debug-2.6.9.tgz 51ms
npm http fetch GET 200 https://registry.npmjs.org/spawn-rx 39ms
npm http fetch GET 200 https://registry.npmjs.org/pify/-/pify-2.3.0.tgz 49ms
npm http fetch GET 200 https://registry.npmjs.org/spawn-rx/-/spawn-rx-2.0.12.tgz 49ms
npm http fetch GET 200 https://registry.npmjs.org/rxjs 192ms
npm http fetch GET 200 https://registry.npmjs.org/@paulcbetts%2fspellchecker 879ms
npm http fetch GET 200 https://registry.npmjs.org/@paulcbetts%2fcld 1007ms
npm http fetch GET 200 https://registry.npmjs.org/nan 51ms
npm http fetch GET 200 https://registry.npmjs.org/rimraf 54ms
npm http fetch GET 200 https://registry.npmjs.org/glob 57ms
npm http fetch GET 200 https://registry.npmjs.org/underscore 90ms
npm http fetch GET 200 https://registry.npmjs.org/glob/-/glob-5.0.15.tgz 35ms
npm http fetch GET 200 https://registry.npmjs.org/path-is-absolute 41ms
npm http fetch GET 200 https://registry.npmjs.org/inherits 43ms
npm http fetch GET 200 https://registry.npmjs.org/inflight 45ms
npm http fetch GET 200 https://registry.npmjs.org/once 45ms
npm http fetch GET 200 https://registry.npmjs.org/minimatch 47ms
npm http fetch GET 200 https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz 33ms
npm http fetch GET 200 https://registry.npmjs.org/wrappy 23ms
npm http fetch GET 200 https://registry.npmjs.org/brace-expansion 59ms
npm http fetch GET 200 https://registry.npmjs.org/concat-map 27ms
npm http fetch GET 200 https://registry.npmjs.org/balanced-match 30ms
npm http fetch GET 200 https://registry.npmjs.org/fs.realpath 56ms
npm http fetch GET 200 https://registry.npmjs.org/ms 30ms
npm http fetch GET 200 https://registry.npmjs.org/ms/-/ms-2.0.0.tgz 24ms
npm http fetch GET 200 https://registry.npmjs.org/xmlhttprequest 34ms
npm http fetch GET 200 https://registry.npmjs.org/lodash.get 36ms
npm http fetch GET 200 https://registry.npmjs.org/hashids 38ms
npm http fetch GET 200 https://registry.npmjs.org/symbol-observable 26ms
npm http fetch GET 200 https://registry.npmjs.org/event-kit 33ms
npm http fetch GET 200 https://registry.npmjs.org/pseudomap 25ms
npm http fetch GET 200 https://registry.npmjs.org/yallist 28ms
npm http fetch GET 200 https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz 27ms
npm http fetch GET 200 https://registry.npmjs.org/minimist 28ms
npm http fetch GET 200 https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz 42ms
npm http fetch GET 200 https://registry.npmjs.org/lodash.assign 24ms
npm verb correctMkdir /home/benutzer/.npm/_locks correctMkdir not in flight; initializing
npm verb makeDirectory /home/benutzer/.npm/_locks creation not in flight; initializing
npm verb lock using /home/benutzer/.npm/_locks/staging-ab0779999403338b.lock for /home/benutzer/node_modules/.staging
npm http fetch GET 200 https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz 129ms
npm http fetch GET 200 https://registry.npmjs.org/event-kit/-/event-kit-2.5.3.tgz 204ms
npm http fetch GET 200 https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz 203ms
npm http fetch GET 200 https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz 211ms
npm http fetch GET 200 https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz 210ms
npm http fetch GET 200 https://registry.npmjs.org/hashids/-/hashids-1.2.2.tgz 214ms
npm http fetch GET 200 https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz 220ms
npm http fetch GET 200 https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz 231ms
npm http fetch GET 200 https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz 262ms
npm http fetch GET 200 https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.1.tgz 267ms
npm http fetch GET 200 https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz 268ms
npm http fetch GET 200 https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz 269ms
npm http fetch GET 200 https://registry.npmjs.org/bcp47/-/bcp47-1.1.2.tgz 269ms
npm http fetch GET 200 https://registry.npmjs.org/rxjs-serial-subscription/-/rxjs-serial-subscription-0.1.1.tgz 261ms
npm http fetch GET 200 https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz 274ms
npm http fetch GET 200 https://registry.npmjs.org/once/-/once-1.4.0.tgz 274ms
npm http fetch GET 200 https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz 276ms
npm http fetch GET 200 https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz 276ms
npm http fetch GET 200 https://registry.npmjs.org/glob/-/glob-7.1.3.tgz 276ms
npm http fetch GET 200 https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz 278ms
npm http fetch GET 200 https://registry.npmjs.org/keyboard-layout/-/keyboard-layout-2.0.15.tgz 278ms
npm http fetch GET 200 https://registry.npmjs.org/electron-remote/-/electron-remote-1.3.0.tgz 282ms
npm http fetch GET 200 https://registry.npmjs.org/nan/-/nan-2.13.2.tgz 306ms
npm http fetch GET 200 https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz 355ms
Speicherzugriffsfehler (Speicherabzug geschrieben)


benutzer at debian:~$ find -iname "*gyp*"
./node_modules/.staging/@paulcbetts/spellchecker-c39cd101/binding.gyp
./node_modules/.staging/keyboard-layout-87dfeaf6/binding.gyp

benutzer at debian:~$ LANG=C ls -lisah /usr/local/lib/node_modules
ls: cannot access '/usr/local/lib/node_modules': No such file or directory

benutzer at debian:~$ dpkg -l | grep gyp
ii  gyp                               0.1+20180428git4d467626-3   all          Cross-platform build script generator
ii  node-gyp                          3.8.0-6                     all          Native addon build tool for Node.js




More information about the Pkg-javascript-devel mailing list