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

Multiple crashes when compiling javascript/typescript files #9213

Open
qarmin opened this issue Jul 11, 2024 · 0 comments
Open

Multiple crashes when compiling javascript/typescript files #9213

qarmin opened this issue Jul 11, 2024 · 0 comments

Comments

@qarmin
Copy link

qarmin commented Jul 11, 2024

Describe the bug

Using swc compile on this files
Untitled Folder.zip
More files
REPORTS___SWC___LONG_1.zip

causes several crashes/timeouts like

timeout: the monitored command dumped core
thread 'main' panicked at crates/swc_ecma_compat_es2015/src/destructuring.rs:1165:44:
called `Option::unwrap()` on a `None` value
thread 'main' panicked at /home/runner/work/Automated-Fuzzer/Automated-Fuzzer/swc-main/crates/swc_common/src/source_map.rs:662:60:
byte index 6 is not a char boundary; it is inside '\u{feff}' (bytes 4..7) of `void#!shßpublicb`
thread 'main' panicked at crates/swc_ecma_compat_es2021/src/logical_assignments.rs:155:50:
called `Result::unwrap()` on an `Err` value: Invalid(Invalid { span: 0..0#0 })
thread 'main' panicked at crates/swc_ecma_compat_es2015/src/destructuring.rs:409:52:
internal error: entered unreachable code: Object rest pattern should be removed by es2018::object_rest_spread pass

Input code

No response

Config

No response

Playground link (or link to the minimal reproduction)

https://play.swc.rs/?version=1.6.8-nightly-20240706.1&code=H4sIAAAAAAAAAytLLFKoVrA0MDA3tLQ0MjUxNzGwtDTMs1LILFGoVbDFLmeoUGsNAF7PY0A5AAAA&config=H4sIAAAAAAAAA42VS47bMAyG93OKwOtZtIsCgx6gu55BUCzKUSqJhkhlEgxy99KKnUkntNFNEPPjw6R%2Byh8vu113pL77ufuQv%2FIw2kJQ7s9ioUtmexZLB32y1Jcwcve60CNNiEuFZrneQMe2DMAtiH7M3l1EJJi9Z1MKOfjLY7ke01iA6MEmVklXE2SezN5GgtdHVvCd%2Fsnb7HvECDZvEGPJhMwwQNES9xijHQnMyRYly%2FSmtgRCrcQEK4MzY8FR5dkFDpil5jN1YJ3p0YGCQoGewwm0MKklYZmkPaWfhh3s6zC0I%2F4SDScbq2WlJpzbkcjbKlkPGIiNr1kb4Q2uzOAG5%2BF%2BjQzeFOBa8nPcEUNeOZM%2FADKBaImyTaDlbR5e9LQW7TcjQ%2FYiWb4oXOStdZlhkKGaELwy2WkyUDhop1nA1R6myfba68x4ZXwUHBjwXrSipKb3wP1BK8qXEdArQM7Xek1VN2DuW7jCp4XYwL%2BkS9YFNnsky4d1Spe0x7hRIAEf0G04yFEwruMit8R5XOc1OxBpgFNdKjXwfAnIAjCa2O7KJ23IekhGM0Tcf14Ts8P1fgUnm4e27w%2F3JeMY4QRxTcb%2FsSKbVN7tNKl62eyn7YU3TZRWFi98%2F7agpZWX5bc11SV09aGhpsnpUyISSpiP1H16Lp%2BPZXRdoN9L9K3E9S9CLntR5AYAAA%3D%3D

SWC Info output

No response

Expected behavior

No crashes

Actual behavior

No response

Version

https://github.com/swc-project/swc/commit/ da9844b

Additional context

No response

@qarmin qarmin added the C-bug label Jul 11, 2024
@kdy1 kdy1 added this to the Planned milestone Jul 11, 2024
@kdy1 kdy1 self-assigned this Jul 11, 2024
kdy1 pushed a commit that referenced this issue Jul 12, 2024
@kdy1 kdy1 removed their assignment Jul 22, 2024
@kdy1 kdy1 modified the milestones: Planned, Planned (Low priority) Aug 15, 2024
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