Red Hat Bugzilla – Bug 199409
ppmtompeg -- double call of fclose() on a single FILE * raising glibc exception
Last modified: 2013-07-02 19:16:44 EDT
Description of problem:
When running ppmtompeg in parallel mode, Combine server tries
to fclose single *FILE structure twice.
Version-Release number of selected component (if applicable):
10.33, 10.34, most-likely in previous versions too.
Run ppmtompeg in parallel mode.
Steps to Reproduce:
1. run ppmtompeg in parallel mode
2. after combine server shut down, glibc reports
'double free or corruption error'
glibc error report:
*** glibc detected ***
free or corruption (fasttop): 0x08d5f0f0 ***
======= Backtrace: =========
/lib/libc.so.6(fclose+0x140)[0x1654c0] ... report continues.
glibc error mentioned above causes combine server to exit uncleanly,
but it does not affect encoded mpeg-file in any way, as it is already
flushed and closed.
Attached patch solves this problem.
Created attachment 132678 [details]
NetPBM double fclose() patch
Fixed since 10.34-2.
netpbm-10.34-1.fc5 has been pushed for fc5, which should resolve this issue. If these problems are still present in this version, then please make note of it in this bug report.