fix: events leak that can occur if allocation fails#2771
Conversation
d0cd28b to
1fabce5
Compare
nurupo
left a comment
There was a problem hiding this comment.
Reviewed 40 of 40 files at r1, all commit messages.
Reviewable status:complete! 1 of 1 approvals obtained
|
Not sure how we should fix the mallocfail test. the send message autotest times out, be cause the event fails to allocate and thus gets dropped. |
|
Well, the allocation failure is propagated to the test code via |
|
Actually, scratch that. Reading mallocfail's README, the intended use is to not modify the code to accommodate the use of mallocfail, but to keep re-running it with mallocfail many times until no new entries are added to mallocfail's hashes file, at which point all mallocs will succeed and the test should succeed too, keeping note of unusual terminations/crashes along the way. |
1fabce5 to
15ca352
Compare
|
for reference #2783 was a fix specifically for the ci fail. |
rare in practice, found by fuzzing
15ca352 to
4067628
Compare
rare in practice, found by fuzzing
This change is