Compile latest source with debug option and run it with valgrind

that doesn't look great but i can't find what's wrong in source code could someone take a look.

also see https://bugs.launchpad.net/xpad/+bug/2083321

$ valgrind --track-origins=yes ./xpad

==19259== Memcheck, a memory error detector
==19259== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==19259== Using Valgrind-3.19.0 and LibVEX; rerun with -h for copyright info
==19259== Command: ./xpad
==19259==
==19259== Conditional jump or move depends on uninitialised value(s)
==19259== at 0x116B6E: xpad_pad_text_and_toolbar_height (xpad-pad.c:669)
==19259== by 0x11815C: xpad_pad_show_toolbar.part.0 (xpad-pad.c:703)
==19259== by 0x1184D0: xpad_pad_show_toolbar (xpad-pad.c:681)
==19259== by 0x1184D0: xpad_pad_notify_has_toolbar (xpad-pad.c:600)
==19259== by 0x11A1C8: xpad_pad_constructed (xpad-pad.c:393)
==19259== by 0x542AE05: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.7400.6) ==19259== by 0x542C982: g_object_new_valist (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.7400.6) ==19259== by 0x542CFD8: g_object_new (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.7400.6)
==19259== by 0x11A9EA: xpad_pad_new_with_info (xpad-pad.c:171)
==19259== by 0x1140D8: xpad_app_load_pads (xpad-app.c:519)
==19259== by 0x1140D8: xpad_app_init (xpad-app.c:174)
==19259== by 0x1140D8: main (xpad-app.c:211)
==19259== Uninitialised value was created by a stack allocation
==19259== at 0x116A66: xpad_pad_text_and_toolbar_height (xpad-pad.c:654)
==19259==
==19259== Conditional jump or move depends on uninitialised value(s)
==19259== at 0x118168: xpad_pad_show_toolbar.part.0 (xpad-pad.c:703)
==19259== by 0x1184D0: xpad_pad_show_toolbar (xpad-pad.c:681)
==19259== by 0x1184D0: xpad_pad_notify_has_toolbar (xpad-pad.c:600)
==19259== by 0x11A1C8: xpad_pad_constructed (xpad-pad.c:393)
==19259== by 0x542AE05: ??? (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.7400.6) ==19259== by 0x542C982: g_object_new_valist (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.7400.6) ==19259== by 0x542CFD8: g_object_new (in /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.7400.6)
==19259== by 0x11A9EA: xpad_pad_new_with_info (xpad-pad.c:171)
==19259== by 0x1140D8: xpad_app_load_pads (xpad-app.c:519)
==19259== by 0x1140D8: xpad_app_init (xpad-app.c:174)
==19259== by 0x1140D8: main (xpad-app.c:211)
==19259== Uninitialised value was created by a stack allocation
==19259== at 0x116A66: xpad_pad_text_and_toolbar_height (xpad-pad.c:654)
==19259==
==19259== Conditional jump or move depends on uninitialised value(s)
==19259== at 0x116B6E: xpad_pad_text_and_toolbar_height (xpad-pad.c:669)
==19259== by 0x11815C: xpad_pad_show_toolbar.part.0 (xpad-pad.c:703)
==19259== by 0x11AE37: xpad_pad_show_toolbar (xpad-pad.c:1327)
==19259== by 0x11AE37: xpad_pad_load_info (xpad-pad.c:1318)
==19259== by 0x11AE37: xpad_pad_new_with_info (xpad-pad.c:174)
==19259== by 0x1140D8: xpad_app_load_pads (xpad-app.c:519)
==19259== by 0x1140D8: xpad_app_init (xpad-app.c:174)
==19259== by 0x1140D8: main (xpad-app.c:211)
==19259== Uninitialised value was created by a stack allocation
==19259== at 0x116A66: xpad_pad_text_and_toolbar_height (xpad-pad.c:654)
==19259==
==19259== Conditional jump or move depends on uninitialised value(s)
==19259== at 0x118168: xpad_pad_show_toolbar.part.0 (xpad-pad.c:703)
==19259== by 0x11AE37: xpad_pad_show_toolbar (xpad-pad.c:1327)
==19259== by 0x11AE37: xpad_pad_load_info (xpad-pad.c:1318)
==19259== by 0x11AE37: xpad_pad_new_with_info (xpad-pad.c:174)
==19259== by 0x1140D8: xpad_app_load_pads (xpad-app.c:519)
==19259== by 0x1140D8: xpad_app_init (xpad-app.c:174)
==19259== by 0x1140D8: main (xpad-app.c:211)
==19259== Uninitialised value was created by a stack allocation
==19259== at 0x116A66: xpad_pad_text_and_toolbar_height (xpad-pad.c:654)
==19259==
==19259==
==19259== HEAP SUMMARY:
==19259== in use at exit: 3,781,907 bytes in 40,482 blocks
==19259== total heap usage: 581,611 allocs, 541,129 frees, 51,635,451 bytes allocated
==19259==
==19259== LEAK SUMMARY:
==19259== definitely lost: 29,696 bytes in 32 blocks
==19259== indirectly lost: 50,227 bytes in 2,109 blocks
==19259== possibly lost: 15,647 bytes in 66 blocks
==19259== still reachable: 3,478,065 bytes in 36,530 blocks
==19259== suppressed: 0 bytes in 0 blocks
==19259== Rerun with --leak-check=full to see details of leaked memory
==19259==
==19259== For lists of detected and suppressed errors, rerun with: -s
==19259== ERROR SUMMARY: 24 errors from 4 contexts (suppressed: 0 from 0)

Reply via email to