pussuw commented on PR #2159:
URL: https://github.com/apache/nuttx-apps/pull/2159#issuecomment-1781184552
I was wrong, it is this commit that causes the regression. If I revert this
commit the leak is mostly gone. However, I can reproduce it still randomly.
The reason the leak happens has something to do with waitpid(), I can
reproduce the issue 100% of the time, if I change waitpid to:
```
pid_t waitpid(pid_t pid, int *stat_loc, int options)
{
return OK;
}
```
The memory leak happens every time, so some resource that has been prepared
for waitpid is not released unless waitpid is called. Looks like a race
condition.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]