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

GC Seg fault #48

Closed
raghur opened this issue Sep 24, 2018 · 6 comments
Closed

GC Seg fault #48

raghur opened this issue Sep 24, 2018 · 6 comments

Comments

@raghur
Copy link

raghur commented Sep 24, 2018

So I wrote a small module and then when I call it from python, it works fine if it's just a single call.

OTOH, if I call it in a loop - even say just 100 times, then after the 20th time there's a crash [on windows, the debug window opens, on linux I get a message about the GC]

I also tried building with --gc:none and in this case, the program completes successfully.

Are there guidelines/dos & donts in terms of what data can be returned from nim?

Happy to share code if you want to drop me an email at raghu dot nospam at gmail

@yglukhov
Copy link
Owner

Do you happen to use the non-devel version of nim that doesn't have this patch yet? nim-lang/Nim#7885

@raghur
Copy link
Author

raghur commented Sep 24, 2018

Yes - I'm on nim 0.18 - Nim Compiler Version 0.18.0 [Windows: amd64]

Should I try the devel version?

@yglukhov
Copy link
Owner

Yes please

@yglukhov
Copy link
Owner

I assume that nails it. If not, feel free to reopen.

@raghur
Copy link
Author

raghur commented Sep 25, 2018

Works with the dev build without issues. Thanks!
Probably a good idea to put that on the README?

@yglukhov
Copy link
Owner

Kinda duplicate of #11

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

2 participants