I’m was just trying to build the wikipedia-year-in-review Vue project on my M2 Max MacBook Pro, and was getting pretty consistent malloc
errors, Bus error
s and segfaults.
But I fixed it!
tl;dr I was using node v22.9.0
(npm v10.8.3
) when the bug appeared. Upgrading to node v23.3.0
(npm v10.9.0
) appears to have fixed the issue.
Here’s some logs and stuff:
if you’re nerdy like that..
➜ wikipedia-year-in-review git:(main) ✗ npm run start
> [email protected] start
> npm run prebuild && parcel index.html
> [email protected] prebuild
> npm run generate-languages && npm run copy-assets
> [email protected] generate-languages
> node generateLanguages.mjs
en.json
he.json
ko.json
nb.json
qqq.json
yoda.json
zh-hans.json
> [email protected] copy-assets
> cp -r src/assets/* dist && cp -r i18n dist/
Server running at http://localhost:1234
⠋ Building LANGUAGES.json...
node(10207,0x1f18d7240) malloc: Incorrect checksum for freed object 0x14187e800: probably modified after being freed.
Corrupt value: 0xb6b
node(10207,0x1f18d7240) malloc: *** set a breakpoint in malloc_error_break to debug
sh: line 1: 10207 Abort trap: 6 parcel index.html
➜ wikipedia-year-in-review git:(main) ✗ npm run start
> [email protected] start
> npm run prebuild && parcel index.html
> [email protected] prebuild
> npm run generate-languages && npm run copy-assets
> [email protected] generate-languages
> node generateLanguages.mjs
en.json
he.json
ko.json
nb.json
qqq.json
yoda.json
zh-hans.json
> [email protected] copy-assets
> cp -r src/assets/* dist && cp -r i18n dist/
sh: line 1: 10531 Segmentation fault: 11 parcel index.html