Last modified: 2014-01-16 04:45:52 UTC
Marking easy, as this is probably a straightforward bug to fix. Currently PDFHandler runs gs and convert in a pipeline (See PdfHandler::doTransform). It sticks 2>&1 on the end of the command to catch error output, however that doesn't apply to the whole pipeline, only the last command. Hence ghostscript (gs) errors are missed. Recommended fix: remove the 2>&1, and instead of calling wfShellExec, call wfShellExecWithStderr. (This will also catch errors for other commands, like the resource limit things, so its better than using 2>&1 anyways).
Change 107161 had a related patch set uploaded by 01tonythomas: Removed the 2>&1 from doTransform and replaced wfShellExec with wfShellExecWithStderr https://gerrit.wikimedia.org/r/107161
Change 107161 merged by jenkins-bot: Change 2>&1 in doTransform to use wfShellExecWithStderr instead https://gerrit.wikimedia.org/r/107161
I misread the code, so this bug didn't really exist, but wfShellExecWithStderr still a good idea.