Bug 188594

Summary: pnmtopng fails
Product: [Fedora] Fedora Reporter: Robin Humble <humble+fedora>
Component: netpbmAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: m.oliver, pknirsch
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-04-18 12:27:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robin Humble 2006-04-11 16:20:38 UTC
Description of problem:
pnmtopng dumps core and fails to work

Version-Release number of selected component (if applicable):
netpbm-10.33-0.FC4

How reproducible:
100%

Steps to Reproduce:
1. pngtopnm /usr/share/icons/Bluecurve/48x48/apps/redhat-system_settings.png |
pnmtopng > red.png

Actual results:
pnmtopng: nstring.c:940: vasprintfN: Assertion `str_l2 == str_l' failed.
Abort (core dumped)


Expected results:
producing an image

Additional info:
it works on some images. eg.
  ppmmake red 10 10 > red.ppm
  pnmtopng < red.ppm > red.png
but doing the same thing in one line does not work (hits the same assert() as
above):
  ppmmake red 10 10 | pnmtopng > red.png

as another example, this works
  pngtopnm /usr/share/icons/Bluecurve/48x48/apps/redhat-system_settings.png |
pnmquant 256 > red.ppm
  pnmtopng < red.ppm > red.png
but without the pnmquant it does not work (same assert again):
  pngtopnm /usr/share/icons/Bluecurve/48x48/apps/redhat-system_settings.png >
red.ppm
  pnmtopng < red.ppm > red.png

Comment 1 Jindrich Novy 2006-04-13 14:41:04 UTC
Ok, pnmtopng will fail with the error even if it's called with no arguments on
x86_64. The error doesn't occur on 32bit arches. The culprit is the code in
nstring.h, which is now fixed in rawhide.

Comment 2 Jindrich Novy 2006-04-14 18:06:54 UTC
*** Bug 188755 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Update System 2006-04-17 15:41:51 UTC
netpbm-10.33-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.

Comment 4 Robin Humble 2006-04-17 17:14:04 UTC
looks resolved to me. speedy work. thanks!

Comment 5 Jindrich Novy 2006-04-18 12:27:46 UTC
Thanks for feedback, closing ERRATA then.