https://bugzilla.novell.com/show_bug.cgi?id=707127
https://bugzilla.novell.com/show_bug.cgi?id=707127#c6
--- Comment #6 from Stefan Seyfried 2011-07-28 19:38:18 CEST ---
on the list it was mentioned that 0xaa is not freeed but uninitialized memory.
Valgrind was unfortunately not too helpful:
==12559== Memcheck, a memory error detector
==12559== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==12559== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==12559== Command: xfce4-power-manager --no-daemon
==12559==
(xfce4-power-manager:12559): xfce4-power-manager-WARNING **: could not map
keysym 1008ffa8 to keycode
** (xfce4-power-manager:12559): DEBUG: Brightness controlled by xrandr,
min_level=0 max_level=15
[... much later...]
(xfce4-power-manager:12559): GLib-GObject-WARNING **: invalid uninstantiatable
type `<invalid>' in cast to `XfpmBattery'
==12559== Invalid read of size 4
==12559== at 0x40E72F: xfpm_battery_notify (xfpm-battery.c:204)
==12559== by 0x40EFFB: xfpm_battery_notify_idle (xfpm-battery.c:361)
==12559== by 0x6D3A9DC: g_main_context_dispatch (in
/usr/lib64/libglib-2.0.so.0.2912.0)
==12559== by 0x6D3B1D7: ??? (in /usr/lib64/libglib-2.0.so.0.2912.0)
==12559== by 0x6D3B711: g_main_loop_run (in
/usr/lib64/libglib-2.0.so.0.2912.0)
==12559== by 0x5180166: gtk_main (in /usr/lib64/libgtk-x11-2.0.so.0.2400.5)
==12559== by 0x409008: xfpm_start (xfpm-main.c:235)
==12559== by 0x409622: main (xfpm-main.c:423)
==12559== Address 0xaaaaaaaaaaaaaae2 is not stack'd, malloc'd or (recently)
free'd
==12559==
==12559==
==12559== Process terminating with default action of signal 11 (SIGSEGV)
==12559== General Protection Fault
==12559== at 0x40E72F: xfpm_battery_notify (xfpm-battery.c:204)
==12559== by 0x40EFFB: xfpm_battery_notify_idle (xfpm-battery.c:361)
==12559== by 0x6D3A9DC: g_main_context_dispatch (in
/usr/lib64/libglib-2.0.so.0.2912.0)
==12559== by 0x6D3B1D7: ??? (in /usr/lib64/libglib-2.0.so.0.2912.0)
==12559== by 0x6D3B711: g_main_loop_run (in
/usr/lib64/libglib-2.0.so.0.2912.0)
==12559== by 0x5180166: gtk_main (in /usr/lib64/libgtk-x11-2.0.so.0.2400.5)
==12559== by 0x409008: xfpm_start (xfpm-main.c:235)
==12559== by 0x409622: main (xfpm-main.c:423)
==12559==
==12559== HEAP SUMMARY:
==12559== in use at exit: 1,338,748 bytes in 11,875 blocks
==12559== total heap usage: 1,580,287 allocs, 1,568,412 frees, 368,416,522
bytes allocated
==12559==
[... possible loss records, lots of them ]
==12559==
==12559== LEAK SUMMARY:
==12559== definitely lost: 295 bytes in 7 blocks
==12559== indirectly lost: 0 bytes in 0 blocks
==12559== possibly lost: 653,488 bytes in 5,780 blocks
==12559== still reachable: 684,965 bytes in 6,088 blocks
==12559== suppressed: 0 bytes in 0 blocks
==12559== Reachable blocks (those to which a pointer was found) are not shown.
==12559== To see them, rerun with: --leak-check=full --show-reachable=yes
==12559==
==12559== For counts of detected and suppressed errors, rerun with: -v
==12559== ERROR SUMMARY: 566 errors from 566 contexts (suppressed: 6 from 6)
(i removed thousands of lines for possibly lost memory - we don't care for that
now ;-) and all the forked children)
This output seems to hing that glib already knows that something is wrong:
(xfce4-power-manager:12559): GLib-GObject-WARNING **: invalid uninstantiatable
type `<invalid>' in cast to `XfpmBattery'
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.