-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
process._tickCallback - tock is undefined #6346
Comments
@bnoordhuis - FYI, I thought I'd raise an issue for that bug we chatted about |
I've not been able to reproduce the issue myself so far but I suspect a V8 bug. Do you still see the issue with |
✅
|
@nodejs/v8 Ideas? I remember there was a similar bug a few months back but the details elude me. |
@dnwe may I ask you to run it with |
@indutny @bnoordhuis : just in case it is useful, here is a xz compressed core file (3.7M) from
|
@dnakamura sorry for delay! I'm trying to figure out similar bug at the moment. May I ask you to give it a spin with |
@indutny sure, I'll run that for you tmrw. We believe the underlying cause /may/ have been related to callbacks we were making to js logger from within destructors in our C++ add-on. After removing those I haven't been able to reproduce again. |
@dnwe thank you! That's pretty interesting finding. However similar thing appears to be happening in node-spdy, which doesn't use any native addons. Either these are two unrelated bugs, or they are a manifestation of the same bug. |
Anyway here is a v8 bug: https://bugs.chromium.org/p/v8/issues/detail?id=5009 |
hi, guys, what about this bug now |
@indutny Did you get around to back-porting the fix? Maybe I'll take a stab at it if you haven't. I remember looking into it in July and concluding it would have to be redone from scratch for v4.x because the code bases had diverged too much. |
@bnoordhuis yeah, it would be pretty hard to do it. I never got around to back-port it. Will give it another try tomorrow, if you won't hear anything from me until Monday - feel free to take it over from me. |
@indutny Any luck? Mind if I have a go? |
Last weak, node-v4.8.1 released, but I find nothing about this bug in the commits |
I’m not sure what the chances of this getting fixed are as long as there’s no reproduction or other kind of information that helps debug the problem available. |
Is it correct to say that the bug has been observed in 4.x but that the most recent releases of the Node.js 6.x and 8.x lines are believed to be unaffected? |
@Trott Correct. The fix for v8:5009 is almost certainly applicable to v4.x because when you prep Back-porting is a heck of a lot of work though and will need careful review. |
@bnoordhuis would you like for this to remain open? v4.x is almost near EOL and it doesn't seems like there's anyone that has both the expertise and the time + willingness required to back-port this. I will close as |
I guess this isn't going to happen. I'll close it out. |
TL;DR the same issue that someone else previously reported in #4308 (and closed), but with a reduced testcase.
Several of our customers are seeing this after moving from Node 0.12.x to node 4.x.x. The issue appears to be readily reproducible for me on Node 4.x.x (both 4.3.1 and 4.4.3 tested) using the example app here against an mqlight backend, but appears to be "fixed" on Node 5.10.1. Essentially, after some period of the app running,
tickInfo[kLength]
seems to have got out of sync and is greater-thannextTickQueue.length
- hence tock ends up being undefined.Further debugging on 4.3.1 /seemed/ to indicate that the issue occurred in
nextTick
, after pushing thenew TickObject
nextTickQueue.length
was 0 (descoped?), buttickInfo[kLength]
was incremented regardless and hence they became out of step.Applying this patch to
src/node.js
and re-building seemed to fix the issue for me...but I can't explain why.The text was updated successfully, but these errors were encountered: