commit | 1089980117405ece539d5f84bed7fd56f95fb0c8 | [log] [tgz] |
---|---|---|
author | Min <45393763+MinxuanZ@users.noreply.github.com> | Tue Nov 12 11:12:30 2024 +0800 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Nov 11 19:15:56 2024 -0800 |
tree | 3256757a26010376fca2757a4a04fe5839c6ae13 | |
parent | 54b84d597ea44ec477cc5905bb3962f717a381f8 [diff] |
[libfuzzer] use timer_create() instead of setitimer() for linux (#110274) SetTimer() now uses setitimer() to sending SIGALRM every ` UnitTimeoutSec/2 + 1` s Set UnitTimeoutSec with the `-timeout=` option "POSIX.1-2008 marks getitimer() and setitimer() obsolete" and also has some issues regarding accuracy of the timers under load . See https://linux.die.net/man/2/setitimer. I propose using timer_create() and sigaction() ,See http://man7.org/linux/man-pages/man2/timer_create.2.html # test result on my x86_64 linux `make check-fuzzer` ![image](https://github.com/user-attachments/assets/19b4e073-16a5-4daa-95ed-2cf4830c042f) GitOrigin-RevId: 3b29a8a00809e868e3df7e687695670ff5077fbd