]> git.ipfire.org Git - thirdparty/qemu.git/commit
fuzz: don't leave orphan llvm-symbolizers around
authorAlexander Bulekov <alxndr@bu.edu>
Wed, 10 Mar 2021 06:12:36 +0000 (01:12 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Mar 2021 18:19:54 +0000 (14:19 -0400)
commitd0614b8e7a365e64ebf2ed068754787fae34d501
tree8bb7d6b2144d90c3602b3200bf2c9edb1cb29b0c
parente8a2a62106d219016f8372c3888bbf555006243b
fuzz: don't leave orphan llvm-symbolizers around

I noticed that with a sufficiently small timeout, the fuzzer fork-server
sometimes locks up. On closer inspection, the issue appeared to be
caused by entering our SIGALRM handler, while libfuzzer is in it's crash
handlers. Because libfuzzer relies on pipe communication with an
external child process to print out stack-traces, we shouldn't exit
early, and leave an orphan child. Check for children in the SIGALRM
handler to avoid this issue.

Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Acked-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/qtest/fuzz/generic_fuzz.c