-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Segmentation file on parcel build when png file is included #7408
Comments
I am unable to reproduce the segfault on linux using 2.0.0-nightly.945 and node v16.13.1. I have not tried the 2.0.1 release or node v14.x. |
@plynchnlm can you run |
$ getconf GNU_LIBC_VERSION |
Thanks. I've reduced this to a bug in Rust, combined with a bug in glibc. It is fixed in newer versions, but it is impossible to upgrade on CentOS 7 without upgrading the whole OS. I'm hoping the bug in Rust can be fixed to support older glibc versions. In the meantime, I am trying to find a workaround. See rust-lang/rust#91979. |
🐛 bug report
parcel build consistently produces a segmentation fault when I build my app. It produces working files, so I can still use it, but instead of a normal exit it seg faults.
I narrowed down the cause to a single png file. If I build an HTML file which has nothing except an img tag for that png, I get a seg fault.
🎛 Configuration (.babelrc, package.json, cli command)
I don't have any babel configuration files. I am running "parcel build .tmp/test.html", to run on my test file, so I think that ignores package.json (at least the source section).
🤔 Expected Behavior
The build should exit normally.
😯 Current Behavior
$ parcel build .tmp/test.html
✨ Built in 655ms
dist/test.html 126 B 224ms
dist/doctor.30144a06.png 425 B 73ms
Segmentation fault
🔦 Context
Typically when writing deployment scripts, one checks the exit status of the build before proceeding. Because of the seg fault, I am not able to determine from the exit status that the build succeeded.
💻 Code Sample
My test.html file just has:
The docotr.png is this one: https://github.com/lhncbc/lforms-fhir-app/blob/master/app/assets/images/doctor.png
🌍 Your Environment
The text was updated successfully, but these errors were encountered: