-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
Exhaustive list of memory safety precautions #671
Comments
What's |
At quick glance it looks like a fork. If so, from what version did y'all fork? Because we fixed several segfault situations this year. |
Okay, that's great :) As far as I know, |
Comparing the |
I believe the included version was |
Okay, so far so good. I think the GC related segfault fixes has resolved it. |
Good to close, then? |
Yeah, I think so, in regards to the mentioned stack. However, there may still be a potential thread safety issue that should be noted or patched, see: bcoin-org/bdb@5abd296 (rebased on latest |
I'm not sure if or how it's relevant to |
It's indeed a potential segfault within |
We also have protections in place in |
The problem is doing any operations after |
Yeah, was just looking at |
Not at this time, as 99% of consumers don't use the native addon directly, and we clearly document the recommended way to consume |
Okay. However, I do think thread safety of |
Long-term, maybe. The (JS) protections of |
There are several mentions about safety on the leveldown documentation:
From the README:
From the README Safety section:
I know of an additional concern:
For example the LevelDB documentation states:
I have noticed such a thread safety issue when calling
batch_put
,batch_del
,batch_clear
ordb_close
afterbatch_write
. I have detailed this issue at bcoin-org/bdb#6, and have a reproducible test case for it at bcoin-org/bdb#7 (I can create a pull request to leveldown, if there is interest).However, I am still seeing unexplained behavior with the below
--debug
backtrace:Are there any additional safety concerns that should be noted and may explain the above issue?
The text was updated successfully, but these errors were encountered: