Skip to content

Parcel Build Crashes Due To Segmentation Faults #7598

@an0nusr

Description

@an0nusr

🐛 bug report

When running Parcel 2.2.1, the build fails with one of several error messages:

  • free(): invalid pointer
  • Segmentation fault
  • free(): double free detected in tcache 2

All of these errors occurred running the exact same command (parcel build) one after the other with no changes to the code.

🎛 Configuration (.babelrc, package.json, cli command)

Package.json:

{
  "name": "furryfont",
  "version": "1.0.0",
  "source": "index.html",
  "browserslist": "> 0.5%, last 2 versions, not dead",
  "author": "anonusr",
  "license": "AGPL-3.0-only",
  "scripts": {
    "start": "parcel",
    "build": "parcel build",
    "deploy": "echo 'furryfont.anonusr.org' > ./dist/CNAME && gh-pages -d dist"
  },
  "devDependencies": {
    "gh-pages": "^3.2.3",
    "parcel": "^2.2.0"
  }
}

🤔 Expected Behavior

Parcel does not crash.

😯 Current Behavior

Parcel crashes. Here is one of the possible errors:

yarn run v1.22.5
$ parcel build --log-level verbose
✨ Built in 1.27s

dist/index.html    5.13 KB    783ms
free(): double free detected in tcache 2
Aborted

💻 Code Sample

The issue is happening for me with this code here: an0nusr/furryfont@7e279a6

The code is pretty simple - there's no modules to bundle - just simple inline js in HTML.

Note: the yarn lockfile in that commit was using Parcel 2.2.0 - the issue occurs in 2.2.1

🌍 Your Environment

Software Version(s)
Parcel 2.2.1
Node v12.22.7
npm/Yarn yarn 1.22.5
Operating System Ubuntu 18.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions