-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
refactor: prevent extra move for get-methods with nrvo #73
refactor: prevent extra move for get-methods with nrvo #73
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. If you could please address the build issues, that would be great.
sorry, i am not able to compile it locally |
Ok looks like some tests are failing. I'll have to investigate a bit more if you can't build it locally. |
I tried it on my home ubuntu 22.04 with gcc-11. Everything is fine, it is not possible to reproduce the crash. |
@jirol9xa Unfortunately, this is the nature of something as low level as a thread pool. Even if it's no locally reproducible, it is still likely a bug somewhere. Were you able to run it with thread sanitizer enabled and/or asan? |
I'll try this out later on on PopOS and Ubuntu 24.04 to see if it's reproducible. |
Tried to run with tsan, and had an error even if running from trunk =)) Pretty sure I am doing something wrong |
Oh no, there might be a bug then. What error do you see? |
CMake Error at /home/voffk4/fast-thread-pool/build/_deps/doctest-src/scripts/cmake/doctestAddTests.cmake:45 (message):
|
I was able to reproduce this. https://stackoverflow.com/questions/77850769/fatal-threadsanitizer-unexpected-memory-mapping-when-running-on-linux-kernels this stackoverflow helped me find a workaround. Setting |
Welp, I re-ran the test and it passed this time 🤷♂️ |
Motivation https://godbolt.org/z/jTd99xzf1