GNOME Bugzilla – Bug 776947
SIGSEGV in rsvg_internals::length::RsvgLength::normalize::h5c9c1794f7b06aba
Last modified: 2017-09-01 16:03:31 UTC
Created attachment 343023 [details] A crashing sample The following test program: #include <gtk/gtk.h> int main(int argc, char *argv[]) { gtk_init(&argc, &argv); GtkStatusIcon *icon; icon = gtk_status_icon_new(); gtk_status_icon_set_from_file(icon, "ibus-chewing-chi-half.svg"); } Crashes with a probabiliy of 80% on 2.41.0. 2.40.16 works just fine. ibus-chewing-chi-half.svg is attached below. It's from https://raw.githubusercontent.com/definite/ibus-chewing/master/icons/ibus-chewing-chi-half.svg Here's a sample GDB backtrace: Program received signal SIGSEGV, Segmentation fault. 0x00007fffeceb459b in rsvg_internals::length::RsvgLength::normalize::h5c9c1794f7b06aba () from /usr/lib/librsvg-2.so.2 (gdb) bt
+ Trace 237037
Matching here: https://git.gnome.org/browse/librsvg/tree/rsvg-filter.c#n4428 data->type to the element_name silences many valgrind warnings when opening the file with rsvg-view-3.
I'm going to close this bug as obsolete. It seems to work fine with the master branch right now. I *think* the fix may have come along with the changes to make node creation be done from an array of supported node names, and from the subsequent changes to ensure that child implementations get the correct node type.