← Back to team overview

desktop-packages team mailing list archive

[Bug 1359715] Re: Ghostscript runaway memory consumption during font search

 

I ran into the same problem on Mint 17 Cinnamon 64-bit also.  The
problem occurs even with /TimesRomanBold.  I have installed the gsfonts
and gsfonts-other package (in Synaptic/Apt), but still the same problem.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to ghostscript in Ubuntu.
https://bugs.launchpad.net/bugs/1359715

Title:
  Ghostscript runaway memory consumption during font search

Status in ghostscript package in Ubuntu:
  New

Bug description:
  Linux Mint 17 (Qiana), Cinnamon 64-bit, kernel 3.13.0-24-generic #47-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
  Ghostscript version 9.10

  When Ghostscript searches for a specified font, if that font is not
  found in the Fontmap file, memory consumption shoots up, the system
  starts swapping and hangs.

  Tested on system (see above) with ~ 2GB memory.

  A simple way to reproduce, is to use the following procedure to
  attempt to display a font:

  1) Invoke ghostscript on 'prfont.ps'

  $ gs /usr/share/ghostscript/9.10/lib/prfont.ps
  GPL Ghostscript 9.10 (2013-08-30)
  Copyright (C) 2013 Artifex Software, Inc.  All rights reserved.
  This software comes with NO WARRANTY: see the file PUBLIC for details.
  Loading NimbusRomNo9L-Regu font from /usr/share/fonts/type1/gsfonts/n021003l.pfb... 3896292 2355421 3853784 2540955 1 done.
  GS>

  2) At Ghostscript prompt, specify a random fontname - which we know
  does not exist - to 'DoFont':

  GS>/Somefont DoFont
  Can't find (or can't open) font file /usr/share/ghostscript/9.10/Resource/Font/Somefont.
  Can't find (or can't open) font file Somefont.
  Querying operating system for font files...

  Result: memory usage maxes out, system swaps and hangs.

  I expected Ghostscript to conclude the font search (without
  exhausating system resources!) and to report failure to locate the
  specified font.

  This problem always occurs, and affects any other program which
  invokes ghostscript and triggers a font search.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ghostscript/+bug/1359715/+subscriptions