unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Rohleder <mike@rohleder.de>
To: Nathan Dehnel <ncdehnel@gmail.com>
Cc: 49441@debbugs.gnu.org
Subject: bug#49441: xfce4-power-manager segfaults randomly
Date: Wed, 07 Jul 2021 07:46:41 +0200	[thread overview]
Message-ID: <87r1gak75q.fsf@rohleder.de> (raw)
In-Reply-To: <CAEEhgEudjnT_zC1tLFvxg41Wz0nFTuZK73ZX0DnTj+0z2WrYTg@mail.gmail.com> (Nathan Dehnel's message of "Tue, 6 Jul 2021 10:06:48 -0500")

[-- Attachment #1: Type: text/plain, Size: 1985 bytes --]

Hello Nathan!

Thank you for the report and the backtrace!

Nathan Dehnel <ncdehnel@gmail.com> writes:
> Using v4.16.0. Attached is a backtrace. I have a coredump, but it's
> too large to attach to an email.
>
> #0  0x00007f995c4c75bc in gtk_widget_dispose ()
>    from /gnu/store/nd2i0wfhx2wsdn3di573wl7kagg6pm9s-gtk+-3.24.24/lib/libgtk-3.so.0
> #1  0x00007f995baee8a3 in g_object_unref ()
>    from /gnu/store/jsqxxnaj5p8a22mrsvl679gi7jl26z4j-glib-2.62.6/lib/libgobject-2.0.so.0
> #2  0x000000000041ea61 in battery_device_remove_pix ()
> #3  0x000000000041f37d in power_manager_button_update_device_icon_and_details ()

looks like it is crashing here:
(`guix build -S xfce4-power-manager`/panel-plugins/power-manager-plugin/power-manager-button.c:607)

/* This function unrefs the pix and img from the battery device and
 * disconnects the expose-event callback on the img.
 */
static void
battery_device_remove_pix (BatteryDevice *battery_device)
{
  TRACE("entering");

  if (battery_device == NULL)
    return;

  if (G_IS_OBJECT (battery_device->pix))
  {
    if (GTK_IS_WIDGET (battery_device->img))
    {
      if (battery_device->expose_signal_id != 0)
      {
          g_signal_handler_disconnect (battery_device->img, battery_device->expose_signal_id);
          battery_device->expose_signal_id = 0;
      }
      g_object_unref (battery_device->img);
      battery_device->img = NULL;
    }
    g_object_unref (battery_device->pix);
    battery_device->pix = NULL;
  }
}

I wonder how that can happen and so far I was not able to reproduce
this.

Do you get something on the console/stdout if you start
xfce4-power-manager on the console?

If that happens only sometimes: Maybe is it after you change something
at runtime, maybe changeing a battery or so?


-- 
You are not supposed to start Emacs more than once in a lifetime, so
the startup time shouldn't matter at all.
      Eli Zaretskii in help-gnu-emacs

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 511 bytes --]

      reply	other threads:[~2021-07-07  3:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-06 15:06 bug#49441: xfce4-power-manager segfaults randomly Nathan Dehnel
2021-07-07  5:46 ` Michael Rohleder [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r1gak75q.fsf@rohleder.de \
    --to=mike@rohleder.de \
    --cc=49441@debbugs.gnu.org \
    --cc=ncdehnel@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).