reliable crash when previewing certain svg files.

Bug #955927 reported by David
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
librsvg
Expired
Medium
librsvg (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Natty by Vadim Rutkovsky
Nominated for Oneiric by Vadim Rutkovsky

Bug Description

On my 11.04 system if I have the following svg file in a directory:
<svg><script>alert(4);</script></svg>
(say in a file called 'svg.svg')
 when I go and preview it (I found that I sometimes have to copy it / move around to get trigger nautlius to trigger the 'preview' view) nautilus reliably crashes. (The backtrace suggests that it might be a bug in librsvg-2.so.2).

Here is some gdb output:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f9ddc022700 (LWP 29529)]
0x00007f9de62045c9 in g_hash_table_size () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
(gdb) i r
rax 0x0 0
rbx 0x7f9da4003aa0 140315038071456
rcx 0x0 0
rdx 0x0 0
rsi 0x7f9dd000b3d0 140315776299984
rdi 0x400000004 17179869188
rbp 0x7f9dd000b3d0 0x7f9dd000b3d0
rsp 0x7f9ddc0207e0 0x7f9ddc0207e0
r8 0x0 0
r9 0x0 0
r10 0x0 0
r11 0x1 1
r12 0x1 1
r13 0x0 0
r14 0x0 0
r15 0x7f9da4005c1f 140315038080031
rip 0x7f9de62045c9 0x7f9de62045c9 <g_hash_table_size+9>
eflags 0x10202 [ IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
(gdb) bt
#0 0x00007f9de62045c9 in g_hash_table_size () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1 0x00007f9dd5464045 in ?? () from /usr/lib/librsvg-2.so.2
#2 0x00007f9de5ec0bf5 in ?? () from /usr/lib/libxml2.so.2
#3 0x00007f9de5ec7fd2 in ?? () from /usr/lib/libxml2.so.2
#4 0x00007f9de5ec8de0 in xmlParseChunk () from /usr/lib/libxml2.so.2
#5 0x00007f9dd546c81f in rsvg_handle_write () from /usr/lib/librsvg-2.so.2
#6 0x00007f9dd567bc11 in ?? () from /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
#7 0x00007f9de726e805 in ?? () from /usr/lib/libgdk_pixbuf-2.0.so.0
#8 0x00007f9de726f2f8 in gdk_pixbuf_loader_close () from /usr/lib/libgdk_pixbuf-2.0.so.0
#9 0x00007f9de88efcaa in ?? () from /usr/lib/libgnome-desktop-2.so.17
#10 0x00007f9de88f029c in gnome_desktop_thumbnail_factory_generate_thumbnail () from /usr/lib/libgnome-desktop-2.so.17
#11 0x0000000000500fbb in ?? ()
#12 0x00007f9de4ee5e9a in start_thread (arg=0x7f9ddc022700) at pthread_create.c:308
#13 0x00007f9de4c1374d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#14 0x0000000000000000 in ?? ()
(gdb)

a command file or a user-defined command.
(gdb) i frame
Stack level 0, frame at 0x7f9ddc0207f0:
 rip = 0x7f9de62045c9 in g_hash_table_size; saved rip 0x7f9dd5464045
 called by frame at 0x7f9ddc020810
 Arglist at 0x7f9ddc0207d8, args:
 Locals at 0x7f9ddc0207d8, Previous frame's sp is 0x7f9ddc0207f0
 Saved registers:
  rip at 0x7f9ddc0207e8

Revision history for this message
Vadim Rutkovsky (roignac) wrote :

Thank you for your bug report. This bug has been reported to the developers of the software. You can track it and make comments at https://bugzilla.gnome.org/show_bug.cgi?id=672212

affects: nautilus (Ubuntu) → librsvg (Ubuntu)
Changed in librsvg (Ubuntu):
status: New → Triaged
Changed in librsvg:
importance: Unknown → Medium
status: Unknown → New
Revision history for this message
Vadim Rutkovsky (roignac) wrote :

Upstream developers commented that this is not reproducible in librsvg 2.35.2

Could you please post the outpur of 'apt-cache policy librsvg2-2'?

Changed in librsvg:
status: New → Expired
Revision history for this message
David (d--) wrote :

Sure:
librsvg2-2:
  Installed: 2.32.1-0ubuntu3.1
  Candidate: 2.32.1-0ubuntu3.1
  Version table:
 *** 2.32.1-0ubuntu3.1 0
        500 $somemirror amd64 Packages
        500 $somemirror amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ natty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ natty-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2.32.1-0ubuntu3 0
        500 $somemirror amd64 Packages

Revision history for this message
David (d--) wrote :

Yeah in the newer version of librsvg2-2 in oneiric / precise (using an newer version of nautilus as well) nautilus does not crash.

Revision history for this message
madbiologist (me-again) wrote :

Note that official support for Natty ends on 28 October 2012.

Changed in librsvg (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.