GNU bug report logs - #38544
gparted segfaults

Previous Next

Package: guix;

Reported by: Ricardo Wurmus <rekado <at> elephly.net>

Date: Mon, 9 Dec 2019 10:11:01 UTC

Severity: normal

Done: Tobias Geerinckx-Rice <me <at> tobias.gr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 38544 in the body.
You can then email your comments to 38544 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#38544; Package guix. (Mon, 09 Dec 2019 10:11:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ricardo Wurmus <rekado <at> elephly.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 09 Dec 2019 10:11:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: bug-guix <at> gnu.org
Subject: gparted segfaults
Date: Mon, 09 Dec 2019 11:10:06 +0100
This segfaults:

    sudo /gnu/store/yzxyxnxja4y1riwh3mrqrvb7h4vhxlqb-gparted-1.0.0/bin/gparted

--8<---------------cut here---------------start------------->8---
…
(gpartedbin:5364): Gdk-CRITICAL **: 11:06:10.219: gdk_cairo_surface_create_from_pixbuf: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(gpartedbin:5364): GLib-GObject-CRITICAL **: 11:06:10.219: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(gpartedbin:5364): Gtk-WARNING **: 11:06:10.273: Error loading theme icon 'drive-harddisk' for stock: Icon 'drive-harddisk' not present in theme Adwaita

(gpartedbin:5364): Gtk-WARNING **: 11:06:10.273: Error loading theme icon 'image-missing' for stock: Failed to load /org/gtk/libgtk/icons/24x24/status/image-missing.png: Unrecognized image file format
/gnu/store/yzxyxnxja4y1riwh3mrqrvb7h4vhxlqb-gparted-1.0.0/bin/gparted: line 202:  5364 Segmentation fault      $BASE_CMD--8<---------------cut here---------------end--------------->8---

This does not segfault:

    sudo -E /gnu/store/yzxyxnxja4y1riwh3mrqrvb7h4vhxlqb-gparted-1.0.0/bin/gparted

The problem here is that when run as root but without the environment of
the current user gparted fails to find the image loader modules.

--
Ricardo





Information forwarded to bug-guix <at> gnu.org:
bug#38544; Package guix. (Tue, 10 Dec 2019 07:40:02 GMT) Full text and rfc822 format available.

Message #8 received at 38544 <at> debbugs.gnu.org (full text, mbox):

From: Gábor Boskovits <boskovits <at> gmail.com>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 38544 <at> debbugs.gnu.org
Subject: Re: bug#38544: gparted segfaults
Date: Tue, 10 Dec 2019 08:38:50 +0100
Hello,

Ricardo Wurmus <rekado <at> elephly.net> ezt írta (időpont: 2019. dec. 9., H, 11:11):
>
> This segfaults:
>
>     sudo /gnu/store/yzxyxnxja4y1riwh3mrqrvb7h4vhxlqb-gparted-1.0.0/bin/gparted
>
> --8<---------------cut here---------------start------------->8---
> …
> (gpartedbin:5364): Gdk-CRITICAL **: 11:06:10.219: gdk_cairo_surface_create_from_pixbuf: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
>
> (gpartedbin:5364): GLib-GObject-CRITICAL **: 11:06:10.219: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
>
> (gpartedbin:5364): Gtk-WARNING **: 11:06:10.273: Error loading theme icon 'drive-harddisk' for stock: Icon 'drive-harddisk' not present in theme Adwaita
>
> (gpartedbin:5364): Gtk-WARNING **: 11:06:10.273: Error loading theme icon 'image-missing' for stock: Failed to load /org/gtk/libgtk/icons/24x24/status/image-missing.png: Unrecognized image file format
> /gnu/store/yzxyxnxja4y1riwh3mrqrvb7h4vhxlqb-gparted-1.0.0/bin/gparted: line 202:  5364 Segmentation fault      $BASE_CMD--8<---------------cut here---------------end--------------->8---
>
> This does not segfault:
>
>     sudo -E /gnu/store/yzxyxnxja4y1riwh3mrqrvb7h4vhxlqb-gparted-1.0.0/bin/gparted
>
> The problem here is that when run as root but without the environment of
> the current user gparted fails to find the image loader modules.

Yes, I concur.

I believe this affects multiple packages, but as it is rarely needed
to run them with sudo this did not become apparent. Question is what
needs to be done here. I would say if it is ok to run these with sudo
-E, then we could work it around by documenting this, but the proper
solution would be to ensure that these modules are found.

>
> --
> Ricardo
>
>
>
>

Best regards,
g_bor
-- 
OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21




Information forwarded to bug-guix <at> gnu.org:
bug#38544; Package guix. (Sat, 04 Jan 2020 18:37:02 GMT) Full text and rfc822 format available.

Message #11 received at 38544 <at> debbugs.gnu.org (full text, mbox):

