-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Segfault on Ubuntu 14.04 #25648
Comments
Are you able to get a core dump when node crashes? With a core dump we could at least look at a call stack and have information about native frames. |
My node version is v0.12.6, installed on Ubuntu Server 14.04.2. This is what I see in gdb (
I don't know if it helps. |
@membrive That helps a lot, thank you! From the callstack in your core dump, it seems similar to #15446, which relates to https://code.google.com/p/chromium/issues/detail?id=408380 in Chromium and https://code.google.com/p/v8/issues/detail?id=2996 in V8. @jshkurti @suprMax Do you get a callstack (from a core dump or by any other mean) that is similar to the one posted by @membrive? If so, we'll close this as a duplicate of #15446 and continue the discussion over there. |
@misterdjules I don't know how to reproduce it. It just happens. I ran PM2 in three servers with Ubuntu Server 14.04 but with different kernel versions (3.10 from OVH, 3.13 from Ubuntu, and 3.16 from Ubuntu), and it crashes totally random. I also tried with Node.js 0.12.2, 0.12.4 and 0.12.6, prebuilt from nodesource and nodejs.org, and also built from source code, without results. Some days it crash twice or more, making impossible using it reliably. Thank you for your help! |
We run with debian 7 in production with pm2 and a lot of nodejs apps (complex ones) with no segfault at all. This might be related to ubuntu. I tried to reproduce on a vm without success. |
@soyuka Thank you for providing some feedback! What version of node are you running? |
0.12.3+ Quoting from the original issue:
Those are the same versions they experienced segfaults with. |
@misterdjules sorry we don't have any more dumps to help with it. As @membrive said it just crashes for no apparent reason. Sometimes it does this lovely thing too |
If you want to generate a stack trace to post it here, follow the next steps:
And that's all. Thank you! |
do you have any native plugin in your nodejs app? |
I was reading the pm2 code and I stuck on those two lines that were added in the pm2 0.14 release:
We had no segfault with pm2 0.12.x so this might be the problem source (#15446). I still can't reproduce :|. @wangjia184 regarding pm2 there are no native plugins enabled on ubuntu. |
So, issue seems to be related to the garbage collector and caused by |
After further inspection it looks like node's flag |
@jshkurti Isn't this still a bug in Node.js' core even though you fixed what triggered it in PM2's source? |
It is, indeed :/ |
@jshkurti Thanks! |
Node 0.12.7, no PM2 in use, --expose-gc flag is on, no --gc-global flag. Trace:
P.S.: "next engine worker" is just process name. |
Reported to nodejs/node as nodejs/node#3715, the discussion should continue there. |
This is basically a duplicate of Unitech/pm2#1380
TL;DR: Node.js v0.12.4 segfaults.
kern.log:
Any thoughts on this ?
Thanks
@suprMax @NikitaKrasavtsev @membrive @jhansen-tt @soyuka
The text was updated successfully, but these errors were encountered: