Skip to content
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

Fix hang in debug builds / don't strip debug builds #63

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

bnoordhuis
Copy link
Collaborator

The patch is nodejs/node#55274

This is a partial cherry-pick of upstream commit v8/v8@8953e49478.

Shows up in debug builds because of a buggy sanity check when computing
relationships between command line flags.

Example of the hang:

    #include "v8.h"
    #include "libplatform/libplatform.h"
    int main(void) {
      // works: v8::V8::SetFlagsFromString("--gc-global --noincremental-marking");
      v8::V8::SetFlagsFromString("--gc-global");
      v8::V8::SetFlagsFromString("--noincremental-marking");
      v8::V8::InitializePlatform(v8::platform::NewDefaultPlatform().release());
      v8::V8::Initialize(); // hangs in ComputeFlagListHash when defined(DEBUG)
    }
Words cannot describe the rage one feels when you wait 30 minutes for
a debug build to compile, only to find out it's been stripped of actual
debug symbols.
@bnoordhuis bnoordhuis merged commit fde85c5 into rubyjs:node-22 Oct 7, 2024
24 checks passed
@bnoordhuis bnoordhuis deleted the fixes branch October 7, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant