Red Hat Bugzilla – Bug 176845
pnmnorm crashes on certain input
Last modified: 2013-07-02 19:12:44 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc4 Firefox/1.0.7
Description of problem:
I have found error messages of this type in the log:
kernel: pnmnorm trap divide error rip:40107f rsp:7fffff8ac400 error:0
They were quite rare, occurring once a week or even less frequenly. I made a wrapper script to find out more and waited for the next crash
The pnmnorm is called as ppmnorm (which is a link to pnmnorm) from the vidwhacker xscreensaver program and sometimes it crashes. I have captured the input file causing the crash. Hope it helps.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. pnmnorm < problem.ppm > output.rpm
Actual Results: Floating point exception
Expected Results: output.ppm file should have been written
Created attachment 122719 [details]
pnmnorm input file - gzipped
This is the file triggering the crash. It is gzipped, the original file is over
The bug is caused by division by zero in the normalization function. I tested it
with the latest upstream version we have in devel and it's fixed there (pnmnorm
displays a warning).
I'll close this after FC4 updates are released.
Fixed in CVS.
From User-Agent: XML-RPC
netpbm-10.31-1.FC4 has been pushed for FC4, which should resolve this issue. If these problems are still present in this version, then please make note of it in this bug report.