[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/54068: ATF tests hung in pipe2_consume
The following reply was made to PR bin/54068; it has been noted by GNATS.
From: Michael van Elst <mlelstv%serpens.de@localhost>
Subject: Re: bin/54068: ATF tests hung in pipe2_consume
Date: Fri, 26 Apr 2019 19:04:55 +0200
It's a bug in the pipe code that is excercised by the atf test.
When pipe creation fails, pipe1() calls pipeclose() to clean up the partially
initialized pipe structures. pipeclose() however relies on the pipe_peer
field to be valid or zero.
Another error path exists for the pipe_lock field.
The fix is to clear both fields before recycling a pipe structure.
Michael van Elst
"A potential Snark may lurk in every tree."
Main Index |
Thread Index |