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
PID 2614 received SIGSEGV for address: 0xffffffffffffffa0
/<path to modules>/node_modules/segfault-handler/build/Release/segfault-handler.node(+0x1a13)[0x7f91d067ba13]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xf0a0)[0x7f91d14190a0]
next engine worker(_ZN2v88internal23PointersUpdatingVisitor12VisitPointerEPPNS0_6ObjectE+0x18)[0x99f6c8]
next engine worker(_ZN2v88internal13ObjectVisitor14VisitCodeEntryEPh+0x28)[0xac3988]
next engine worker(_ZN2v88internal20MarkCompactCollector29EvacuateNewSpaceAndCandidatesEv+0xeb9)[0x9bf249]
next engine worker(_ZN2v88internal20MarkCompactCollector11SweepSpacesEv+0x2f1)[0x9e4c51]
next engine worker(_ZN2v88internal20MarkCompactCollector14CollectGarbageEv+0x2a)[0x9ec90a]
next engine worker(_ZN2v88internal4Heap11MarkCompactEv+0x9f)[0x96882f]
next engine worker(_ZN2v88internal4Heap24PerformGarbageCollectionENS0_16GarbageCollectorENS_15GCCallbackFlagsE+0x288)[0x97c938]
next engine worker(_ZN2v88internal4Heap14CollectGarbageENS0_16GarbageCollectorEPKcS4_NS_15GCCallbackFlagsE+0xce)[0x97cf5e]
next engine worker(_ZN2v88internal4Heap17CollectAllGarbageEiPKcNS_15GCCallbackFlagsE+0x6c)[0x97d37c]
next engine worker(_ZN2v87Isolate34RequestGarbageCollectionForTestingENS0_21GarbageCollectionTypeE+0x3d)[0x80598d]
next engine worker(_ZN2v88internal25FunctionCallbackArguments4CallEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEE+0x9c)[0x82b78c]
next engine worker[0x84ddff]
[0x36cfbc2060a2]
It's not running out of memory (it crashes after only reaching ~1.1GB rss), I think I've tracked it down to v8 having a length limit on arrays. But you're right, I think it's unrelated.
@bnoordhuis Quite seldom, but I observed occasionally a Node crash and got the following line in kern.log:
master kernel: [3644710.877233] traps: node[4114] trap invalid opcode ip:fc9369 sp:7fff8455a4e8 error:0 in node[400000+1383000]
So I just enabled core dumps, unfortunately no deeper insight yet. As you see below, the pattern matches pretty good with other observations in this issue. I deliver stack traces as soon as available.
Some general info:
Node 4.4.7
Ubuntu 14.04, 64bit on AWS EC2
--enable-gc on
after fighting some memory leaks, I started to log memory usage: every 5min global.gc() and then process.memoryUsage() is triggered
You could try gdb --args node followed by info symbol 0xfc9369 (the ip address) to see which function it belongs to (if any, and assuming it hasn't been mangled by ASLR.)
If you don't have gdb installed, try addr2line -e node fc9369. addr2line is less sophisticated than gdb, though; I think it only looks through the symbol sections, not DWARF debug data.
Activity
evanlucas commentedon Nov 9, 2015
Is there a reproducible test case that you can share with us to help identify the issue?
calzoneman commentedon Nov 15, 2015
Not sure if this is related, but this consistently dumps core after 5 iterations of the
whileloop on my machine (Arch Linux, node.js v5.0.0):cjihrig commentedon Nov 15, 2015
@calzoneman I don't think they're related. In your case, the process seems to be running out of memory by continuously pushing to
x.calzoneman commentedon Nov 15, 2015
It's not running out of memory (it crashes after only reaching ~1.1GB rss), I think I've tracked it down to v8 having a length limit on arrays. But you're right, I think it's unrelated.
calzoneman commentedon Nov 27, 2015
Getting this on node v4.2.2 as well, when using
--expose-gc:I'll see if I can dumb it down to a testcase, but it happens very intermittently so I haven't been able to track down what triggers it.
artofspeed commentedon Mar 9, 2016
happens to me too with v4.3.0 and v4.3.2
MylesBorins commentedon Mar 9, 2016
have you tried v4.4.0
artofspeed commentedon Mar 12, 2016
just tried, happened on 4.4.0 as well after 1 day of running
MylesBorins commentedon Apr 15, 2016
@artofspeed do you have a minimal test case?
akobler commentedon Sep 6, 2016
happened here in 4.4.7 - any progress/recommandations so far?
bnoordhuis commentedon Sep 6, 2016
@akobler More info? Any way for us to reproduce?
akobler commentedon Sep 7, 2016
@bnoordhuis Quite seldom, but I observed occasionally a Node crash and got the following line in kern.log:
master kernel: [3644710.877233] traps: node[4114] trap invalid opcode ip:fc9369 sp:7fff8455a4e8 error:0 in node[400000+1383000]
So I just enabled core dumps, unfortunately no deeper insight yet. As you see below, the pattern matches pretty good with other observations in this issue. I deliver stack traces as soon as available.
Some general info:
bnoordhuis commentedon Sep 7, 2016
You could try
gdb --args nodefollowed byinfo symbol 0xfc9369(the ip address) to see which function it belongs to (if any, and assuming it hasn't been mangled by ASLR.)If you don't have gdb installed, try
addr2line -e node fc9369. addr2line is less sophisticated than gdb, though; I think it only looks through the symbol sections, not DWARF debug data.bnoordhuis commentedon Feb 7, 2017
Closing, no real activity in > 1 year. If anyone has a reliable way of reproducing, let me know and I'll reopen.
simonecogno commentedon Feb 28, 2017
I have a similar problem in node 4.8.0. Anyone can give me some direction on how to fix this?
I get the following crash stack trace ocasionally without any apparent pattern:
addaleax commentedon Feb 28, 2017
@simonecogno Can you let us know:
find node_modules -name '*.node')and open a new issue with that information?