gcovr consumes 100% CPU with gcc 4.9
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcovr |
New
|
Undecided
|
Unassigned |
Bug Description
Since installing gcc 4.9, gcovr no longer works for me. (No problems with 4.8.) From my cmake build:
Processing file src/scopes/
Processing file src/scopes/
Processing file src/scopes/
Processing file src/scopes/
Processing file src/scopes/
Writing directory view page.
Overall coverage rate:
lines......: 2.8% (259 of 9367 lines)
functions..: 7.8% (187 of 2405 functions)
[ 98%] Generating coverage XML report
At that point, the build hangs. Looking at gcovr with ps, I see:
/usr/bin/python /usr/bin/gcovr -x -r /home/michi/
top shows gcovr consuming 100% CPU.
Interestingly enough, it seems that most (or even all) of the HTML output is actually generated regardless. When I interrupt the build, I get the following from Python:
Traceback (most recent call last):
File "/usr/bin/gcovr", line 1828, in <module>
make[3]: *** Deleting file 'coverage.xml'
datafiles = get_datafiles(
File "/usr/bin/gcovr", line 377, in get_datafiles
files = search_
File "/usr/bin/gcovr", line 357, in search_file
for root, dirs, files in link_walker(path):
File "/usr/bin/gcovr", line 317, in link_walker
yield os.path.
File "/usr/lib/
path, ok = _joinrealpath('', filename, {})
File "/usr/lib/
CMakeFiles/
if not islink(newpath):
File "/usr/lib/
make[3]: *** [coverage.xml] Interrupt
st = os.lstat(path)