imagemagick core dumps on reading gnus.svg
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
imagemagick (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Running display on gnus.svg (from the emacs24-common package) results in a core dump:
$ /usr/bin/
Aborted (core dumped)
Trying to get a backtrace:
$ gdb --args /usr/bin/
[...]
Reading symbols from /usr/bin/
(gdb) run
Starting program: /usr/bin/
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_
[New Thread 0x7fffed953700 (LWP 17356)]
[New Thread 0x7fffed152700 (LWP 17357)]
Thread 1 "display-im6" received signal SIGSEGV, Segmentation fault.
0x00007ffff391f8b8 in ?? () from /usr/lib/
(gdb) bt
#0 0x00007ffff391f8b8 in ?? () from /usr/lib/
#1 0x00007ffff79a4a18 in ReadImage () from /usr/lib/
#2 0x00007ffff76627af in DisplayImageCommand () from /usr/lib/
#3 0x00007ffff76ab527 in MagickCommandGe
#4 0x0000000000400877 in ?? ()
#5 0x00007ffff7037830 in __libc_start_main (main=0x400830, argc=2, argv=0x7fffffff
stack_
#6 0x00000000004008d9 in ?? ()
(gdb)
emacs also crashes when opening that file, with a segmentation fault inside ImageMagick, that's how I found the problem:
$ emacs /usr/share/
Fatal error 11: Segmentation fault
Backtrace:
emacs[0x5036d3]
emacs[0x4e9d6e]
emacs[0x50249e]
emacs[0x5026c3]
/lib/
/usr/
/usr/
/usr/
emacs[0x5cd004]
emacs[0x5d0ea1]
[....]
emacs[0x55d74b]
...
Segmentation fault (core dumped)
This is on:
Description: Ubuntu 16.04.5 LTS
Release: 16.04
With packages:
imagemagick:
Installed: 8:6.8.9.
emacs24-common:
Installed: 24.5+1-6ubuntu1.1
Last week I didn't get these crashes, so I guess they are related to a security update of the imagemagick packages.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: imagemagick 8:6.8.9.
ProcVersionSign
Uname: Linux 4.15.0-33-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
Date: Tue Oct 9 09:49:32 2018
InstallationDate: Installed on 2011-06-14 (2673 days ago)
InstallationMedia: Ubuntu 10.04.2 LTS "Lucid Lynx" - Release amd64 (20110211.1)
SourcePackage: imagemagick
UpgradeStatus: Upgraded to xenial on 2013-05-07 (1980 days ago)
I tried removing things from gnus.svg to find a minimal example that makes imagemagick coredump.
Even this .svg results in a coredump:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> purl.org/ dc/elements/ 1.1/" creativecommons .org/ns#" www.w3. org/1999/ 02/22-rdf- syntax- ns#" www.w3. org/2000/ svg" www.w3. org/2000/ svg" "display: inline"
<svg
xmlns:dc="http://
xmlns:cc="http://
xmlns:rdf="http://
xmlns:svg="http://
xmlns="http://
style=
version="1.0">
</svg>
So does the minimal Plain SVG that Inkscape writes:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> purl.org/ dc/elements/ 1.1/" creativecommons .org/ns#" www.w3. org/1999/ 02/22-rdf- syntax- ns#" www.w3. org/2000/ svg" www.w3. org/2000/ svg" "metadata7" > image/svg+ xml</dc: format>
rdf: resource= "http:// purl.org/ dc/dcmitype/ StillImage" /> </dc:title>
<svg
xmlns:dc="http://
xmlns:cc="http://
xmlns:rdf="http://
xmlns:svg="http://
xmlns="http://
version="1.1"
id="svg2"
viewBox="0 0 744.09448819 1052.3622047"
height="297mm"
width="210mm">
<defs
id="defs4" />
<metadata
id=
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>
<dc:type
<dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1" />
</svg>