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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

<style> causes SIGSEGV aka. Segmentation fault on Oracle Linux Server 7.9 with Parcel 2 #8311

Closed
mathieucaroff opened this issue Jul 15, 2022 · 5 comments
Labels
Stale Inactive issues

Comments

@mathieucaroff
Copy link

馃悰 bug report

I'm trying to build my web page on Linux and I get a SIGSEGV error. The error does not occur on Windows.

馃帥 Configuration (.babelrc, package.json, cli command)

opc@ina:~/minimal2 0b1$ ls -la
total 88
drwxrwxr-x.  5 opc opc  4096 Jul 15 19:31 .
drwx------. 29 opc opc  4096 Jul 15 19:31 ..
drwxrwxr-x.  2 opc opc    24 Jul 15 19:32 dist
-rw-rw-r--.  1 opc opc    96 Jul 15 19:31 index.html
drwxrwxr-x. 99 opc opc  4096 Jul 15 19:26 node_modules
-rw-rw-r--.  1 opc opc   115 Jul 15 19:29 package.json
drwxrwxr-x.  2 opc opc  4096 Jul 15 19:32 .parcel-cache
-rw-rw-r--.  1 opc opc 64763 Jul 15 19:26 yarn.lock
opc@ina:~/minimal2 0b1$ cat package.json
{
  "name": "minimal2",
  "version": "1.0.0",
  "license": "MIT",
  "dependencies": {
    "parcel": "^2.6.2"
  }
}
opc@ina:~/minimal2 0b1$ cat index.html
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
    <style>
    </style>
</body>
</html>

Please note the <style> element in index.html. Its presence causes the bug.

馃 Expected Behavior

The project should build and exit with code 0, marking success.

馃槸 Current Behavior

The projects builds but an error occurs at the end and it exits with a non-zero code, marking failure.

馃敠 Context

This makes my automatic deployment script fail.

馃捇 Code Sample

Here is a gist, in case you need the yarn.lock file:

https://gist.github.com/mathieucaroff/907232cbe512f3ccca5ce687266884d7

馃實 Your Environment

Note: the problem occurs with both package managers. With yarn it is "SIGSEGV" with npm, it is "Segmentation fault (core dumped)".

Software Version(s)
Parcel 2.6.2
Node v14.15.0
npm 6.14.8
yarn 1.22.10
Operating System Oracle Linux Server 7.9
Kernel 4.14.35-1902.306.2.el7uek.x86_64 #2 SMP Fri Aug 28 14:42:11 PDT 2020 x86_64
@mathieucaroff
Copy link
Author

The bug also occurs with node v16.16.0

@mathieucaroff
Copy link
Author

mathieucaroff commented Jul 17, 2022

Downgrading parcel to 2.6.0, 2.5.0 or even 2.0.0 does not affect the issue.

@mathieucaroff mathieucaroff changed the title <style> causes SIGSEGV aka. Segmentation fault on Oracle Linux Server 7.9 with Parcel 2.6.2 <style> causes SIGSEGV aka. Segmentation fault on Oracle Linux Server 7.9 with Parcel 2 Jul 17, 2022
@mischnic
Copy link
Member

The empty style element makes it sound like #7995 but for CSS instead of JS assets with no content.

@github-actions github-actions bot added the Stale Inactive issues label Jan 14, 2023
@mathieucaroff
Copy link
Author

mathieucaroff commented Jan 14, 2023

This problem still affects me. I need to check if it is still present in newer versions of Parcel though.

@github-actions github-actions bot removed the Stale Inactive issues label Jan 14, 2023
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs.

@github-actions github-actions bot added the Stale Inactive issues label Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale Inactive issues
Projects
None yet
Development

No branches or pull requests

2 participants