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
Revert "Revert "Feature/remove needless id lookup"" #460
Revert "Revert "Feature/remove needless id lookup"" #460
Conversation
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
9c0dca1
to
c8b6b74
Compare
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
@mgovers can you elaborate the problem here? |
I am still digging further into it, but the Steffan mentioned that on virtual devices (e.g. a container) even the stack memory is not necessarily contiguous. Especially when dealing with multi-threading, virtualization may result in unexpected behaviour when accessing stack memory of another thread (due to potentially different offsets). Workarounds involve either allocating memory on the heap (which has built-in support for non-contiguous memory access), or giving each thread its own stack. From this information, I deduced that issue likely arose in the original implementation because of a copy of a reference to stack memory initialized in another thread. The new implementation does not have that issue. This PR is still in draft because investigation whether this change will solve the issue is very much in progress. I am not 100% sure that what I was told about virtualization is correct in the first place, let alone that this part of the change was the issue, and that my new change solves that. |
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
…-feature/remove-needless-id-lookup Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
The SIGBUS and SIGSEGV issues were not caused by this PR but by #461 and a mitigation was made in #462 . A sustainable solution will be made independently from this PR |
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 2 New issues |
Re-apply #459