Fortunately valgrind's output is minimal because it turns out it writes to stderr, not stdout, so that `tee` didn't get it. :)

Here's the output from about 5 hours.

# valgrind --leak-check=full --show-leak-kinds=definite /usr/libexec/fwupd/fwupd | tee fwupd.log
==4003007== Memcheck, a memory error detector
==4003007== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al.
==4003007== Using Valgrind-3.24.0 and LibVEX; rerun with -h for copyright info
==4003007== Command: /usr/libexec/fwupd/fwupd
==4003007==
18:40:06.855 FuEngine failed to add device /sys/devices/pci0000:00/0000:00:01.2/0000:01:00.1/ata3/host2/target2:0:0/2:0:0:0/block/sr0: failed to subclass open: failed to open /dev/sr0: No medium found 18:40:07.126 FuEngine failed to add device /sys/devices/pci0000:00/0000:00:01.2/0000:01:00.1/ata3/host2/target2:0:0/2:0:0:0/block/sr0: failed to subclass open: failed to open /dev/sr0: No medium found 18:40:07.173 FuEngine failed to add device /sys/devices/pci0000:00/0000:00:03.1/0000:06:00.0/0000:07:00.0/0000:08:00.0: failed to setup: cannot parse datastream 18:40:08.010 FuEngine failed to add device /sys/devices/virtual/msr/msr0: failed to add device using on msr: could not read IA32_DEBUG_INTERFACE: failed to read from port 0x0c80: Input/output error 18:40:08.257 FuMain fwupd 2.0.8 ready for requests (locale en_US.UTF-8)
^C==4003007==
==4003007== Process terminating with default action of signal 2 (SIGINT)
==4003007==    at 0x52EC9EE: __syscall_cancel_arch (syscall_cancel.S:56)
==4003007==    by 0x52E1667: __internal_syscall_cancel (cancellation.c:49)
==4003007==    by 0x52E16AC: __syscall_cancel (cancellation.c:75)
==4003007==    by 0x5355E6D: ppoll (ppoll.c:42)
==4003007== by 0x512E64B: ??? (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8400.1) ==4003007== by 0x512EFDE: g_main_loop_run (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8400.1)
==4003007==    by 0x112E0A: fu_daemon_start (in /usr/libexec/fwupd/fwupd)
==4003007==    by 0x1114AC: main (in /usr/libexec/fwupd/fwupd)
==4003007==
==4003007== HEAP SUMMARY:
==4003007==     in use at exit: 174,650,598 bytes in 2,906,181 blocks
==4003007== total heap usage: 30,350,893 allocs, 27,444,712 frees, 15,310,784,886 bytes allocated
==4003007==
==4003007== LEAK SUMMARY:
==4003007==    definitely lost: 0 bytes in 0 blocks
==4003007==    indirectly lost: 0 bytes in 0 blocks
==4003007==      possibly lost: 2,412,855 bytes in 625 blocks
==4003007==    still reachable: 131,036,687 bytes in 2,751,216 blocks
==4003007==                       of which reachable via heuristic:
==4003007== length64 : 262,920 bytes in 340 blocks
==4003007==         suppressed: 0 bytes in 0 blocks
==4003007== Reachable blocks (those to which a pointer was found) are not shown.
==4003007== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==4003007==
==4003007== For lists of detected and suppressed errors, rerun with: -s
==4003007== ERROR SUMMARY: 80 errors from 80 contexts (suppressed: 0 from 0)



--
Phil Dibowitz                             [email protected]
Open Source software and tech docs        Insanity Palace of Metallica
http://www.phildev.net/                   http://www.ipom.com/

"Be who you are and say what you feel, because those who mind don't
 matter and those who matter don't mind."
 - Dr. Seuss

Reply via email to