[Pkg-javascript-devel] Bug#1076350: Bug#1076350: nodejs: segfault in node when running browserify script on i386 when building node-chai

Jérémy Lal kapouer at melix.org
Mon Jul 15 10:41:22 BST 2024


Le lun. 15 juil. 2024 à 11:27, Сергей Сёмин <syominsergey at gmail.com> a
écrit :

> I tried to give maximum resources to my VM with Debian Bookworm i386
> (recently upgraded to Debian Sid).
> I gave 8 GB RAM in VM settings but because of i386 limitations only
> 4GB actually available in VM.
> The problem remains:
>
> root at debian-bookworm-i386:~/node-chai-4.3.7~ds1+~cs9.7.21# free -h
>               total        used        free      shared  buff/cache
>  available
> Mem:           3.4Gi       409Mi       3.2Gi       572Ki       153Mi
>  3.0Gi
> Swap:          974Mi          0B       974Mi
> root at debian-bookworm-i386:~/node-chai-4.3.7~ds1+~cs9.7.21# node --version
> v20.15.1
> root at debian-bookworm-i386:~/node-chai-4.3.7~ds1+~cs9.7.21# browserify
> --version
> 17.0.0
> root at debian-bookworm-i386:~/node-chai-4.3.7~ds1+~cs9.7.21# browserify
>        --bare         --outfile chai.js         --standalone chai
>    --entry index.js
> Segmentation fault (core dumped)
> root at debian-bookworm-i386:~/node-chai-4.3.7~ds1+~cs9.7.21# free -h
>               total        used        free      shared  buff/cache
>  available
> Mem:           3.4Gi       486Mi       3.1Gi       572Ki       160Mi
>  3.0Gi
> Swap:          974Mi          0B       974Mi
>
> Thank you for your ideas what to check on next step.
> At this moment I have workaround when building node-chai - not to call
> browserify (a custom patch). Result deb packages are incomplete, but
> at this moment I think it is enough for my aims.
> This bug I opened just for info, because I thought it can show some
> problems in nodejs itself and is interesting because of it.
> In case of free time available I'll try to check the next steps you
> recommended.


If it's for building a debian package, then I recommend using rollup or
webpack,
whatever is easier.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20240715/c2d8c744/attachment.htm>


More information about the Pkg-javascript-devel mailing list