← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1806517] Re: Ghostscript segmentation fault on PDF using -dFirstPage and -dLastPage

 

This bug was fixed in the package ghostscript -
9.26~dfsg+0-0ubuntu0.18.10.3

---------------
ghostscript (9.26~dfsg+0-0ubuntu0.18.10.3) cosmic-security; urgency=medium

  * SECURITY REGRESSION: multiple regressions (LP: #1806517)
    - debian/patches/020181126-96c381c*.patch: fix duplex issue.
    - debian/patches/020181205-fae21f16*.patch: fix -dFirstPage and
      -dLastPage issue.

 -- Marc Deslauriers <marc.deslauriers@xxxxxxxxxx>  Thu, 06 Dec 2018
07:14:48 -0500

** Changed in: ghostscript (Ubuntu Cosmic)
       Status: Confirmed => Fix Released

** Changed in: ghostscript (Ubuntu Xenial)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1806517

Title:
  Ghostscript segmentation fault on PDF using -dFirstPage and -dLastPage

Status in GS-GPL:
  Fix Released
Status in ghostscript package in Ubuntu:
  Fix Released
Status in ghostscript source package in Trusty:
  Fix Released
Status in ghostscript source package in Xenial:
  Fix Released
Status in ghostscript source package in Bionic:
  Fix Released
Status in ghostscript source package in Cosmic:
  Fix Released
Status in ghostscript source package in Disco:
  Fix Released

Bug description:
  In order to convert a PDF file in PNG I use the command:

  » convert "myfile.pdf[0]" test.png

  Which gives this error:

  convert-im6.q16: FailedToExecuteCommand `'gs' -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r72x72' -dFirstPage=1 -dLastPage=1 '-sOutputFile=/tmp/magick-11774WIkYdVETEs9I%d' '-f/tmp/magick-11774JZhknqCDhkN0' '-f/tmp/magick-11774twGtf-JFihri'' (-1) @ error/delegate.c/ExternalDelegateCommand/462.
  convert-im6.q16: no images defined `test.png' @ error/convert.c/ConvertImageCommand/3258.

  So I tried using ghostscript directly:

  » ghostscript -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT
  -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2
  -sDEVICE=pngalpha -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r72x72
  -dFirstPage=1 -dLastPage=1 '-sOutputFile=test.png' '-fmyfile.pdf'

  Which gives an error:

  GPL Ghostscript 9.26 (2018-11-20)
  Copyright (C) 2018 Artifex Software, Inc.  All rights reserved.
  This software comes with NO WARRANTY: see the file PUBLIC for details.
  Processing pages 1 through 1.
  Page 1
  [1]    10954 segmentation fault (core dumped)  ghostscript -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000

  If I omit -dFirstPage=1 -dLastPage=1 it works properly:

  » ghostscript -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 -sDEVICE=pngalpha -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r72x72 '-sOutputFile=test.png' '-fmyfile.pdf'
  GPL Ghostscript 9.26 (2018-11-20)
  Copyright (C) 2018 Artifex Software, Inc.  All rights reserved.
  This software comes with NO WARRANTY: see the file PUBLIC for details.
  Processing pages 1 through 2.
  Page 1
  Page 2

  Please note that it also affects imagemagick convert command and PHP
  readimage command. I have confirmed the bug on Ubuntu 16.04 too.

  The recent ghostscript 9.26 version is definitely guilty.

  ProblemType: Bug
  DistroRelease: Ubuntu 18.10
  Package: ghostscript 9.26~dfsg+0-0ubuntu0.18.10.1
  ProcVersionSignature: Ubuntu 4.18.0-11.12-generic 4.18.12
  Uname: Linux 4.18.0-11-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.10-0ubuntu13.1
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Tue Dec  4 12:59:59 2018
  InstallationDate: Installed on 2018-06-28 (158 days ago)
  InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
  SourcePackage: ghostscript
  UpgradeStatus: Upgraded to cosmic on 2018-10-20 (44 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/gs-gpl/+bug/1806517/+subscriptions