NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/55509: npm install -g electron crashes the kernel



>Number:         55509
>Category:       kern
>Synopsis:       npm install -g electron crashes the kernel
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 21 20:20:00 +0000 2020
>Originator:     Kamil Rytarowski
>Release:        NetBSD 9.99.69 amd64
>Organization:
The NetBSD Foundation, Inc.
>Environment:
NetBSD chieftec 9.99.69 NetBSD 9.99.69 (GENERIC) #0: Tue Jul 21 21:32:24 CEST 2020  root@chieftec:/public/netbsd-root/sys/arch/amd64/compile/GENERIC amd64
>Description:
Rewritten manually:

kernel diagnostic assertion "semcnt >= 0" failed: file "../kern_uidinfo.c", line 241
chgsemcnt()
ksem_release()
ksem_close_fop()
closef()
fd_close()
sys__ksem_destroy()
syscall()
syscall number 256
>How-To-Repeat:
Install nodejs and npm from pkgsrc.

$ sudo npm install -g electron  
/usr/pkg/bin/electron -> /usr/pkg/lib/node_modules/electron/cli.js

> core-js@3.6.5 postinstall /usr/pkg/lib/node_modules/electron/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

.... and kernel crashed


$ npm --version
6.14.5
$ node --version                                                                                                  
v14.3.0

$ pkg_info npm    
Information for npm-6.14.5:
$ pkg_info nodejs
Information for nodejs-14.3.0:

$ pkg_info nodejs
Information for nodejs-14.3.0:

Comment:
V8 JavaScript for clients and servers

Requires:
libuv>=1.37
libcares>=1.6.0
icu>=66.1
nghttp2>=1.40.0nb4

Required by:
yarn-1.22.4
npm-6.14.5

Description:
Node.js is an evented I/O framework for the V8 JavaScript engine. It is
intended for writing scalable network programs such as web servers.

This package holds the latest release.

Homepage:
https://nodejs.org/

$ pkg_info npm    
Information for npm-6.14.5:

Comment:
Package manager for JavaScript

Requires:
nodejs-[0-9]*
python37>=3.7.0

Description:
npm is a package manager for node. You can use it to install and
publish your node programs.

Homepage:
https://github.com/npm/cli
>Fix:
N/A



Home | Main Index | Thread Index | Old Index