Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Fix for failure in fatal error (OOM) test #16

Closed
wants to merge 1 commit into from
Closed

Fix for failure in fatal error (OOM) test #16

wants to merge 1 commit into from

Conversation

rnchamberlain
Copy link
Contributor

Fix for #12

On v6.9.1 we get a second OOM in v8 if we call the v8 stacktrace API in the fatal error (OOM) scenario. It worked OK on v6.3.0. Fix is to remove the call for now, for the fatal error (OOM) scenario. There was an additional check to avoid the call if we failed actually inside GC, this is also removed as it is now redundant.

This means we won't provide a JS stacktrace in the NodeReport for this particular scenario. The v8 stderr output does show a single JS frame, so we may be able to obtain that for nodereport via another route at some point. Alternatively we can investigate why the v8 API is failing and see if that can be improved.

On v6.9.1 we get a second OOM in v8 if we call the stacktrace API
in the fatal error (OOM) scenario. It worked OK on v6.3.0. Fix
is to remove the call for now. This means we won't provide a JS
stacktrace in the NodeReport for this particular scenario. The v8
stderr output does show a single JS frame, so we may be able to
obtain that for nodereport via another route at some point.
This was referenced Nov 3, 2016
@mhdawson
Copy link
Member

mhdawson commented Nov 4, 2016

While I agree that investigating to see if we can provide a stack trace, this change seems reasonable so that we don't have test failures and then we can add back what is necessary when/if we can provide the stack trace.

@mhdawson mhdawson self-assigned this Nov 8, 2016
@mhdawson
Copy link
Member

mhdawson commented Nov 8, 2016

Unless there are objections before then will plan to land tomorrow.

@richardlau
Copy link
Member

No objections here. Be good to get the tests passing 😄

mhdawson pushed a commit that referenced this pull request Nov 9, 2016
On v6.9.1 we get a second OOM in v8 if we call the stacktrace API
in the fatal error (OOM) scenario. It worked OK on v6.3.0. Fix
is to remove the call for now. This means we won't provide a JS
stacktrace in the NodeReport for this particular scenario. The v8
stderr output does show a single JS frame, so we may be able to
obtain that for nodereport via another route at some point.

PR-URL: #16
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@mhdawson
Copy link
Member

mhdawson commented Nov 9, 2016

Landed as 94a1125

@mhdawson mhdawson closed this Nov 9, 2016
@rnchamberlain rnchamberlain deleted the jsstacktrace-oom branch November 10, 2016 10:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants