You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
Hi,
I noticed those segfaults on a production app based on load.
When we were debugging this using gdb, we found it's due to a race condition of the async worker.
Unfortunately I don't have a fix, since we decided to just replace the library.
The shared pointer holding the OnigResult appears to be the cause of the segfaults when it gets destructed (coupled with thread race stuff). Converting it to a regular pointer and managing memory manually seems to fix it. I'm not sure why the shared pointer is having issues though.
@Aerijo out of curiosity I'm revisiting this from time to time.
Found the pull request where they replaced the regular pointer with a shared pointer: https://github.com/atom/node-oniguruma/pull/6/files
Seems they fixed one issue, but might have introduced another one. Or the async stuff was added later, not sure.
I'm not a C++ dev, but might give it a shot on fixing this. If anyone has recommendations on how to approach the issue, I'm more than happy for input.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I noticed an issue while trying to run benchmarks:
v5.1.2 with 898fc90 applied:
v6.0.0 and up:
Sometimes async gets displayed as well and everything looks "normal":
Same result on both OS X and Windows.
Whether the benchmark results are meaningful, I cannot tell, however I couldn't figure out what exactly causes the segfaults in async benchmark.
Pinging @alexandrudima @zcbenz @maxbrunsfeld
The text was updated successfully, but these errors were encountered: