-
Notifications
You must be signed in to change notification settings - Fork 100
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
Session is not tied by lifetime to the environment => easy segfaults #42
Comments
Thanks for reporting! I can confirm this issue on 32e9935. It's weird because An environment is a wrapper over the singleton: This was done to have a single environment per process. This was done because the environment was not (completely) threadsafe: having a logging manager would break the safety. See #18. Since the PR was merged an released, I could revisit how environment and sessions are created, fixing #38 at the same time... |
The crate is meant to be safe, but here's one super easy way to segfault it.
Instead of writing
write this
It's not immediately unclear that you're doing something evil here in the safe code, and it compiles just fine - and then segfaults.
The text was updated successfully, but these errors were encountered: