Quantcast
Viewing all articles
Browse latest Browse all 5962

Node.js: Illegal instruction (core dumped)

Synopsis

I do not know how to find the problem. Please assist me in debugging.I updated from nodev18 to nodev20 and could no longer execute my jest-tests, jest --version was working but jest test was failing.So I investigated further, and it seems like a issue with node and some unknown code execution that causes the exit because I even cannot run npm start on a new project.

Relevant versions

Kubuntu 23.10 mantic on 6.7.9-060709-generic Kernel
node v20.11.1 (from snap store)
npm 10.2.4
Angular CLI: 17.2.3

Reproduction

How to reproduce (on my system)clean angular installation:

$ ng new foo*snip*✔ Packages installed successfully.$ cd foo$ npm start> foo@0.0.0 start> ng serve⠧ Building...Illegal instruction (core dumped)

further logs & information

I already tried node from different repos: snap, source, debian in version 20 and 21.Only when I switch back to v18 npm start/npm test works.It does not fail on the building, I think. The command npm run build does work without any issue.

$ cat /home/frozen_byte/.npm/_logs/2024-03-13T16_47_20_594Z-debug-0.log 0 verbose cli /snap/node/8286/bin/node /usr/local/bin/npm1 info using npm@10.5.02 info using node@v20.11.13 timing npm:load:whichnode Completed in 1ms4 timing config:load:defaults Completed in 1ms5 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 0ms6 timing config:load:builtin Completed in 0ms7 timing config:load:cli Completed in 1ms8 timing config:load:env Completed in 0ms9 timing config:load:file:/home/frozen_byte/IdeaProjects/foo/.npmrc Completed in 0ms10 timing config:load:project Completed in 1ms11 timing config:load:file:/home/frozen_byte/.npmrc Completed in 0ms12 timing config:load:user Completed in 0ms13 timing config:load:file:/snap/node/8286/etc/npmrc Completed in 1ms14 timing config:load:global Completed in 1ms15 timing config:load:setEnvs Completed in 0ms16 timing config:load Completed in 4ms17 timing npm:load:configload Completed in 4ms18 timing config:load:flatten Completed in 1ms19 timing npm:load:mkdirpcache Completed in 0ms20 timing npm:load:mkdirplogs Completed in 0ms21 verbose title npm start22 verbose argv "start"23 timing npm:load:setTitle Completed in 0ms24 timing npm:load:display Completed in 0ms25 verbose logfile logs-max:10 dir:/home/frozen_byte/.npm/_logs/2024-03-13T16_47_20_594Z-26 verbose logfile /home/frozen_byte/.npm/_logs/2024-03-13T16_47_20_594Z-debug-0.log27 timing npm:load:logFile Completed in 4ms28 timing npm:load:timers Completed in 0ms29 timing npm:load:configScope Completed in 0ms30 timing npm:load Completed in 15ms31 silly logfile start cleaning logs, removing 1 files32 silly logfile done cleaning log files33 timing command:run-script Completed in 1177ms34 timing command:start Completed in 1180ms35 verbose exit 13236 timing npm Completed in 1210ms37 verbose code 132
$ sudo dmesg -w*snip*[ 6998.095159] traps: ng serve[25856] trap invalid opcode ip:57a7ac88ab84 sp:7fce865f9dc8 error:0 in node[57a7ab350000+1bc4000]

Viewing all articles
Browse latest Browse all 5962

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>