Skip to content

gcc-11 builds with --enable-lto cause test segfaults + runtime errors #38501

@mkszuba

Description

@mkszuba
  • Version: 16.0.0, 14.16.1, possibly others
  • Platform: Linux

What steps will reproduce the bug?

  1. Switch active compiler to gcc-11
  2. Build node with --enable-lto
    3a. To reproduce test segfault, run cctest
    3b. To reproduce runtime errors, use this build of node to e.g. compile a recent version of Firefox

How often does it reproduce? Is there a required condition?

Every time.

What is the expected behavior?

Node passes tests and runs correctly.

What do you see instead?

See e.g. https://bugs.gentoo.org/787158

Additional information

Enabling LTO for the same node versions works fine with gcc-10.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues and PRs related to build files or the CI.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions