https://bugzilla.novell.com/show_bug.cgi?id=707127
https://bugzilla.novell.com/show_bug.cgi?id=707127#c1
--- Comment #1 from Stefan Seyfried 2011-07-20 22:14:38 CEST ---
Short investigation. This is the crashing code (xfpm-battery.c:204):
198 static gchar *
199 xfpm_battery_get_message_from_battery_state (XfpmBattery *battery)
200 {
201 gchar *msg = NULL;
202
203
204 if (battery->priv->type == XFPM_DEVICE_TYPE_BATTERY ||
battery->priv->type == XFPM_DEVICE_TYPE_UPS)
205 {
206 switch (battery->priv->state)
207 {
Ok. gdb:
(gdb) print battery
$1 = 0x69acf0 <---ok
(gdb) print battery->priv
$2 = (XfpmBatteryPrivate *) 0xaaaaaaaaaaaaaaaa <--- looks bogus
(gdb) print battery->priv->type
Cannot access memory at address 0xaaaaaaaaaaaaaae2
(gdb) print battery->parent
$5 = {parent_instance = {g_type_instance = {g_class = 0x69add0}, ref_count = 0,
qdata = 0xaaaaaaaaaaaaaaaa},
priv = 0xaaaaaaaaaaaaaaaa}
(gdb) print battery->priv
$6 = (XfpmBatteryPrivate *) 0xaaaaaaaaaaaaaaaa
I had suspected a missing null-pointer test, but unfortunately it doesn't look
so easy. I have no idea where this 0xaaaaaa... comes from.
--
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.