[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Pkg-xfce-devel] Bug#642397: Bug#642397: xfce4-power-manager: Segfault when docking

Am Wed, 28. Sep 2011, 15:26:06 +0200 schrieb Yves-Alexis Perez:
> > I should also point out that I was having some trouble reproducing this.
> > Yesterday the crashes happened reliably after resuming, no matter whether the
> > laptop was docked or not, today I can only reproduce it when suspending in
> > undocked state and resuming in docked state.  So maybe it has something to do
> > with docking after all.  Oh, and when I'm talking about "undocked", that
> > implies "on battary" while "docked" implies "power supply connected". 
> Does this mean dock station is completely unrelated?

Today I did several tests with removing or attaching the external power while
sleeping, all without the docking station.  I was able to trigger the segfault
a few times, so I'd say this is indeed more related to the external power
supply, and the docking station itself has nothing to do with it.

The best way to reproduce this appears to be to suspend the laptop with the
power connected and the battery full.  Then disconnect the power and resume.
Make sure xfce4-power-manager has time to notice the power was disconnected,
then immediatly suspend again.  Connect the power, resume, and
xfce4-power-manager crashes.  Unfortunately, it doesn't reliably crash

Also, I noticed that one of the crashes produced a different backtrace (I'm
including it below).  Since I also had periods where the crash would happen on
every resume even though the power was disconnected before, during and after
the suspend, I'm afraid there might even be multiple causes here.

Do you think it would be worthwhile recompiling with "-g -O0" to obtain better
stack traces?  Or to run xfce4-power-manager under valgrind?


New stack trace:
(xfce4-power-manager:19896): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `XfpmBattery'

(xfce4-power-manager:19896): xfce4-power-manager-CRITICAL **: xfpm_tray_icon_get_tray_icon: assertion `XFPM_IS_TRAY_ICON(icon)' failed

(xfce4-power-manager:19896): xfce4-power-manager-CRITICAL **: xfpm_tray_icon_get_icon_name: assertion `XFPM_IS_TRAY_ICON(icon)' failed

Program received signal SIGSEGV, Segmentation fault.
0xb7f4eb54 in notify_notification_show () from /usr/lib/libnotify.so.1
(gdb) thread apply all bt full

Thread 1 (Thread 0xb729b750 (LWP 19896)):
#0  0xb7f4eb54 in notify_notification_show () from /usr/lib/libnotify.so.1
No symbol table info available.
#1  0x08061fa5 in ?? ()
No symbol table info available.
#2  0xb796d381 in g_idle_dispatch (source=0x80d3d90, callback=0x80d0700, user_data=0x80e8070)
    at /build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gmain.c:4065
No locals.
#3  0xb796f305 in g_main_dispatch (context=0x8095538)
    at /build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gmain.c:1960
        dispatch = 0xb796d360 <g_idle_dispatch>
        user_data = 0x80e8070
        callback = 0x8061f80
        cb_funcs = 0xb79fc57c
        cb_data = 0x80d3330
        current_source_link = {data = 0x80d3d90, next = 0x0}
        source = 0x80d3d90
        current = 0x809b5a0
        i = 0
#4  IA__g_main_context_dispatch (context=0x8095538)
    at /build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gmain.c:2513
No locals.
#5  0xb7972fe8 in g_main_context_iterate (context=0x8095538, block=<value optimized out>, dispatch=1, self=0x8069008)
    at /build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gmain.c:2591
        max_priority = 200
        timeout = 0
        some_ready = 1
        nfds = <value optimized out>
        allocated_nfds = <value optimized out>
        fds = <value optimized out>
        __PRETTY_FUNCTION__ = "g_main_context_iterate"
#6  0xb7973527 in IA__g_main_loop_run (loop=0x80d3700)
    at /build/buildd-glib2.0_2.24.2-1-i386-AScyie/glib2.0-2.24.2/glib/gmain.c:2799
        self = 0x8069008
        __PRETTY_FUNCTION__ = "IA__g_main_loop_run"
#7  0xb7caae19 in IA__gtk_main () at /build/buildd-gtk+2.0_2.20.1-2-i386-TNeM25/gtk+2.0-2.20.1/gtk/gtkmain.c:1219
---Type <return> to continue, or q <return> to quit---
        tmp_list = 0x80b65a0
        functions = 0x0
        init = 0xbfffed08
        loop = 0x80d3700
#8  0x0804d7cf in ?? ()
No symbol table info available.
#9  0x0804de51 in ?? ()
No symbol table info available.
#10 0xb76bec76 in __libc_start_main (main=0x804d820, argc=2, ubp_av=0xbfffede4, init=0x8062740, fini=0x8062730,
    rtld_fini=0xb7ff1040 <_dl_fini>, stack_end=0xbfffeddc) at libc-start.c:228
        result = <value optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-1216438284, 0, 0, -1073746504, 1827958329, 1157011496},
              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x2, 0x804d250}, data = {prev = 0x0, cleanup = 0x0,
              canceltype = 2}}}
        not_first_call = <value optimized out>
#11 0x0804d271 in ?? ()
No symbol table info available.

Jorrit (J?) Fahlke, Interdisciplinary Center for Scientific Computing,
Heidelberg University, Im Neuenheimer Feld 368, D-69120 Heidelberg
Tel: +49 6221 54 8890 Fax: +49 6221 54 8884

This is the first age that's paid much attention to the future, which
is a little ironic since we may not have one.
-- Arthur C Clarke
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20110930/9b9b7777/attachment.pgp>

Reply to: