Re: encountered failed test cases with latest checkout of libvirt

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

 



On 03/29/2017 04:47 AM, Michal Privoznik wrote:

>>
>> For the valgrind testing with 'make -C tests valgrind', the errors were
>> *mostly* due to
>> "FATAL: can't open suppressions file "./.valgrind.supp". I am using
>> valgrind 3.12.0.

I suspect it may be a simple tweak to makefile to supply an absolute
reference instead of relative to .valgrind.supp so that 'make -C' would
find the right file, for this situation.

> 
> 
> That's weird, the file should be there. What is a problem though is our
> mocking. Due to some weird glibc-ness, valgrind cannot handle libraries
> that have some unresolved symbols. For instance, if library L that is
> loaded from binary B provides symbols L1 and L2 but rely on symbol B1,
> valgrind (in fact glibc) fails to load the binary even though if run
> without valgrind everything works just fine.
> 
> I've looked into this the other day and went from our sources to
> valgrind ones and from there to glibc where I got lost. For instance,
> virpcitest fails because virpcimock uses virAlloc, virFree and other
> internal APIs even though it's not linking with libvirt_util.
> 
> Frankly, I've no idea how to fix this. Perhaps Eric have a bright idea?

Sorry, no bright ideas here.  A strict link ordering (so that no library
relies on unresolved symbols) is a good idea for mingw, so it's worth
shooting for anyways, and may clean up the valgrind issues, but I'm not
sure how easy or hard it would be to rearrange link orders to get to
that point.

> BTW: linking the mock with libvirt_util fails in exactly the opposite
> case - when not running under valgrind.
> 
> Michal
> 

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux