! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-power-manager segfaults (suspend / resume related?)
Status:
RESOLVED: FIXED
Product:
Xfce4-power-manager
Component:
General

Comments

Description Stefan Seyfried 2011-07-29 09:51:54 CEST
xfce4-power-manager sometimes segfaults for me, possibly after suspend/resume.

I filed an extensive bugreport against openSUSE Factory in the novell bugzilla
here: https://bugzilla.novell.com/show_bug.cgi?id=707127

It contains gdb backtraces, valgrind logs and all the debugging information
i could get and considered useful.

(If you deem it better to copy and paste everything from the openSUSE bug over here, I can do that, too).

Note that openSUSE Factory is running with the MALLOC_CHECK_=2 debugging option which might make this bug crash on my machine whereas on other machines it might simply continue with bogus data insead of crashing.

Best regards
Comment 1 Stefan Seyfried 2011-07-29 10:00:26 CEST
oops, I should probably have searched first :-(
could be a duplicate of https://bugzilla.xfce.org/show_bug.cgi?id=7264
Comment 2 Guido Berhoerster 2011-10-24 09:39:30 CEST
Created attachment 3912 
prevent xfpm_battery_notify_idle() being called on a battery that has been removed

Attached patch with a workaround by Takashi Iwai:
> In the recent kernels, the battery sysfs entry is once removed and
> re-added at each time upon suspend/resume (don't ask me why).  This
> will trigger udev, and xfm-pm would react to delete and add the object
> accordingly.  Meanwhile, it calls the notification via X idle
> mechanism, so the crashing path might be called after removing the
> battery device.
>·
> If this is the case, a workaround would be to cancel the pending
> idle call via g_idle_remove_by_data() in xfpm_battery_finalize().
Comment 3 Lionel Le Folgoc 2012-01-31 11:44:24 CET
*** Bug 7264 has been marked as a duplicate of this bug. ***
Comment 4 Yves-Alexis Perez editbugs 2012-03-29 10:22:28 CEST
The patch is not applied to 1.0.11, could it be included in 1.0.12?
Comment 5 Yves-Alexis Perez editbugs 2012-03-29 10:23:34 CEST
Adding Nick on CC: so he can see the patch.
Comment 6 Nick Schermer editbugs 2012-04-13 20:41:44 CEST
Fixed in eeab7c3. I prefer storing the source id.

Bug #7851

Reported by:
Stefan Seyfried
Reported on: 2011-07-29
Last modified on: 2012-04-13
Duplicates (1):
  • 7264 xfce4-power-manager crashed with SIGSEGV in g_main_context_dispatch()

People

Assignee:
Ali Abdallah
CC List:
4 users

Version

Version:
1.0.10

Attachments

Additional information