You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
In our application, we are flushing the logs using the node webworker threads(https://github.com/audreyt/node-webworker-threads). We use this because we run our logs over some regexes to mask any personal information. We didnt want these regex operations to affect the main Node js thread, so we use a parallel thread using the webworker threads.
Recently we moved to Node 8: Alpine version and we are getting Segmentation Fault when we try to log huge JSON(>500 kB). We are not able to get the stack trace for these crashes. We tried using the Node-Report and segfault-handler packages but in vain. We suspect the limited stack size associated with the Alpine image or the incompatability with the Node webworker-thread package.
Have you guys faced this issue before? Can you help us in getting around this segmentation fault crashes.
The text was updated successfully, but these errors were encountered:
Seems the issue was due to the following existing Node js issue for version >= 8.5. nodejs/node#16658
It was happening for me when we log huge json because the huge json strings were triggering a full GC. So when my web worker thread(separate isolate) was triggering a full GC, the node js was crashing. I fixed it by downgrading my Node js version to 8.4.
I can hopefully upgrade to Node js v11.0 and start using the in-built support for Node js worker threads.
Hi
In our application, we are flushing the logs using the node webworker threads(https://github.com/audreyt/node-webworker-threads). We use this because we run our logs over some regexes to mask any personal information. We didnt want these regex operations to affect the main Node js thread, so we use a parallel thread using the webworker threads.
Recently we moved to Node 8: Alpine version and we are getting Segmentation Fault when we try to log huge JSON(>500 kB). We are not able to get the stack trace for these crashes. We tried using the Node-Report and segfault-handler packages but in vain. We suspect the limited stack size associated with the Alpine image or the incompatability with the Node webworker-thread package.
Have you guys faced this issue before? Can you help us in getting around this segmentation fault crashes.
The text was updated successfully, but these errors were encountered: