Le lun. 15 juil. 2024 à 11:27, Сергей Сёмин <syominser...@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@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@debian-bookworm-i386:~/node-chai-4.3.7~ds1+~cs9.7.21# node --version > v20.15.1 > root@debian-bookworm-i386:~/node-chai-4.3.7~ds1+~cs9.7.21# browserify > --version > 17.0.0 > root@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@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.