HomePhabricator

[Sanitizers] Implement interceptors for msgsnd, msgrcv

Authored by guiand on Jun 30 2020, 4:29 PM.

Description

[Sanitizers] Implement interceptors for msgsnd, msgrcv

Differential Revision: https://reviews.llvm.org/D82897

Details

Committed
guiandJun 30 2020, 4:48 PM
Differential Revision
D82897: [Sanitizers] Implement interceptors for msgsnd, msgrcv
Parents
rG679d101e7cbf: [gn build] (semi-manually) port ce6153a5282
Branches
Unknown
Tags
Unknown

Event Timeline

The test case added in this patch creates System V message queues that it never cleans up. Why is that? We now have this failing on a machine that runs a lot of our bots. Presumably it will start failing on any machine that runs bots after enough runs.

Illustration of the problem:

$ ipcs -q | wc -l
1117
$ ./sysmsg.c.tmp
$ ipcs -q | wc -l
1118

The commit that mentions this (https://reviews.llvm.org/rGf1746be6667) adds the cleanup. Please have a look at it and if it isn't the right way to clean up, modify the fix as needed. I had to make sure this doesn't continue to build up queues as it was causing build bot failures.

The commit that mentions this (https://reviews.llvm.org/rGf1746be6667) adds the cleanup. Please have a look at it and if it isn't the right way to clean up, modify the fix as needed. I had to make sure this doesn't continue to build up queues as it was causing build bot failures.

Thanks for investigating! Fixed by cabe31f415054b45b4fa6c17e4ddf09cc39bf4e8