-
Notifications
You must be signed in to change notification settings - Fork 42
Bug : segmentation fault #31
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
Comments
If i run on my local machine i get output:
|
I've had a go at fixing this. I'm not convinced the changes to |
First bug is use of |
@krzysztof-jusiak any ideas ? |
I think i've fixed the library. But it definitely isn't polished. Here is a godbolt link |
nice @pfeatherstone 🗜️ Could you create a PR, please? thanks |
@krzysztof-jusiak Yes no problem |
Solved |
Expected Behavior
We expect the following to work.
Actual Behavior
We get a segmentation fault.
It breaks when using
local_storage
and using move semantics.The library just moves or swaps the underlying pointers. That won't work. Explicit move constructors MUST be called.
So I believe
void_ptr
should be upgraded to include:Steps to Reproduce the Problem
Run the godbolt link.
Specifications
Run on any system and it will break.
The text was updated successfully, but these errors were encountered: