'Nodejs 14 Segment fault in docker

I am currently getting segfaults when my nodejs application runs for over 2-3 hours. The application is running inside a node:14 docker container. I have tried to rebuild the image.

/user/src/app/node_modules/segfault-handler/build/Release/segfault-handler.node(+0x2cc1)[0x7f00705b0cc1]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x110e0)[0x7f00713640e0]
node /user/src/app/dist/index.js(_ZNK2v88internal10HeapObject11SizeFromMapENS0_3MapE+0x0)[0xf67980]
node /user/src/app/dist/index.js[0xde9766]
node /user/src/app/dist/index.js[0xdea1c8]
node /user/src/app/dist/index.js(_ZN2v88internal9Scavenger7ProcessEPNS0_14OneshotBarrierE+0xe7b)[0xdecceb]
node /user/src/app/dist/index.js(_ZN2v88internal14ScavengingTask12ProcessItemsEv+0xe9)[0xdedec9]
node /user/src/app/dist/index.js(_ZN2v88internal14ScavengingTask13RunInParallelENS0_15ItemParallelJob4Task6RunnerE+0xfe)[0xdee0fe]
node /user/src/app/dist/index.js(_ZN2v88internal15ItemParallelJob4Task11RunInternalEv+0x15)[0xd8f6f5]
node /user/src/app/dist/index.js(_ZThn32_N2v88internal14CancelableTask3RunEv+0x3b)[0xcabe1b]
node /user/src/app/dist/index.js[0xaa6545]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x74a4)[0x7f007135a4a4]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x7f007109cd0f]


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source