libabigail/tools
Dodji Seketeli d09468b69f Fix some random deadlock while running fedabipkgidiff in tests
We are seeing some random cases where the regression test
runtestfedabipkgdiff.py hangs in what seems to be a deadlock.  This
seems to happen in fedabipkgidiff when it spawns a process to run
abipkgdiff.  More precisely, proc.communicate() hangs.

The documentation of that function at
https://docs.python.org/2/library/subprocess.html#subprocess.Popen.communicate
says:

    Note: The data read is buffered in memory, so do not use this
    method if the data size is large or unlimited.

So this patch avoids using proc.communicate() because the output of
abipkgdiff *can* be large.  Rather, the patch manually waits for the
the spawned abipkgdiff to finish, and then, read its output.

	* tools/fedabipkgdiff (abipkgidff): Do not use Popen.communicate()
	as it might hang if the data is large.  Rather, busy wait for the
	abipkgdiff process to finish and then get its output.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2017-04-12 10:02:25 -04:00
..
.gitignore Add .gitignore files. 2014-09-12 11:05:01 +02:00
abiar.cc Adjust archive-related code for the recent addition of tools_utils::* 2015-01-13 11:02:10 +01:00
abicompat.cc Update copyright year on a bunch of files 2017-01-05 12:51:49 +01:00
abidiff.cc Bug 20476 - Compare virtual member functions when comparing classes 2017-02-14 12:49:47 +01:00
abidw.cc Fix help string for --header-dirs 2017-02-13 17:42:26 +01:00
abilint.cc Drop suppressed ABI artifacts from the IR 2016-09-21 18:35:08 +02:00
abipkgdiff.cc Make abipkgdiff.cc use the abigail::workers interface 2017-02-27 10:15:33 +01:00
abisym.cc Fix misleading indentation issues 2016-09-21 12:06:51 +02:00
binilint.cc Update copyright years 2015-01-07 17:52:10 +01:00
fedabipkgdiff Fix some random deadlock while running fedabipkgidiff in tests 2017-04-12 10:02:25 -04:00
Makefile.am Control symbols exported from libabigail.so 2016-07-27 12:51:02 +02:00