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

Resolve construction core dump #39

Closed
g302ge opened this issue Aug 3, 2023 · 4 comments
Closed

Resolve construction core dump #39

g302ge opened this issue Aug 3, 2023 · 4 comments

Comments

@g302ge
Copy link

g302ge commented Aug 3, 2023

if some class constructor cause some nullptr exception caused core dump. How to resolve this at

slot.construct(std::forward<Args>(args)...);

@rigtorp
Copy link
Owner

rigtorp commented Aug 26, 2023 via email

@g302ge
Copy link
Author

g302ge commented Aug 30, 2023

Thx for your reply. But in my view, the constructor must not be noexcept is a very strong safety for the lock free situation. In other words the constructor or some code in the critical section like constructor in this case should be more atomic as they can do. if this view is correct ?

@rigtorp
Copy link
Owner

rigtorp commented Sep 12, 2023 via email

@g302ge
Copy link
Author

g302ge commented Sep 12, 2023

thx for your reply , I have fix my variant version in a safe situation

@g302ge g302ge closed this as completed Sep 12, 2023
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