[cups-devel] [MOD] STR #4726: If filter or backend errors, in the error_log entry exit status and error message do not correspond

Till Kamppeter noreply at cups.org
Tue Oct 6 08:07:48 PDT 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

I am testing the printing on an ARM system and CUPS does not succeed to
start the /usr/lib/cups/backend/ipps executable, erroring out with status
127 which is by the standards "Command not found" (does not only occur wen
the referenced executable file does not exist but also when its interpreter
according to the shebang or a library needed by it is missing). The
error_log gives an entry like this:

D [06/Oct/2015:08:51:08 -0300] [Job 5] PID 3979
(/usr/lib/cups/backend/ipps) stopped with status 127 (File too large)

with the text description of the error being "File too large". I was
wondering a lot that it even appeared with a 1-byte-long job.

Looking into the source code reveals that this text does not correspond
with the exit status:

File scheduler/main.c, function process_children():

[...]
        if (code > 100)
          cupsdLogJob(job, CUPSD_LOG_DEBUG,
                      "PID %d (%s) stopped with status %d (%s)", pid, name,
                      code, strerror(code - 100));
[...]

The numeric code is straightly shown: code -> status %d
But the text is of code - 100: strerror(code - 100) -> (%s)

So the text is of exit status 27 here.

Link: https://www.cups.org/str.php?L4726
Version: 2.0.2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJWE+PEAAoJENujp6sI12IjkrwP/2xsjAQsjSeVNeRPcCQ4jbJM
7cufC7nfjWVDm+zgqzlx9fMcTfyXJP7ztaBqt9c0n5YOAN8W1XzK7e+bJYJ/ZhPE
jKbkmUrsQvFXhL/4VtCCZ9X2xw3kg52ASDar6d09Y2yL6/TNcDi9Ep9kjH8IjhCO
gjeO9rA6EpxFxkHNwYql6k4+YP+K+Kw7WLbrkRzpkVva41YEmDRdnv67aaVewPHv
QFA2WYDKrYbY8KW39xH7d9tahlCS84gj9fuR8Z4AST057QNKQjhOAcZ9FVGQsXQo
llal/BmzBTtet2+Jl81mGcN/KeCMiwPIm84CPVcUlneqR18CfM4Ed47CjWjZANu4
zUvAohKFPBe+i4rOBe5a4rnnYv3MSIa2+iaXxipuicfUR1gmuZ8v0X48mjlZEqHU
gwfzaFmTE+7Mk4PuA9pe/5hLlLTrW/X+XifOA3W1QRE8j5/zu2bUmJyO/w7f8fdN
cTNvOu+drutXYuMBBbq8feABgsqRPzdtilC7h+F2KuronH+gzw7PkEFQa0jd3kcz
ZBnyIA//qncop/kJ9pyCI5ZuZJ+bypepb1moXvfOWs02lxy2pYnOhyPJu5e8Ufz6
+IOXYuBf8GhDYP72aBK4EeAMId0kBf9zIUndxFxWz6ogmSW5RdZ4QuL/xeezY5Fn
C40Z1wvExrC+Y6M//mI+
=FWor
-----END PGP SIGNATURE-----




More information about the cups mailing list