-
Notifications
You must be signed in to change notification settings - Fork 7.3k
OSX 10.8 "Abort trap: 6" #4261
Comments
While doing what?
|
I can tell you that I'm using supervisor and coffeescript. Other than that I don't get any other output other than "Abort trap 6". I do have the same app running on an Ubuntu server and haven't seen the error. |
More details would help.
No. Assertions are run-time sanity checks in the C and C++ code. |
I just ran into this same issue on Mountain Lion, and I am also using Supervisor. The thing to note is that my Node application didn't crash, just the Supervisor wrapper, so I assume Supervisor is what is throwing the error. |
Hm, no follow-up from the OP in over three months. Closing. |
I also was getting this problem, also using Supervisor, just upgraded to v.0.10. This is probably a Supervisor problem indeed. |
@FlySwatter such error can only be the cause of some mishandling in C++ code. I believe it should never be result of plain JS operations (@bnoordhuis correct me if I'm wrong) and supervisor is plain JS. I had once similar issues when using watch functionality on many files, it was permanent on OSX when using Node v0.6.x (exactly same I take it's a Node issue, but still, exact recipe on how to reproduce that (best if smallest possible test case) would be welcome, without that it's nearly impossible to track it down. |
That is correct provided the JS code doesn't mess around with internals (e.g. the _handle property on a net.Socket object). The reported issue is too light on details to act on though. At the very least, we'll need a test case or a (gdb) backtrace. |
This will do it: var intervalId = setInterval(function() {}, 1); Assertion failed: (args.Holder()->InternalFieldCount() > 0), function Unref, file ../src/handle_wrap.cc, line 78. OSX 10.8.2 |
Confirmed, on my side it outputs:
|
Had this happen to me just now. Had an Express server listening and a couple chokidar watches going. |
Test case: var t = setInterval(function() {}, 1); process.nextTick(t.unref); Output: Assertion failed: (args.Holder()->InternalFieldCount() > 0), function Unref, file ../src/handle_wrap.cc, line 78. setInterval() returns a binding layer object. Make it stop doing that, wrap the raw process.binding('timer_wrap').Timer object in a Timeout object. Fixes nodejs#4261.
Test case: var t = setInterval(function() {}, 1); process.nextTick(t.unref); Output: Assertion failed: (args.Holder()->InternalFieldCount() > 0), function Unref, file ../src/handle_wrap.cc, line 78. setInterval() returns a binding layer object. Make it stop doing that, wrap the raw process.binding('timer_wrap').Timer object in a Timeout object. Fixes #4261.
Fixed in 22533c0. |
@bnoordhuis pretty sure you meant to comment, not comment and reopen. :) |
node -v v0.10.9
P.S. not using supervisor |
@kof |
doesn't seem to come any more on 0.10.10 ... |
got it again Assertion failed: (!uv__io_active(&stream->io_watcher, UV__POLLOUT) || !ngx_queue_empty(&stream->write_completed_queue) || !ngx_queue_empty(&stream->write_queue) || stream->shutdown_req != NULL || stream->connect_req != NULL), function uv_read_stop, file ../deps/uv/src/unix/stream.c, line 1329. |
getting it right now, constantly reproducible |
we should do something to nail it as long as it is easy to reproduce |
@kof Can you prepare a good test case, that reproduce that? I believe nobody from Node.js team will try too guess what is happening without that. |
right now its a running application with all its dependencies, I can try to track down by commenting line by line out, I just thought somebody can propose a faster approach. |
@kof I think there's no faster approach :) |
+1 while using Grunt and leaving it overnight. |
+1 while using express / webpack |
+1 express / webpack |
+1 webpack |
Seeing this on |
node 4.3.1, Mac OS X 10.11.3, express 4.13.3, not using webpack. Regularly get Abort trap: 6, about 50% of the time the underlying app keeps running and I have to kill it, 50% it dies. This has been consistent across upgrades of node from 10.x and OS X 10.9, 10.10 and earlier 10.11s, and express 4.x. I don't see this on my ubuntu production system running the same versions of node, express etc. |
@daviwil2 Is this reported to https://github.com/nodejs/node? Are you using any native modules? |
Not reported no. Happy to do that if wanted. Native modules, as in extensions to node/V8 written in C++? No, not using any - just standard JS components added via npm. |
+1 Happens often while running This is what I usually see:
Running it using
And I have ESLint setup as a |
+1
Aborts after some time. |
+1 here as well, same error/OS as @nitruxa with node 6.1.0 Usually happens after I leave the dev machine for a while and I bring it out of screensaver. |
I'm seeing this in node 6.1.0 on El Capitan, with the following pe process.versions:
|
@cv may I ask you to do this? brew install llnode
ulimit -c unlimited
node aborting-script.js
ulimit -c 0
lldb -c /cores/*
# Once in lldb
v8 bt |
I experienced this error message after switching to Node 0.6, I'm not sure it's the exact same issue (see nodejs/node#6563) but it has been fixed for me. Until Node updates its libuv dependency, I made a branch with the fix rebased on node 0.6.x that I used with |
Seeing it also / still on
|
@sspilleman can you please open an issue at https://github.com/nodejs/node with some more information? A script to reproduce this would be fantastic. Thanks! |
I'm getting similar errors:
The culprit line in my node js app seems to be:
The script itself is:
version info: Jeffs-WebTesting-MacBook-Pro:tests test$ npm -g ls -depth=0 node version: 4.4.3 Verified that I can run the jasmine tests from the command line via runTests.sh without error. |
I'm getting the same error with webpack 1.13.1 and node 6:
|
Any chance anyone could get a core file by running |
BTW, haven't seen this issue reoccurring since a recent upgrade. |
@indutny I managed to prepare a nice, 2GB core dump when the issue occured. I was running an express server with the webpack middleware. I'm on OS X 10.11.6.
I looked at it and, from my very limited understanding, the only thing that I think might be relevant is this backtrace:
Please contact me if you need the core file or any other details. |
Any update on this crash. ???
|
@karna41317 I have the same issue with you. process.versions same as yours. |
+1 |
Still have this issue while using BrowserSync |
@yilinglu please raise an issue with the browsersync module, or in nodejs/node if you think it's a problem with Node itself. This repo is archived and not maintained. |
I got same issue when updated node/npm to last and not restarted angular2 in terminal. That happened after 10 minutes (mb no sense in interval). |
+1 running express/webpack, El Capitan { http_parser: '2.7.0',
node: '7.7.2',
v8: '5.5.372.41',
uv: '1.11.0',
zlib: '1.2.11',
ares: '1.10.1-DEV',
modules: '51',
openssl: '1.0.2k',
icu: '58.2',
unicode: '9.0',
cldr: '30.0.3',
tz: '2016j' } |
This repo is archived and not maintained. Please raise an issue with the module, or in nodejs/node if you think it's a problem with Node itself. |
Node crashes at random interval with an "Abort trap: 6" in OSX Mountain Lion (10.8.2)
The text was updated successfully, but these errors were encountered: