GNOME Bugzilla – Bug 671268
Segfault in libpower.so after ~10 secs without user input
Last modified: 2012-03-05 21:11:40 UTC
I get segfault because of a NULL pointer in gsd-power-manager.c:2676. The function backlight_get_abs() returns -13 because of backlight_helper_get_value(). The error pointer didn't get initialized but it is used just after : g_warning ("failed to get existing backlight: %s", error->message); Thank you
What version of gnome-settings-daemon is this ? I don't see that warning message in the current sources.
I'm on Ubuntu 11.10, it's 3-2-2
Matthias: http://git.gnome.org/browse/gnome-settings-daemon/tree/plugins/power/gsd-power-manager.c?h=gnome-3-2&id=b3f969f8b8391e3c3f30bb5d54fe0cca2ddd4061#n2674 I added another check to backlight_helper_get_value(). Let me know if this fixes the problem. Would be nice to fix it in the helper itself though. commit 0fc947c590ec40f492af16cef5e3de7775ba08ab Author: Bastien Nocera <hadess@hadess.net> Date: Mon Mar 5 15:14:39 2012 +0000 power: Add more error checks Should fix crasher in most unlikely of circumstances. Like the kernel giving us crap data. https://bugzilla.gnome.org/show_bug.cgi?id=671268
You can also run "gsd-backlight-helper" by hand after this commit: http://git.gnome.org/browse/gnome-settings-daemon/commit/?id=305057ac831b357a03bb3f244059048551321b71 So you can check how gsd-backlight-helper is giving out wrong data.
you have fixed it, thank you. gsd-backlight-helper is returning -13 as I was expecting.