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

Infinite loop / memory leak #229

Open
auxym opened this issue Jan 9, 2022 · 0 comments
Open

Infinite loop / memory leak #229

auxym opened this issue Jan 9, 2022 · 0 comments

Comments

@auxym
Copy link

auxym commented Jan 9, 2022

Repro:

  1. Clone this repository: https://github.com/hathach/tinyusb
  2. In the root, run c2nim --header --nep1 --skipinclude --skipcomments src/class/hid/hid.h

On my laptop, with c2nim v0.9.18, this never seems to stop running, and after a couple minutes, it's up to multiple GBs of memory use, the system is paging, and c2nim slows to a crawl (at which point I kill it).

Warning: the entire library is a huge soup of macros.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant