Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Valgrind output on unit-tests-iidm #428

Open
sebalaig opened this issue Mar 25, 2022 · 0 comments
Open

Valgrind output on unit-tests-iidm #428

sebalaig opened this issue Mar 25, 2022 · 0 comments

Comments

@sebalaig
Copy link
Contributor

  • Do you want to request a feature or report a bug?
    bug

  • What is the current behavior?
    Valgrind execution on unit-tests-iidm is not clear:

slaigre@WD0573:/mnt/e/Projet_SRO/rte/powsybl-iidm4cpp/build-linux$ valgrind ./test/iidm/unit-tests-iidm -- --resources=../test/resources/
==13969== Memcheck, a memory error detector
==13969== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==13969== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==13969== Command: ./test/iidm/unit-tests-iidm -- --resources=../test/resources/
==13969==
Running 221 test cases...
==13969== Use of uninitialised value of size 8
==13969==    at 0x5ED810B: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28)
==13969==    by 0x5ED87AD: std::ostreambuf_iterator<char, std::char_traits<char> > std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::_M_insert_int<unsigned long>(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, unsigned long) const (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28)
==13969==    by 0x5EE700E: std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28)
==13969==    by 0x2550FC: void boost::io::detail::put_last<char, std::char_traits<char>, unsigned long>(std::basic_ostream<char, std::char_traits<char> >&, unsigned long const&) (feed_args.hpp:99)
==13969==    by 0x253F58: void boost::io::detail::call_put_last<char, std::char_traits<char>, unsigned long const>(std::basic_ostream<char, std::char_traits<char> >&, void const*) (feed_args.hpp:126)
==13969==    by 0x256E5F: void boost::io::detail::put_last<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, boost::io::detail::put_holder<char, std::char_traits<char> > const&) (feed_args.hpp:149)
==13969==    by 0x2555C7: void boost::io::detail::put<char, std::char_traits<char>, std::allocator<char>, boost::io::detail::put_holder<char, std::char_traits<char> > const&>(boost::io::detail::put_holder<char, std::char_traits<char> > const&, boost::io::detail::format_item<char, std::char_traits<char>, std::allocator<char> > const&, boost::basic_format<char, std::char_traits<char>, std::allocator<char> >::string_type&, boost::basic_format<char, std::char_traits<char>, std::allocator<char> >::internal_streambuf_t&, std::locale*) (feed_args.hpp:197)
==13969==    by 0x2542DA: void boost::io::detail::distribute<char, std::char_traits<char>, std::allocator<char>, boost::io::detail::put_holder<char, std::char_traits<char> > const&>(boost::basic_format<char, std::char_traits<char>, std::allocator<char> >&, boost::io::detail::put_holder<char, std::char_traits<char> > const&) (feed_args.hpp:291)
==13969==    by 0x253185: boost::basic_format<char, std::char_traits<char>, std::allocator<char> >& boost::io::detail::feed_impl<char, std::char_traits<char>, std::allocator<char>, boost::io::detail::put_holder<char, std::char_traits<char> > const&>(boost::basic_format<char, std::char_traits<char>, std::allocator<char> >&, boost::io::detail::put_holder<char, std::char_traits<char> > const&) (feed_args.hpp:301)
==13969==    by 0x251910: boost::basic_format<char, std::char_traits<char>, std::allocator<char> >& boost::io::detail::feed<char, std::char_traits<char>, std::allocator<char>, unsigned long const&>(boost::basic_format<char, std::char_traits<char>, std::allocator<char> >&, unsigned long const&) (feed_args.hpp:313)
==13969==    by 0x24F348: boost::basic_format<char, std::char_traits<char>, std::allocator<char> >& boost::basic_format<char, std::char_traits<char>, std::allocator<char> >::operator%<unsigned long>(unsigned long const&) (format_class.hpp:64)
==13969==    by 0x24DADF: void stdcxx::format<unsigned long>(boost::basic_format<char, std::char_traits<char>, std::allocator<char> >&, unsigned long const&) (format.hxx:30)
==13969==
==13969== Conditional jump or move depends on uninitialised value(s)
==13969==    at 0x5ED811D: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28)
==13969==    by 0x5ED87AD: std::ostreambuf_iterator<char, std::char_traits<char> > std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::_M_insert_int<unsigned long>(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, unsigned long) const (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28)
==13969==    by 0x5EE700E: std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28)
==13969==    by 0x2550FC: void boost::io::detail::put_last<char, std::char_traits<char>, unsigned long>(std::basic_ostream<char, std::char_traits<char> >&, unsigned long const&) (feed_args.hpp:99)
==13969==    by 0x253F58: void boost::io::detail::call_put_last<char, std::char_traits<char>, unsigned long const>(std::basic_ostream<char, std::char_traits<char> >&, void const*) (feed_args.hpp:126)
==13969==    by 0x256E5F: void boost::io::detail::put_last<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, boost::io::detail::put_holder<char, std::char_traits<char> > const&) (feed_args.hpp:149)
==13969==    by 0x2555C7: void boost::io::detail::put<char, std::char_traits<char>, std::allocator<char>, boost::io::detail::put_holder<char, std::char_traits<char> > const&>(boost::io::detail::put_holder<char, std::char_traits<char> > const&, boost::io::detail::format_item<char, std::char_traits<char>, std::allocator<char> > const&, boost::basic_format<char, std::char_traits<char>, std::allocator<char> >::string_type&, boost::basic_format<char, std::char_traits<char>, std::allocator<char> >::internal_streambuf_t&, std::locale*) (feed_args.hpp:197)
==13969==    by 0x2542DA: void boost::io::detail::distribute<char, std::char_traits<char>, std::allocator<char>, boost::io::detail::put_holder<char, std::char_traits<char> > const&>(boost::basic_format<char, std::char_traits<char>, std::allocator<char> >&, boost::io::detail::put_holder<char, std::char_traits<char> > const&) (feed_args.hpp:291)
==13969==    by 0x253185: boost::basic_format<char, std::char_traits<char>, std::allocator<char> >& boost::io::detail::feed_impl<char, std::char_traits<char>, std::allocator<char>, boost::io::detail::put_holder<char, std::char_traits<char> > const&>(boost::basic_format<char, std::char_traits<char>, std::allocator<char> >&, boost::io::detail::put_holder<char, std::char_traits<char> > const&) (feed_args.hpp:301)
==13969==    by 0x251910: boost::basic_format<char, std::char_traits<char>, std::allocator<char> >& boost::io::detail::feed<char, std::char_traits<char>, std::allocator<char>, unsigned long const&>(boost::basic_format<char, std::char_traits<char>, std::allocator<char> >&, unsigned long const&) (feed_args.hpp:313)
==13969==    by 0x24F348: boost::basic_format<char, std::char_traits<char>, std::allocator<char> >& boost::basic_format<char, std::char_traits<char>, std::allocator<char> >::operator%<unsigned long>(unsigned long const&) (format_class.hpp:64)
==13969==    by 0x24DADF: void stdcxx::format<unsigned long>(boost::basic_format<char, std::char_traits<char>, std::allocator<char> >&, unsigned long const&) (format.hxx:30)
==13969==

This has to be fixed.

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

  • What is the expected behavior?

  • What is the motivation / use case for changing the behavior?
    Quality improvement

  • Please tell us about your environment:

    • PowSyBl Version: ...
    • OS Version: ...
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, spectrum, etc)

(if a question doesn't apply, you can delete it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant