! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Segmentation fault when selecting a specific SVG file
Status:
RESOLVED: INVALID

Comments

Description Jean-Philippe Fleury 2019-08-09 20:03:21 CEST
Created attachment 8858 
SVG file making Thunar to crash

I don't have issues with other SVG files, but the one[1] attached to this bug report makes Thunar to crash when I select it (not when viewing the folder containing the file).

Steps:

1) Unzip the SVG file attached.
2) With Thunar, open the folder containing the extracted SVG file.
3) Click on the file.

Result: Thunar crashes with the error "Segmentation fault (core dumped)".

[1] Source: https://forum.kde.org/viewtopic.php?f=312&t=160623#p416780
Comment 1 alexxcons editbugs 2019-08-09 20:57:00 CEST
Thanks for reporting!
I cannot reproduce here, for me there is no crash, but as well no thumbnail.
I cannot open the .svg with gimp. It looks like it is broken for some reason ?

If I download this one https://www.riusma.com/web/doc/plasma/riusma-kde-plasma-5-16-wallpaper-2019-starry-night-on-matterhorn-def-001.svg there is no problem.

Though I dont know where to get the original svg of the "dusk" version from the webpage. Could you please drop a link ?
Comment 2 Jean-Philippe Fleury 2019-08-09 21:12:24 CEST
Thanks a lot for the answer. Actually, I don't understand your question. The SVG file I attached in the ZIP archive is the same as https://www.riusma.com/web/doc/plasma/riusma-kde-plasma-5-16-wallpaper-2019-starry-night-on-matterhorn-def-001.svg and Thunar crashes with both on my system (Xubuntu 19.04 64-bit).
Comment 3 Jean-Philippe Fleury 2019-08-09 21:13:34 CEST
By the way, I can open the SVG file with Inkscape without any crash.
Comment 4 alexxcons editbugs 2019-08-09 21:25:35 CEST
There is definately a difference between the zipped file and the one on the website.
The file from the website has 285,7kiB where the zipped one has 294,6kiB. Possibly the creator fixed it meanwhile ?

True, inkscape can open the broken file, but it as well reports some error in the console:

>Starry dusk on Matterhorn.svg:1140: parser error : expected '>'
></svg:svg>
>     ^
>Starry dusk on Matterhorn.svg:1140: parser error : Extra content at the end of the document
></svg:svg>
>     ^
>WARNING: unknown type: xhtml:script
>WARNING: unknown type: style

Here the error-message from gimp:
>»/home/schwinn/software/thunar_test/svg-crash/Starry dusk on Matterhorn.svg« konnte nicht geöffnet werden: Datei
> »/home/schwinn/software/thunar_test/svg-crash/Starry dusk on Matterhorn.svg« konnte nicht zum Lesen geöffnet werden: Error domain > 1 code 76 on line 1140 column 14 of file:///home/schwinn/software/thunar_test/svg-crash: Opening and ending tag mismatch:
> svg line 0 and svg:svg

Anyway, as well a corrupt .svg file should not crash thunar.
Since I cannot reproduce the crash, you will need to get a backtrace with debug symbols for further debugging. Here a manual on how to do that for different distributions: https://docs.xfce.org/contribute/bugs/start
Comment 5 Jean-Philippe Fleury 2019-08-09 21:38:50 CEST
I found something interesting: when I download the SVG file from https://www.riusma.com/web/doc/plasma/riusma-kde-plasma-5-16-wallpaper-2019-starry-night-on-matterhorn-def-001.svg by visiting the link (so Firefox displays the SVG file), then doing "Ctrl+s", the saved SVG file (size: 321 KiB) makes Thunar to crash.

However, if I download it by right-clicking the link and choose to save the file, the resulting file (size: 295 KiB) doesn't make Thunar to crash, neither if I get the file using curl:

$ curl -A "Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20100101 Firefox/10.0" https://www.riusma.com/web/doc/plasma/riusma-kde-plasma-5-16-wallpaper-2019-starry-night-on-matterhorn-def-001.svg > "Starry dusk on Matterhorn2.svg"
Comment 6 alexxcons editbugs 2019-08-09 21:52:04 CEST
Still no crash for me  :F  ... for me it does not matter if I download via "Ctrl+s", right-click or  curl. However via curl the file realy has a different size (321KiB). Possibly Firefox cahces the file somehow.

Looks like you have to get a backtrace to further investigate.
Comment 7 Jean-Philippe Fleury 2019-08-09 22:30:19 CEST
Is the backtrace attached OK?
Comment 8 Jean-Philippe Fleury 2019-08-09 22:31:09 CEST
Created attachment 8859 
Backtrace
Comment 9 alexxcons editbugs 2019-08-09 22:48:55 CEST
Yes, thanks you, the backtrace is nice!

Looks like "gdk_pixbuf__svg_image_load_increment" is the one which crashed. Possibly I dont get the crash, since I run a different gtk version (debian stable here)

So best open a bug on https://gitlab.gnome.org/GNOME/gtk

Feel free to link this one ! I will close the bug, since it cannot be fixed within Thunar.
Comment 10 alexxcons editbugs 2019-08-09 22:50:09 CEST
Ah, one last thing: You as well can reproduce the crash in nautilus ?
Comment 11 Jean-Philippe Fleury 2019-08-09 23:51:18 CEST
Yes, Nautilus crashes too. See the backtrace.
Comment 12 Jean-Philippe Fleury 2019-08-09 23:51:44 CEST
Created attachment 8860 
Nautilus backtrace
Comment 13 Jean-Philippe Fleury 2019-08-10 04:34:08 CEST
Reported on the GTK bug tracker: https://gitlab.gnome.org/GNOME/gtk/issues/2090
Comment 14 alexxcons editbugs 2019-08-10 22:10:32 CEST
Good job, thanks for the link !

Bug #15797

Reported by:
Jean-Philippe Fleury
Reported on: 2019-08-09
Last modified on: 2019-08-10

People

Assignee:
Xfce Bug Triage
CC List:
1 user

Version

Attachments

SVG file making Thunar to crash (38.35 KB, application/zip)
2019-08-09 20:03 CEST , Jean-Philippe Fleury
no flags
Backtrace (6.10 KB, text/plain)
2019-08-09 22:31 CEST , Jean-Philippe Fleury
no flags
Nautilus backtrace (3.94 KB, text/plain)
2019-08-09 23:51 CEST , Jean-Philippe Fleury
no flags

Additional information