Bug 25344 - Fix for #2686 breaks printing (error -12)
Summary: Fix for #2686 breaks printing (error -12)
Status: RESOLVED NOTABUG
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium critical
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-29 10:15 UTC by Iain Lane
Modified: 2009-11-30 09:36 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Iain Lane 2009-11-29 10:15:39 UTC
Hiya,

(This is reported at [0] too).

I don't know anything about poppler, so forgive me for not being as technically accurate as I could be.

I can no longer print with poppler 0.12.2 or HEAD. The error in my cups log follows:

  D [29/Nov/2009:18:00:06 +0000] [Job 27] Error: /ioerror in --showpage--
  D [29/Nov/2009:18:00:06 +0000] [Job 27] Operand stack:
  D [29/Nov/2009:18:00:06 +0000] [Job 27] 1   true
  D [29/Nov/2009:18:00:06 +0000] [Job 27] Execution stack:
  D [29/Nov/2009:18:00:06 +0000] [Job 27] %interp_exit   .runexec2  --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1862   1   3   %oparray_pop   1861   1   3   %oparray_pop   1845   1   3   %oparray_pop   1739   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   1745   0   3   %oparray_pop   --nostringval--   --nostringval--
  D [29/Nov/2009:18:00:06 +0000] [Job 27] Dictionary stack:
  D [29/Nov/2009:18:00:06 +0000] [Job 27] --dict:1159/1684(ro)(G)--   --dict:1/20(G)--   --dict:109/200(L)--
  D [29/Nov/2009:18:00:06 +0000] [Job 27] Current allocation mode is local
  D [29/Nov/2009:18:00:06 +0000] [Job 27] Last OS error: 32
  D [29/Nov/2009:18:00:06 +0000] [Job 27] GPL Ghostscript 8.70: Unrecoverable error, exit code 1
  D [29/Nov/2009:18:00:06 +0000] [Job 27] GPL Ghostscript 8.70: ERROR -12 closing pdfwrite device. See gs/src/ierrors.h for code explanation.

I bisected, and found that commit cb19a40f1507a87a53b60134d09b42fad686f692 is the culprit:

  laney@chicken> git bisect log
  # bad: [524ebbd9f5b3e1cf992cee779055ec1716685a51] poppler 0.12.2
  # good: [943a13c9354dec18cb023642aebbe5d3bb920ed7] poppler 0.12.0
  git bisect start 'poppler-0.12.2' 'poppler-0.12.0'
  # good: [a90248a81cb0f3fdd8405a441b94dce448208d3f] Forgot to update the year here
  git bisect good a90248a81cb0f3fdd8405a441b94dce448208d3f
  # good: [7313dd1018a9028f40e0e511a4e34d793a0ae605] [glib] Fix CVE-2009-3607
  git bisect good 7313dd1018a9028f40e0e511a4e34d793a0ae605
  # bad: [af6a212234e20252c78fd615a8906d529b1821e6] [cairo] Don't render patterns when using CairoImageOutputDev
  git bisect bad af6a212234e20252c78fd615a8906d529b1821e6
  # bad: [cb19a40f1507a87a53b60134d09b42fad686f692] Move the iccColorSpaceCache from a static in GfxState to a member of Gfx
  git bisect bad cb19a40f1507a87a53b60134d09b42fad686f692
  # good: [c53e611cfbb2b027d2cbddb6d8fce8d84319566a] initialize len at 0 when reading the font fails
  git bisect good c53e611cfbb2b027d2cbddb6d8fce8d84319566a

Thanks,
Iain

[0] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=558463
Comment 1 Iain Lane 2009-11-30 03:08:38 UTC
Hmm, looks like it was an ABI break and CUPS just needs rebuilding against it. Should the SONAME have been bumped?
Comment 2 Tomas Janousek 2009-11-30 09:36:33 UTC
It was an API break, not ABI. Rebuild fails and pdftopdf upstream has no fix yet.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.