Skip to content

yarn add segmentation fault #8536

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

Closed
liza-mae opened this issue Jan 5, 2021 · 7 comments
Closed

yarn add segmentation fault #8536

liza-mae opened this issue Jan 5, 2021 · 7 comments

Comments

@liza-mae
Copy link

liza-mae commented Jan 5, 2021

yarn add command is throwing a segmentation fault on RHEL aarch64 platform with node 14.x or 15.x.

Current setup:

Yarn: 1.22.10
Node: 14.15.4
OS:  Linux ip-10-0-0-100.us-west-2.compute.internal 4.18.0-221.el8.aarch64 #1 SMP Thu Jun 25 22:08:25 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
Steps: 
yarn add <<package>>
yarn add v1.22.10
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[-------] 0/7Segmentation fault (core dumped)

Other info:
If I use Ubuntu 20.04 of the same architecture aarch64, it works.
If I switch the node version back to 12.20.1, it works.

@merceyz
Copy link
Member

merceyz commented Jan 6, 2021

Provide a full reproduction please

@liza-mae
Copy link
Author

liza-mae commented Jan 6, 2021

Sure, I am on a VM CentOS 8.3.2011 aarch64 on AWS.

Steps:

export PATH=$PATH:~/node/14.15.3/bin
mkdir yarntest
cd yarntest
yarn init
yarn add colors

Log:

yarn add v1.22.10
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[-] 0/1Segmentation fault (core dumped)

@arcanis
Copy link
Member

arcanis commented Jan 7, 2021

Yarn being exclusively JS, segfaults can't happen under normal circumstances. The problem comes from something in your setup.

@arcanis arcanis closed this as completed Jan 7, 2021
@navono
Copy link

navono commented Jan 8, 2021

@arcanis I'm having the same problem on linux aarch64, is there any way to continue troubleshooting?

@navono
Copy link

navono commented Jan 8, 2021

check this issue.

@jbudz
Copy link

jbudz commented Jan 25, 2021

I was able to reproduce this on an empty repository. Didn't get much from the core dump -

Core was generated by `node /usr/share/yarn/bin/yarn.js add express --save'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000000000d74690 in ?? ()
[Current thread is 1 (LWP 17428)]
(gdb) bt
#0  0x0000000000d74690 in ?? ()
#1  0x0000000000d089bc in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

@liza-mae
Copy link
Author

We would like to re-iterate it is specific to RedHat ARM.

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

No branches or pull requests

5 participants