From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 10 02:39:10 2019 Received: (at 38544) by debbugs.gnu.org; 10 Dec 2019 07:39:10 +0000 Received: from localhost ([127.0.0.1]:54898 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iea6v-0005cq-Pq for submit@debbugs.gnu.org; Tue, 10 Dec 2019 02:39:09 -0500 Received: from mail-ed1-f46.google.com ([209.85.208.46]:39092) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iea6u-0005ce-7N for 38544@debbugs.gnu.org; Tue, 10 Dec 2019 02:39:08 -0500 Received: by mail-ed1-f46.google.com with SMTP id v16so15087927edy.6 for <38544@debbugs.gnu.org>; Mon, 09 Dec 2019 23:39:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=JnTeZaLAnu+KeQUkSnmbwPAxqZ4CB4hCYvvmc8evzmg=; b=KRWY5m8CbXfx1A7lgbCki5MYOIXUEFW0KfT4+UjKvVZFJ4VUH3NkOHUxuLbLrD3LZt yi8XSOMERfgsAFalXq1awRvWG9ACOED+qC1WAMEgFhxdLjab4wlcpZRuNPYsnmLeX1HB ZaJ+7Dd2Eal5fYbwNY8Rccq0RaARwmPMdDo6TXEW/ro/EIqb0ZHvCaKiVOXHGeejf/HU UXcOmK577r/+JXluE6L/iGaERNigyqX4EgMc6kvdbQApeHq/4xTFwrJ5g3qWJTn/NxNq SF3bKgHS7cvz8Va+YmSSGh+5G2fyGKuSOYgW4VwNpeYsQ/Nga7jV9i3nsb+InD5knmm3 M/OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=JnTeZaLAnu+KeQUkSnmbwPAxqZ4CB4hCYvvmc8evzmg=; b=cALKa3P1vMgM+Er0nx99gZleVjfMnwgSZKF8mka8tMT0lWYpn1+cKNQxFCWhbEMtVx iLn/R0o33zKidykhe0ttzs/d/VpvQsoYTiJ6sh3rFY3GitB0rvsf7Um73cjK8OAThvH/ 684Zsm2CwE7dJb+oPT+r7cOJ1s7NmfmTUxp3nEnRIx5CEdrf3jJW0/X5MoCPiGUguEI5 5TY2sYiutF0Fdt4BaogH7xlZR8RmNZu9GvFXWATU7fZoAKZ6bsc0wmpGfIWY4JNzz4UK /8lRXj8AD7pcpFOyvheoZNq6/zZMPXbOnQYuRzbXDc96PViqrXQ/qfbZF3lkKvHkOCXI ud4Q== X-Gm-Message-State: APjAAAXKv3Hu5kqcWMiN+abeTp7Skp1qwPysUubLZyRKIteKhD7lKf4p HuuT2PAT4wGs6SeFcMNicbkjH3k22SSjFVYyGyTF1IU= X-Google-Smtp-Source: APXvYqxOn/izcDayu62f2AS90tZfo73LT6pYMX9wywHEMtlDvxXi77ppGKhSC8HTzePMrSixt28CqEMAPj3R+r1Yu20= X-Received: by 2002:a17:906:2344:: with SMTP id m4mr2140511eja.110.1575963542136; Mon, 09 Dec 2019 23:39:02 -0800 (PST) MIME-Version: 1.0 References: <87muc16c8x.fsf@elephly.net> In-Reply-To: <87muc16c8x.fsf@elephly.net> From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Date: Tue, 10 Dec 2019 08:38:50 +0100 Message-ID: Subject: Re: bug#38544: gparted segfaults To: Ricardo Wurmus Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 38544 Cc: 38544@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Ricardo Wurmus ezt =C3=ADrta (id=C5=91pont: 2019. dec.= 9., H, 11:11): > > This segfaults: > > sudo /gnu/store/yzxyxnxja4y1riwh3mrqrvb7h4vhxlqb-gparted-1.0.0/bin/gp= arted > > --8<---------------cut here---------------start------------->8--- > =E2=80=A6 > (gpartedbin:5364): Gdk-CRITICAL **: 11:06:10.219: gdk_cairo_surface_creat= e_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 Adw= aita > > (gpartedbin:5364): Gtk-WARNING **: 11:06:10.273: Error loading theme icon= 'image-missing' for stock: Failed to load /org/gtk/libgtk/icons/24x24/stat= us/image-missing.png: Unrecognized image file format > /gnu/store/yzxyxnxja4y1riwh3mrqrvb7h4vhxlqb-gparted-1.0.0/bin/gparted: li= ne 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 --=20 OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21