]> git.ipfire.org Git - thirdparty/bind9.git/commit
Test a race condition between isc_timer_purge() and isc_event_free()
authorAram Sargsyan <aram@isc.org>
Fri, 5 Apr 2024 14:05:40 +0000 (14:05 +0000)
committerAram Sargsyan <aram@isc.org>
Fri, 17 May 2024 10:49:57 +0000 (10:49 +0000)
commit857f6adaeca6ea70abed19aa6da6d894fccfa203
tree2e78bb02b3c3873524b3d16e30366de990c606f9
parentc7b15f1f5acf096cd2e6d97b6754d39248a0ac2b
Test a race condition between isc_timer_purge() and isc_event_free()

Let basic_tick() of 'task1' and 'basic_quick' of 'task4' run in
different threads, and insert an artificial delay in timer_purge()
to cause an existing race condition to appear.
lib/isc/timer.c
tests/isc/task_test.c