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

Configuring spack with an array leads to Node OOM (heap) #1762

Open
tmpfs opened this issue May 28, 2021 · 0 comments
Open

Configuring spack with an array leads to Node OOM (heap) #1762

tmpfs opened this issue May 28, 2021 · 0 comments
Labels

Comments

@tmpfs
Copy link
Contributor

tmpfs commented May 28, 2021

Describe the bug

Passing an array to config from @swc/core/spack in spack.config.js makes the process hang and eventually leads to an OOM error.

Input code

MVP repository with example stack traces:

https://github.com/tmpfs/spack-array-config-bug

Config

See the MVP repository.

Expected behavior

I expect spack to respect multiple entry points when an array is given.

Version
The version of @swc/core: 1.2.58

Additional context

It looks like arrays should be supported according to the type definition here: https://github.com/swc-project/swc/blob/master/node-swc/src/spack.ts#L5 but I may be mis-interpreting the code.

@tmpfs tmpfs added the C-bug label May 28, 2021
@kdy1 kdy1 modified the milestones: v1.2.59, v1.2.60 May 28, 2021
@kdy1 kdy1 modified the milestones: v1.2.60, v1.2.61 Jun 7, 2021
@kdy1 kdy1 modified the milestones: v1.2.61, v1.2.62 Jun 16, 2021
@kdy1 kdy1 modified the milestones: v1.2.62, v1.2.63 Jun 27, 2021
@kdy1 kdy1 self-assigned this Jun 30, 2021
@kdy1 kdy1 modified the milestones: v1.2.63, v1.2.64 Jul 5, 2021
@kdy1 kdy1 removed their assignment Jul 9, 2021
@kdy1 kdy1 modified the milestones: v1.2.64, v1.2.65, v1.2.66, v1.2.67 Jul 13, 2021
@kdy1 kdy1 modified the milestones: v1.2.67, v1.2.68, v1.2.72, v1.2.73, v1.2.74 Jul 31, 2021
@kdy1 kdy1 modified the milestones: v1.2.136, v1.2.137 Jan 27, 2022
@kdy1 kdy1 modified the milestones: v1.2.137, v1.2.138, v1.2.139, v1.2.140 Feb 7, 2022
@kdy1 kdy1 modified the milestones: v1.2.148, v1.2.149, v1.2.150 Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants