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

Command failed with signal "SIGSEGV" & segmentation fault #37246

Closed
2 tasks done
yesh opened this issue Dec 13, 2022 · 13 comments
Closed
2 tasks done

Command failed with signal "SIGSEGV" & segmentation fault #37246

yesh opened this issue Dec 13, 2022 · 13 comments
Labels
status: confirmed Issue with steps to reproduce the bug that’s been verified by at least one reviewer. topic: core Relates to Gatsby's core (e.g. page loading, reporter, state machine) type: bug An issue or pull request relating to a bug in Gatsby

Comments

@yesh
Copy link

yesh commented Dec 13, 2022

Preliminary Checks

Description

After updating all gatsby packages to the latest 5.3.0 version, yarn dev and yarn build both throw the error:

error Command failed with signal "SIGSEGV".

gatsby develop and gatsby build both throw the error:

[1] 12714 segmentation fault gatsby develop
[1] 12739 segmentation fault gatsby build

with the 5.2.0 version everything worked flawlessly.
I also tried deleting and rebuilding the node_modules folder with no success.

Reproduction link

Suggested reproduction services are not working because of Node 18 requirement.
The issue can be hardware related for m1 / arm architecture cpus.

Steps to Reproduce

  • npx gatsby new errortest
  • cd errortest
  • npm upgrade
  • gatsby develop

Expected Result

running or building

Actual Result

Screenshot 2022-12-13 at 16 00 57

Screenshot 2022-12-13 at 16 10 15

Environment

System:
    OS: macOS 13.0.1
    CPU: (8) arm64 Apple M1 Pro
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.12.1 - ~/.nvm/versions/node/v18.12.1/bin/node
    Yarn: 1.22.19 - ~/.yarn/bin/yarn
    npm: 8.19.2 - ~/.nvm/versions/node/v18.12.1/bin/npm
  Browsers:
    Chrome: 108.0.5359.98
    Edge: 102.0.1245.44
    Firefox: 107.0.1
    Safari: 16.1
  npmPackages:
    gatsby: ^5.2.0 => 5.3.0 
    gatsby-plugin-image: ^3.2.0 => 3.3.0 
    gatsby-plugin-postcss: ^6.2.0 => 6.3.0 
    gatsby-plugin-react-helmet: ^6.2.0 => 6.3.0 
    gatsby-plugin-robots-txt: ^1.8.0 => 1.8.0 
    gatsby-plugin-sharp: ^5.2.0 => 5.3.0 
    gatsby-plugin-sitemap: ^6.2.0 => 6.3.0 
    gatsby-source-contentful: ^8.2.0 => 8.3.0 
    gatsby-source-filesystem: ^5.2.0 => 5.3.0 
    gatsby-transformer-sharp: ^5.2.0 => 5.3.0 
  npmGlobalPackages:
    gatsby-cli: 5.3.0

Config Flags

No response

@yesh yesh added the type: bug An issue or pull request relating to a bug in Gatsby label Dec 13, 2022
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Dec 13, 2022
@LekoArts
Copy link
Contributor

Hi!

Sorry to hear you're running into an issue. To help us best begin debugging the underlying cause, it is incredibly helpful if you're able to create a minimal reproduction. This is a simplified example of the issue that makes it clear and obvious what the issue is and how we can begin to debug it.

If you're up for it, we'd very much appreciate if you could provide a minimal reproduction and we'll be able to take another look.

Thanks for using Gatsby! 💜

@LekoArts LekoArts added status: needs reproduction This issue needs a simplified reproduction of the bug for further troubleshooting. and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Dec 13, 2022
@denisgoryaynov
Copy link

I am also having the same issue after upgrading to 5.3.0, I tried creating a new project using the default starter and then updating the versions to 5.3.0 and the problem still happens:
npx gatsby new test https://github.com/gatsbyjs/gatsby-starter-default

This is my system information:

System:
    OS: macOS 13.0.1
    CPU: (8) arm64 Apple M1
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.12.1 - ~/.nvm/versions/node/v18.12.1/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v18.12.1/bin/yarn
    npm: 9.2.0 - ~/.nvm/versions/node/v18.12.1/bin/npm
  Browsers:
    Chrome: 108.0.5359.98
    Safari: 16.1
  npmPackages:
    gatsby: ^5.3.0 => 5.3.0
    gatsby-plugin-image: ^3.3.0 => 3.3.0
    gatsby-plugin-manifest: ^5.3.0 => 5.3.0
    gatsby-plugin-sharp: ^5.3.0 => 5.3.0
    gatsby-source-filesystem: ^5.3.0 => 5.3.0
    gatsby-transformer-sharp: ^5.3.0 => 5.3.0

@OPITOs
Copy link

OPITOs commented Dec 13, 2022

npx gatsby new test https://github.com/gatsbyjs/gatsby-starter-default
and updating to 5.3.0

on Windows

We encountered an error while trying to load your site's gatsby-config. Please fix the error and try again.
Error: Only URLs with a scheme in: file, data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'

@yesh
Copy link
Author

yesh commented Dec 13, 2022

Hi!

Sorry to hear you're running into an issue. To help us best begin debugging the underlying cause, it is incredibly helpful if you're able to create a minimal reproduction. This is a simplified example of the issue that makes it clear and obvious what the issue is and how we can begin to debug it.

If you're up for it, we'd very much appreciate if you could provide a minimal reproduction and we'll be able to take another look.

Thanks for using Gatsby! 💜

I don't think a reproduction is necessary or useful, from checking around is possible the issue is related to apple m1 / arm architecture.
anyway you can test it with:

  • npx gatsby new errortest
  • cd errortest
  • npm upgrade
  • gatsby develop

@lezan

This comment was marked as off-topic.

@chmielulu

This comment was marked as duplicate.

@theiawolfe

This comment was marked as duplicate.

@petrpacas

This comment was marked as duplicate.

1 similar comment
@labnol

This comment was marked as duplicate.

@LekoArts
Copy link
Contributor

LekoArts commented Dec 14, 2022

Sorry for the inconveniences this is causing, we'll look into it today and rollout a fix. About the Windows issue, please go to #37251

Sidenote: Please don’t comment „+1“, GitHub has an emoji reaction system

@LekoArts LekoArts added status: confirmed Issue with steps to reproduce the bug that’s been verified by at least one reviewer. topic: TypeScript Issues and PRs related to TS in general, public typings or gatsby-plugin-typescript topic: core Relates to Gatsby's core (e.g. page loading, reporter, state machine) and removed status: needs reproduction This issue needs a simplified reproduction of the bug for further troubleshooting. topic: TypeScript Issues and PRs related to TS in general, public typings or gatsby-plugin-typescript labels Dec 14, 2022
@LekoArts
Copy link
Contributor

LekoArts commented Dec 14, 2022

We're pretty sure that the lmdb upgrade is the cause and have prepared a PR to revert that commit: #37255

Also it seems to only happen on Mac, we couldn't reproduce on WSL or Windows.

Once merged we'll test that it resolves it (on all platforms) and then backport as 5.3.1

@LekoArts
Copy link
Contributor

I opened kriszyp/lmdb-js#206 to hopefully get to the bottom of this 👍 The revert PR is merged and in our testing it works again, so we'll release 5.3.1 shortly.

@LekoArts
Copy link
Contributor

Fixed in gatsby@5.3.1 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: confirmed Issue with steps to reproduce the bug that’s been verified by at least one reviewer. topic: core Relates to Gatsby's core (e.g. page loading, reporter, state machine) type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

9 participants