• Derek Foreman's avatar
    tests: Check for wrong fd delivery with zombie objects · ff992951
    Derek Foreman authored
    Until recently, if an event attempting to deliver an fd to a zombie
    object was demarshalled after the object was made into a zombie, we
    leaked the fd and left it in the buffer.
    
    If another event attempting to deliver an fd to a live object was in that
    same buffer, the zombie's fd would be delivered instead.
    
    This test recreates that situation.
    
    While this is a ridiculously contrived way to force this race - delivering
    an event from a destruction handler - I do have reports of this race
    being hit in real world code.
    Signed-off-by: default avatarDerek Foreman <derekf@osg.samsung.com>
    Acked-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
    ff992951
Name
Last commit
Last update
..
data Loading commit data...
array-test.c Loading commit data...
client-test.c Loading commit data...
compositor-introspection-test.c Loading commit data...
connection-test.c Loading commit data...
cpp-compile-test.cpp Loading commit data...
display-test.c Loading commit data...
event-loop-test.c Loading commit data...
exec-fd-leak-checker.c Loading commit data...
fixed-benchmark.c Loading commit data...
fixed-test.c Loading commit data...
headers-protocol-core-test.c Loading commit data...
headers-protocol-test.c Loading commit data...
headers-test.c Loading commit data...
interface-test.c Loading commit data...
list-test.c Loading commit data...
map-test.c Loading commit data...
message-test.c Loading commit data...
newsignal-test.c Loading commit data...
os-wrappers-test.c Loading commit data...
protocol-logger-test.c Loading commit data...
queue-test.c Loading commit data...
resources-test.c Loading commit data...
sanity-test.c Loading commit data...
scanner-test.sh Loading commit data...
signal-test.c Loading commit data...
socket-test.c Loading commit data...
test-compositor.c Loading commit data...
test-compositor.h Loading commit data...
test-helpers.c Loading commit data...
test-runner.c Loading commit data...
test-runner.h Loading commit data...