"Not a gcov data file"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hey,

I am trying to use gcov on a number of unit tests which fail with
segmentation faults. (I have been told that I should fix the SIGSEGVs
first and look at coverage later, however, my use case is different,
so this advice does not apply).

Basically I have a signal handler and I am invoking __gcov_dump() and
__gcov_reset() within the handler. This is supposed to write out the
coverage information at the point in time where the crash occurs.

I am using "GCOV_PREFIX_STRIP=100" and "GCOV_PREFIX" as needed in
order to set a new, absolute path for the gcda files.

For one of the tests, I am seeing

	profiling: <filename>.gcda: Not a gcov data file
	pure virtual method called
	terminate called without an active exception

as part of the output. I am not absolutely sure whether one of those
messages might be caused by the program under test rather than gcov.
However, the first one is a gcov error message. This setup does work
for other (crashing) tests.

Is it possible that my gcda files are corrupted? Is there any way to
check this? Do you have any other idea what might go wrong?

Best,
Alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJU0kOrAAoJEM2/ztON2Oaul/0H/RjGU5t5bB9ALlxnxJd21/Ec
wxKcSK89QpqHYuGXmu1p0dfGxb+0CUmBwKJV8mURn4d8ZRa7Xz78Ii8srwPlM7NI
lnj9Z5246gD6gnBnxNMIVO+xDZNb/fP37RF10jy+SvaGvW30xbrrwOm9fYyS6ZsC
LRrQ9OM6+iFh84rxrgVekY3Q7E4FdZI52Q8mQJqK8SBu+3L1BibIuOerSyYX9pga
aasDLzAlDtU7nPJjw06MrruIC56zSDwHVIVr25smDiFx3GTZ/gmbb1M3lQgQUFDD
k2InVqvZ2RjsgPPflUyH0qxLYRG5UZANGNRFdzqjI2p61YY0DNP4QzqxXfkR0ww=
=Pg16
-----END PGP SIGNATURE-----




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux