You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mempler opened this issue
Jun 6, 2023
· 1 comment
· Fixed by #112345
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)C-bugCategory: This is a bug.I-hangIssue: The compiler never terminates, due to infinite loops, deadlock, livelock, etc.
Noratrieb
changed the title
A simple macro with "///" causes a memory leak
A simple macro with "///" hangs
Jun 6, 2023
Noratrieb
added
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
I-hang
Issue: The compiler never terminates, due to infinite loops, deadlock, livelock, etc.
labels
Jun 6, 2023
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)C-bugCategory: This is a bug.I-hangIssue: The compiler never terminates, due to infinite loops, deadlock, livelock, etc.
Code:
Here are some playground links at which it also doesn't compile. (also does not work on
release
)Playground (2021; stable; debug)
Playground (2021; nightly; debug)
Steps to reproduce
memory_leak.rs
rustc memory_leak.rs
Expected Behavior:
Raise an
repetition matches empty token tree
compiler error, like a normal comment would, as an example:What happened:
It entered an infinite loop and allocated infinite amount of memory. I have 16 GB of ram and 8 GB swap, at one point it got killed by the oom killer.
Meta
rustc --version --verbose
:No backtrace available, as it gets killed by the oom killer
The text was updated successfully, but these errors were encountered: