GNU bug report logs - #57417
Emacs crashes due to symbol lookup error to rsvg_handle_set_stylesheet

Previous Next

Package: guix;

Reported by: grokking Stuff <grokkingstuff <at> gmail.com>

Date: Thu, 25 Aug 2022 19:41:01 UTC

Severity: normal

To reply to this bug, email your comments to 57417 AT debbugs.gnu.org.

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#57417; Package guix. (Thu, 25 Aug 2022 19:41:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to grokking Stuff <grokkingstuff <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 25 Aug 2022 19:41:01 GMT) Full text and rfc822 format available.

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

From: grokking Stuff <grokkingstuff <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: Emacs crashes due to symbol lookup error to rsvg_handle_set_stylesheet
Date: Thu, 25 Aug 2022 23:12:11 +0400
Hey fellow Guix users,

I’m trying to use Emacs on my system but it tends to crash unexpectedly. 

When launching it from a terminal, I get:

> grokkingstuff <at> grokkingNoether ~$ emacs
> (process:32402): Gtk-WARNING **: 22:59:14.455: Locale not supported by C library.
> 	Using the fallback 'C' locale.
> /home/grokkingstuff/.guix-profile/bin/emacs: symbol lookup error: /home/grokkingstuff/.guix-profile/bin/emacs: undefined symbol: rsvg_handle_set_stylesheet


Trying to use emacs -q, I get a similar message, but it just crashes quickly.

> ^Cgrokkingstuff <at> grokkingNoether ~$ emacs-29.0.50 -q
> (process:4018): Gtk-WARNING **: 23:08:35.207: Locale not supported by C library.
> 	Using the fallback 'C' locale.
> /home/grokkingstuff/.guix-profile/bin/emacs-29.0.50: symbol lookup error: /home/grokkingstuff/.guix-profile/bin/emacs-29.0.50: undefined symbol: rsvg_handle_set_stylesheet

I have librsvg installed, and a few Google searches seem to indicate that this is the issue. I’ve tried building from source using "guix install -S” but I don’t see any difference.

If there’s anything I could do to assist with this bug report, please let me know. Thank you so much for your time and effort.

Sincerely,
Vishakh Kumar (grokkingstuff)



Information forwarded to bug-guix <at> gnu.org:
bug#57417; Package guix. (Fri, 26 Aug 2022 15:42:02 GMT) Full text and rfc822 format available.

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

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: grokking Stuff <grokkingstuff <at> gmail.com>, 57417 <at> debbugs.gnu.org
Subject: Re: Emacs crashes due to symbol lookup error to
 rsvg_handle_set_stylesheet
Date: Fri, 26 Aug 2022 17:41:35 +0200
Am Donnerstag, dem 25.08.2022 um 23:12 +0400 schrieb grokking Stuff:
> Hey fellow Guix users,
> 
> I’m trying to use Emacs on my system but it tends to crash
> unexpectedly. 
> 
> When launching it from a terminal, I get:
> 
> > grokkingstuff <at> grokkingNoether ~$ emacs
> > (process:32402): Gtk-WARNING **: 22:59:14.455: Locale not supported
> > by C library.
> >         Using the fallback 'C' locale.
> > /home/grokkingstuff/.guix-profile/bin/emacs: symbol lookup error:
> > /home/grokkingstuff/.guix-profile/bin/emacs: undefined symbol:
> > rsvg_handle_set_stylesheet
Looking at this output, it seems Emacs is trying to dynamically link
librsvg.  Two issues spring to mind: First, this kind of linkage is not
that well supported by Guix, so we tend to substitute* the full path. 
Is this done for librsvg?  Second, there might be a (version) mismatch
between the librsvg Emacs expects and the one it gets.  Does
rsvg_handle_set_stylesheet actually exist as a symbol in your librsvg?

Cheers




Information forwarded to bug-guix <at> gnu.org:
bug#57417; Package guix. (Thu, 10 Nov 2022 18:48:01 GMT) Full text and rfc822 format available.

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

From: arnaud.lechevallier <at> free.fr
To: 57417 <at> debbugs.gnu.org
Subject: Emacs crashes due to symbol lookup error to rsvg_handle_set_stylesheet
Date: Thu, 10 Nov 2022 19:13:27 +0100 (CET)
Hi there,

I'm facing the same issue from a fresh 1.3 installation I did on a VM. 
Emacs28.2 is linked against librsvg-2.40.21 which do not provide rsvg_handle_set_stylesheet function.

altomcat <at> guix ~/.config$ libtree /gnu/store/jpi4h6afvkifypxjxdpgrdm4shnmavwf-emacs-28.2/bin/.emacs-28.2-real | grep rsvg
│   │   │           ┊    /gnu/store/3r3sxc1ywqs93rzj4z46p0cbdy1y1x7m-librsvg-2.40.21/lib
├── librsvg-2.so.2 [LD_LIBRARY_PATH]
│       ┊    /gnu/store/3r3sxc1ywqs93rzj4z46p0cbdy1y1x7m-librsvg-2.40.21/lib
│       ┊    /gnu/store/3r3sxc1ywqs93rzj4z46p0cbdy1y1x7m-librsvg-2.40.21/lib
Error [/gnu/store/jpi4h6afvkifypxjxdpgrdm4shnmavwf-emacs-28.2/bin/.emacs-28.2-real]: Not all dependencies were found

altomcat <at> guix ~/.config$ echo $LD_LIBRARY_PATH
/gnu/store/piln05qmyhyiqb3ggn2hvz1wagzvd8mc-gdk-pixbuf+svg-2.40.0/lib:/gnu/store/cydnixdcrvlizpcz3jkas5vpgd2dmd5z-gnome-bluetooth-3.34.2/lib:/gnu/store/3r3sxc1ywqs93rzj4z46p0cbdy1y1x7m-librsvg-2.40.21/lib:/gnu/store/8902rzyhkzs30c8z9xjkmmdrh2dq1ha7-libgweather-3.34.0/lib

Emacs runs well if I insert the path of librsvg-2.50.7 to LD_LIBRARY_PATH as follow

export  LD_LIBRARY_PATH=/gnu/store/34yxh2p22yaiisb1ayp43ig06hdlj0wg-librsvg-2.50.7/lib:$LD_LIBRARY_PATH

I checked the package definition with `guix edit emacs`
...
           ;; When looking for libpng `configure' links with `-lpng -lz', so we
           ;; must also provide zlib as an input.
           libpng
           zlib
           (if (target-x86-64?)
               librsvg-bootstrap
               librsvg-2.40) => need to be change ?
           libxpm
           libxml2
...

I'm a newbie and I hope these details can help. I would appreciate a little help to go further and solve this issue.
Thanks.




Information forwarded to bug-guix <at> gnu.org:
bug#57417; Package guix. (Thu, 10 Nov 2022 22:32:01 GMT) Full text and rfc822 format available.

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

From: Maxime Devos <maximedevos <at> telenet.be>
To: arnaud.lechevallier <at> free.fr, 57417 <at> debbugs.gnu.org
Subject: Re: bug#57417: Emacs crashes due to symbol lookup error to
 rsvg_handle_set_stylesheet
Date: Thu, 10 Nov 2022 23:31:24 +0100
[Message part 1 (text/plain, inline)]

On 10-11-2022 19:13, arnaud.lechevallier <at> free.fr wrote:
>[...]
> I checked the package definition with `guix edit emacs`
> ...
>             ;; When looking for libpng `configure' links with `-lpng -lz', so we
>             ;; must also provide zlib as an input.
>             libpng
>             zlib
>             (if (target-x86-64?)
>                 librsvg-bootstrap
>                 librsvg-2.40) => need to be change ?
>             libxpm
>             libxml2
> ...
> 
> I'm a newbie and I hope these details can help. I would appreciate a little help to go further and solve this issue.
> Thanks.

Which architecture are you on?  You can find out with

$ echo '(use-modules (guix utils)) (%current-system)' | guix repl

Same question for Vishakh Kumar.

Greetings,
Maxime.
[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#57417; Package guix. (Fri, 11 Nov 2022 09:01:02 GMT) Full text and rfc822 format available.

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

From: arnaud.lechevallier <at> free.fr
To: 57417 <at> debbugs.gnu.org
Subject: Re: bug#57417: Emacs crashes due to symbol lookup error to
 rsvg_handle_set_stylesheet
Date: Fri, 11 Nov 2022 08:56:08 +0100 (CET)
Hi Maxime,

> Which architecture are you on?  You can find out with
> $ echo '(use-modules (guix utils)) (%current-system)' | guix repl

$1 = "x86_64-linux"


Running emacs command failed but 'emacs -Q' works. 

altomcat <at> guix ~$ emacs

(process:1306): Gtk-WARNING **: 08:41:25.920: Locale not supported by C library.
	Using the fallback 'C' locale.
/home/altomcat/.guix-profile/bin/emacs: symbol lookup error: /home/altomcat/.guix-profile/bin/emacs: undefined symbol: rsvg_handle_set_stylesheet
altomcat <at> guix ~$ emacs -Q

(process:1314): Gtk-WARNING **: 08:41:29.223: Locale not supported by C library.
	Using the fallback 'C' locale.

Thanks,
Arnaud




Information forwarded to bug-guix <at> gnu.org:
bug#57417; Package guix. (Fri, 11 Nov 2022 16:02:01 GMT) Full text and rfc822 format available.

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

From: Maxime Devos <maximedevos <at> telenet.be>
To: arnaud.lechevallier <at> free.fr, 57417 <at> debbugs.gnu.org
Subject: Re: bug#57417: Emacs crashes due to symbol lookup error to
 rsvg_handle_set_stylesheet
Date: Fri, 11 Nov 2022 17:00:56 +0100
[Message part 1 (text/plain, inline)]
On 11-11-2022 08:56, arnaud.lechevallier <at> free.fr wrote:
> Hi Maxime,
> 
>> Which architecture are you on?  You can find out with
>> $ echo '(use-modules (guix utils)) (%current-system)' | guix repl
> 
> $1 = "x86_64-linux"
> 

Then unless 'grokking Stuff' has a different system, I am not following 
their proposal, because because on x86-64 ...

>            (if (target-x86-64?)
>                librsvg-bootstrap
>                librsvg-2.40) => need to be change ?

... the first branch would be taken, so changing the second branch would 
have no effect.  However, perhaps the rsvg_handle_set_stylesheet is only 
present in the 'librsvg', and not in 'librsvg-bootstrap' (I wouldn't 
expect that as they are the same version, but it could be tested).  If 
so, librsvg-for-system could be used instead, at cost of some rebuilds.

Greetings,
Maxime
[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

This bug report was last modified 1 year and 160 days ago.

Previous Next


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