Skip to content

What can be done to protect from data corruption under low free/avail memory conditions? #1964

Answered by francescolavra
rinor asked this question in Q&A
Discussion options

You must be logged in to vote

I see 2 types of assert failures being mentioned in this discussion:

  1. "Real" kernel bugs (like w->retval++ < (w->poll_fds->length / sizeof(struct pollfd)) and pp->refcount++ == 0), which indicate that there is either a flaw in the logic that manages the data structures involved, or some kind of corruption of kernel memory caused by some other (unidentified, and possibly unrelated to where the assert failure occurs) piece of code. To solve these, we either identify the root cause by reading the code (but I haven't been able to so far), or we should find a way to reliable reproduce the issues
  2. Mishandling of memory allocation failures (as in the case of buffer_extend(b, words + 1)); this is …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rinor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants