[BZ#738836] Out-of-memory with very large SVG canvases is not handled correctly
Submitted by Felipe Lessa
Link to original bug (#738836)
Description
I have a bunch of computer generated SVG files. Some of them cause tracker-extract to dump core. The following is the smallest of them (no google account required):
https://drive.google.com/open?id=0B1RQL7VdLXBkWWtYb1hxckNTa3M
The core dump is too large and not saved by my journald.
This may be a bug in gstreamer, since apparently that's what's being used to process it:
$ /usr/lib/tracker/tracker-extract --file=rfam61-upgma-microRNAs.svg -v 3 Locale 'TRACKER_LOCALE_LANGUAGE' was set to 'pt_BR.utf8' Locale 'TRACKER_LOCALE_TIME' was set to 'pt_BR.utf8' Locale 'TRACKER_LOCALE_COLLATE' was set to 'pt_BR.utf8' Locale 'TRACKER_LOCALE_NUMERIC' was set to 'pt_BR.utf8' Locale 'TRACKER_LOCALE_MONETARY' was set to 'pt_BR.utf8' Setting scheduler policy to SCHED_IDLE Setting priority nice level to 19 Loading extractor rules... (/usr/share/tracker/extract-rules) Loaded rule '10-abw.rule' Loaded rule '10-bmp.rule' Loaded rule '10-comics.rule' Loaded rule '10-dvi.rule' Loaded rule '10-ebooks.rule' Loaded rule '10-epub.rule' Loaded rule '10-flac.rule' Loaded rule '10-gif.rule' Loaded rule '10-html.rule' Loaded rule '10-ico.rule' Loaded rule '10-jpeg.rule' Loaded rule '10-mp3.rule' Loaded rule '10-msoffice.rule' Loaded rule '10-oasis.rule' Loaded rule '10-pdf.rule' Loaded rule '10-png.rule' Loaded rule '10-ps.rule' Loaded rule '10-svg.rule' Loaded rule '10-tiff.rule' Loaded rule '10-vorbis.rule' Loaded rule '10-xmp.rule' Loaded rule '10-xps.rule' Loaded rule '11-msoffice-xml.rule' Loaded rule '15-gstreamer-guess.rule' Loaded rule '15-playlist.rule' Loaded rule '15-source-code.rule' Loaded rule '90-gstreamer-audio-generic.rule' Loaded rule '90-gstreamer-image-generic.rule' Loaded rule '90-gstreamer-video-generic.rule' Loaded rule '90-text-generic.rule' Extractor rules loaded Initializing media art processing requirements... No mounts found to iterate Setting memory limitations: total is 16,8 GB, minimum is 256 MB, recommended is ~1 GB Virtual/Heap set to 8,4 GB (50% of total or MAXLONG) MIME type guessed as 'image/svg+xml' (from GIO) Using /usr/lib/tracker-1.0/extract-modules/libextract-gstreamer.so... GStreamer backend in use: Discoverer/GUPnP-DLNA Falha de segmentação (imagem do núcleo gravada)
I'm on x86-64 Arch Linux using tracker 1.2.2-1 and gstreamer 1.4.3-1.