Skip to content

Claiming Job Completed when GhostScript Runs out of Memory, Causing Print Failed #4824

@SadaleNet

Description

@SadaleNet

Environment:

  • Debian Wheezy
  • CUPS 1.5.3
  • Gutenprint v5.2.9

Steps to reproduce:

  1. (Optional)Disable swap
  2. Somehow fill the RAM of the machine until it has somewhere like 50MB free RAM left.
  3. Print anything(e.g. test page)

Result:

It printed nothing, nor the printer received any print command. However, in /var/log/cups/access_log:

localhost - - [10/May/2016:14:37:12 +0800] "POST /printers/Canon_MG2400_series HTTP/1.1" 200 422 Print-Job successful-ok

In addition, in /var/log/cups/error_log:

D [10/May/2016:14:37:20 +0800] [Job 136] Last OS error: Cannot allocate memory
D [10/May/2016:14:37:20 +0800] [Job 136] GPL Ghostscript 9.05: Unrecoverable error, exit code 1

Expected result:

  1. The print should not be shown as "Completed" or "Successful"
  2. The log level of the error should not be "error" instead of "debug".

It wasted me a few hours to figure out what's wrong. :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    third-partyThis issue is in a third-party component

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions