https://bugs.kde.org/show_bug.cgi?id=477705

--- Comment #2 from kde3...@a.anjels.de ---
(In reply to Paul Floyd from comment #1)
> Is this only calgrind?
> 
> Does it run with --tool=none?
> Does it run without errors with memcheck?

Regarding your three questions the answers are no, no and no.

Nulgrind shows similar behavior:

/usr/local/bin/valgrind --tool=none ~/callgrind_demo/build/bin/callgrind_demo
==24052== Nulgrind, the minimal Valgrind tool
==24052== Copyright (C) 2002-2017, and GNU GPL'd, by Nicholas Nethercote.
==24052== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
==24052== Command: /root/callgrind_demo/build/bin/callgrind_demo
==24052==
terminate called after throwing an instance of 'fmt::v9::format_error'
  what():  string pointer is null
==24052==
==24052== Process terminating with default action of signal 6 (SIGABRT)
==24052==    at 0x401B3E2: ??? (in /usr/lib/i386-linux-gnu/ld-linux.so.2)
==24052==    by 0x4C1F296: ??? (in /usr/lib/i386-linux-gnu/libc.so.6)
==24052==    by 0x4BCE100: raise (in /usr/lib/i386-linux-gnu/libc.so.6)
==24052==    by 0x4BB7269: abort (in /usr/lib/i386-linux-gnu/libc.so.6)
==24052==    by 0x48C59D5: ??? (in /usr/lib/i386-linux-gnu/libstdc++.so.6.0.30)
==24052==    by 0x48D3143: ??? (in /usr/lib/i386-linux-gnu/libstdc++.so.6.0.30)
==24052==    by 0x48D31BC: std::terminate() (in
/usr/lib/i386-linux-gnu/libstdc++.so.6.0.30)
==24052==    by 0x48D34BB: __cxa_throw (in
/usr/lib/i386-linux-gnu/libstdc++.so.6.0.30)
==24052==    by 0x10A52B: fmt::v9::detail::throw_format_error(char const*)
(src/include/fmt/format-inl.h:44)
==24052==    by 0x10BEEF: void
fmt::v9::detail::vformat_to<char>(fmt::v9::detail::buffer<char>&,
fmt::v9::basic_string_view<char>,
fmt::v9::basic_format_args<fmt::v9::basic_format_context<std::conditional<std::is_same<fmt::v9::type_identity<char>::type,
char>::value, fmt::v9::appender,
std::back_insert_iterator<fmt::v9::detail::buffer<fmt::v9::type_identity<char>::type>
> >::type, fmt::v9::type_identity<char>::type> >, fmt::v9::detail::locale_ref)
(src/include/fmt/format.h:3322)
==24052==    by 0x10AA79:
fmt::v9::vformat[abi:cxx11](fmt::v9::basic_string_view<char>,
fmt::v9::basic_format_args<fmt::v9::basic_format_context<fmt::v9::appender,
char> >) (src/include/fmt/format-inl.h:1472)
==24052==    by 0x10A33B: main (core.h:3206)
==24052==
Aborted

And also memcheck brings up related output:

/usr/local/bin/valgrind --tool=memcheck
~/callgrind_demo/build/bin/callgrind_demo
==24103== Memcheck, a memory error detector
==24103== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==24103== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
==24103== Command: /root/callgrind_demo/build/bin/callgrind_demo
==24103==
==24103== Conditional jump or move depends on uninitialised value(s)
==24103==    at 0x10BDFD: write<char, fmt::v9::appender>
(src/include/fmt/format.h:3321)
==24103==    by 0x10BDFD: operator()<const char *>
(src/include/fmt/format.h:3374)
==24103==    by 0x10BDFD:
visit_format_arg<fmt::v9::detail::default_arg_formatter<char>,
fmt::v9::basic_format_context<fmt::v9::appender, char> >
(src/include/fmt/core.h:1651)
==24103==    by 0x10BDFD: void
fmt::v9::detail::vformat_to<char>(fmt::v9::detail::buffer<char>&,
fmt::v9::basic_string_view<char>,
fmt::v9::basic_format_args<fmt::v9::basic_format_context<std::conditional<std::is_same<fmt::v9::type_identity<char>::type,
char>::value, fmt::v9::appender,
std::back_insert_iterator<fmt::v9::detail::buffer<fmt::v9::type_identity<char>::type>
> >::type, fmt::v9::type_identity<char>::type> >, fmt::v9::detail::locale_ref)
(src/include/fmt/format.h:4078)
==24103==    by 0x11F59D: ??? (in
/root/callgrind_demo/build/bin/callgrind_demo)
==24103==
terminate called after throwing an instance of 'fmt::v9::format_error'
  what():  string pointer is null
==24103==
==24103== Process terminating with default action of signal 6 (SIGABRT)
==24103==    at 0x401B3E2: _dl_sysinfo_int80 (in
/usr/lib/i386-linux-gnu/ld-linux.so.2)
==24103==    by 0x4C37296: __pthread_kill_implementation (pthread_kill.c:43)
==24103==    by 0x4BE6100: raise (raise.c:26)
==24103==    by 0x4BCF269: abort (abort.c:79)
==24103==    by 0x48DD9D5: ??? (in /usr/lib/i386-linux-gnu/libstdc++.so.6.0.30)
==24103==    by 0x48EB143: ??? (in /usr/lib/i386-linux-gnu/libstdc++.so.6.0.30)
==24103==    by 0x48EB1BC: std::terminate() (in
/usr/lib/i386-linux-gnu/libstdc++.so.6.0.30)
==24103==    by 0x48EB4BB: __cxa_throw (in
/usr/lib/i386-linux-gnu/libstdc++.so.6.0.30)
==24103==    by 0x10A52B: fmt::v9::detail::throw_format_error(char const*)
(src/include/fmt/format-inl.h:44)
==24103==    by 0x10BEEF: write<char, fmt::v9::appender>
(src/include/fmt/format.h:3322)
==24103==    by 0x10BEEF: operator()<const char *>
(src/include/fmt/format.h:3374)
==24103==    by 0x10BEEF:
visit_format_arg<fmt::v9::detail::default_arg_formatter<char>,
fmt::v9::basic_format_context<fmt::v9::appender, char> >
(src/include/fmt/core.h:1651)
==24103==    by 0x10BEEF: void
fmt::v9::detail::vformat_to<char>(fmt::v9::detail::buffer<char>&,
fmt::v9::basic_string_view<char>,
fmt::v9::basic_format_args<fmt::v9::basic_format_context<std::conditional<std::is_same<fmt::v9::type_identity<char>::type,
char>::value, fmt::v9::appender,
std::back_insert_iterator<fmt::v9::detail::buffer<fmt::v9::type_identity<char>::type>
> >::type, fmt::v9::type_identity<char>::type> >, fmt::v9::detail::locale_ref)
(src/include/fmt/format.h:4078)
==24103==    by 0x10AA79:
fmt::v9::vformat[abi:cxx11](fmt::v9::basic_string_view<char>,
fmt::v9::basic_format_args<fmt::v9::basic_format_context<fmt::v9::appender,
char> >) (src/include/fmt/format-inl.h:1472)
==24103==    by 0x10A33B: format<char const (&)[13]> (core.h:3206)
==24103==    by 0x10A33B: main (main.cc:5)
==24103==
==24103== HEAP SUMMARY:
==24103==     in use at exit: 19,083 bytes in 3 blocks
==24103==   total heap usage: 4 allocs, 1 frees, 19,115 bytes allocated
==24103==
==24103== LEAK SUMMARY:
==24103==    definitely lost: 0 bytes in 0 blocks
==24103==    indirectly lost: 0 bytes in 0 blocks
==24103==      possibly lost: 104 bytes in 1 blocks
==24103==    still reachable: 18,979 bytes in 2 blocks
==24103==                       of which reachable via heuristic:
==24103==                         stdstring          : 35 bytes in 1 blocks
==24103==         suppressed: 0 bytes in 0 blocks
==24103== Rerun with --leak-check=full to see details of leaked memory
==24103==
==24103== Use --track-origins=yes to see where uninitialised values come from
==24103== For lists of detected and suppressed errors, rerun with: -s
==24103== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Aborted

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to