From: raingloom <raingloom <at> riseup.net>
To: Ricardo Wurmus <rekado <at> elephly.net>, 38544 <at> debbugs.gnu.org
Subject: Re: bug#38544: gparted segfaults
Date: Sat, 04 Jan 2020 19:35:56 +0100
On Mon, 2019-12-09 at 11:10 +0100, Ricardo Wurmus wrote:
> This segfaults:
> 
>     sudo /gnu/store/yzxyxnxja4y1riwh3mrqrvb7h4vhxlqb-gparted-
> 1.0.0/bin/gparted
> 
> --8<---------------cut here---------------start------------->8---
> …
> (gpartedbin:5364): Gdk-CRITICAL **: 11:06:10.219:
> gdk_cairo_surface_create_from_pixbuf: assertion 'GDK_IS_PIXBUF
> (pixbuf)' failed
> 
> (gpartedbin:5364): GLib-GObject-CRITICAL **: 11:06:10.219:
> g_object_unref: assertion 'G_IS_OBJECT (object)' failed
> 
> (gpartedbin:5364): Gtk-WARNING **: 11:06:10.273: Error loading theme
> icon 'drive-harddisk' for stock: Icon 'drive-harddisk' not present in
> theme Adwaita
> 
> (gpartedbin:5364): Gtk-WARNING **: 11:06:10.273: Error loading theme
> icon 'image-missing' for stock: Failed to load
> /org/gtk/libgtk/icons/24x24/status/image-missing.png: Unrecognized
> image file format
> /gnu/store/yzxyxnxja4y1riwh3mrqrvb7h4vhxlqb-gparted-
> 1.0.0/bin/gparted: line 202:  5364 Segmentation fault      $BASE_CMD-
> -8<---------------cut here---------------end--------------->8---
> 
> This does not segfault:
> 
>     sudo -E /gnu/store/yzxyxnxja4y1riwh3mrqrvb7h4vhxlqb-gparted-
> 1.0.0/bin/gparted
> 
> The problem here is that when run as root but without the environment
> of
> the current user gparted fails to find the image loader modules.
> 
> --
> Ricardo


I tried fixing this by adding the wrapper step from glib-or-gtk but
that didn't do anything.





Information forwarded to bug-guix <at> gnu.org:
bug#38544; Package guix. (Tue, 14 Jul 2020 13:51:01 GMT) Full text and rfc822 format available.

Message #14 received at 38544 <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: 38544 <at> debbugs.gnu.org
Subject: [PATCH] gnu: gparted: Use the Glib-or-GTK build system.
Date: Tue, 14 Jul 2020 15:50:19 +0200
Fixes <https://issues.guix.gnu.org/38544>.

* gnu/packages/disk.scm (gparted)[build-system]: Use
glib-or-gtk-build-system.
---

raingloom 写道:
> I tried fixing this by adding the wrapper step from glib-or-gtk but
> that didn't do anything.

Strange, this works for me (after a pointless detour writing a custom wrap phase with shared-mime-info et al):

 gnu/packages/disk.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm
index a5278d8c8c..6d812f560c 100644
--- a/gnu/packages/disk.scm
+++ b/gnu/packages/disk.scm
@@ -78,6 +78,7 @@
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg)
   #:use-module (guix build-system gnu)
+  #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system go)
   #:use-module (guix build-system python)
   #:use-module (guix build-system trivial)
@@ -432,7 +433,7 @@ and can dramatically shorten the lifespan of the drive if left unchecked.")
                            version "/gparted-" version ".tar.gz"))
        (sha256
         (base32 "092rgwjh1825fal6v3yafq2wr0i61hh0a2n0j4296zn0zdx7pzp2"))))
-    (build-system gnu-build-system)
+    (build-system glib-or-gtk-build-system)
     (arguments
       ;; Tests require access to paths outside the build container, such
       ;; as '/dev/disk/by-id'
-- 
2.27.0





Information forwarded to bug-guix <at> gnu.org:
bug#38544; Package guix. (Thu, 16 Jul 2020 10:08:02 GMT) Full text and rfc822 format available.

Message #17 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Tobias Geerinckx-Rice via Bug reports for GNU Guix <bug-guix <at> gnu.org>
Cc: 38544 <at> debbugs.gnu.org, Tobias Geerinckx-Rice <me <at> tobias.gr>
Subject: Re: bug#38544: [PATCH] gnu: gparted: Use the Glib-or-GTK build system.
Date: Thu, 16 Jul 2020 12:07:47 +0200
Hi,

Tobias Geerinckx-Rice via Bug reports for GNU Guix <bug-guix <at> gnu.org>
skribis:

> Fixes <https://issues.guix.gnu.org/38544>.
>
> * gnu/packages/disk.scm (gparted)[build-system]: Use
> glib-or-gtk-build-system.

Makes sense, LGTM!

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#38544; Package guix. (Thu, 16 Jul 2020 10:08:02 GMT) Full text and rfc822 format available.

Reply sent to Tobias Geerinckx-Rice <me <at> tobias.gr>:
You have taken responsibility. (Thu, 16 Jul 2020 18:19:01 GMT) Full text and rfc822 format available.

Notification sent to Ricardo Wurmus <rekado <at> elephly.net>:
bug acknowledged by developer. (Thu, 16 Jul 2020 18:19:02 GMT) Full text and rfc822 format available.

Message #25 received at 38544-done <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 38544-done <at> debbugs.gnu.org
Subject: Re: bug#38544: [PATCH] gnu: gparted: Use the Glib-or-GTK build system.
Date: Thu, 16 Jul 2020 20:18:31 +0200
[Message part 1 (text/plain, inline)]
Ludovic Courtès 写道:
>> Fixes <https://issues.guix.gnu.org/38544>.
>>
>> * gnu/packages/disk.scm (gparted)[build-system]: Use
>> glib-or-gtk-build-system.
>
> Makes sense, LGTM!

Thanks!  Pushed.

Kind regards,

T G-R
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 14 Aug 2020 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 227 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.