-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Diagnostic report does not report javascriptStack - making it essentially useless #34896
Labels
invalid
Issues and PRs that are invalid.
Comments
That's the expected behavior if you send the signal when it's waiting for the timer to expire because at that point there is indeed no JS stack trace - control has returned to the event loop and Node.js suspends itself until the timer expires. I can go into more detail if it's still unclear to you but I'm closing this as not-a-bug. |
This was referenced May 27, 2022
This was referenced Sep 29, 2022
This was referenced Oct 5, 2022
This was referenced Oct 8, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What steps will reproduce the bug?
Here's a sample program I wrote to repro the issue.
Running this with
View the report file.
How often does it reproduce? Is there a required condition?
Reproduce every time.
What is the expected behavior?
I tested the same program with Node 10 + node-report. A stack trace is reported.
What do you see instead?
Additional information
Note that this is not a consistent behavior - sometimes node 10 also reports No stack trace, but I've repeatedly tested Node 12 and no stack trace is reported, ever (after about seeing 40 reports). This is definitely a better way to reproduce this, but I do believe there's a pattern here. The example above is for demonstration purpose. This also applies with a real world express application.
Without the javascriptStack, it renders the diagnostic report useless - Basically all other info can be obtained easily and not as useful for debugging.
Let me know if any further info is needed. I believe this is a high-pri breakage on a major feature.
The text was updated successfully, but these errors were encountered: