Hi Paul,

I was currently looking into this package.
In line no. 166 of getinchi.cpp there is a while loop that goes like the 
following:

while((ch=is.get())!=EOF)

Here ch is of type char. Whether char is signed or unsigned depends on the 
implementation.
Looks like in s390x char is of unsigned nature and the value of EOF is -1. 
Hence the condition always
evaluates to true (255 != -1) causing the control to be trapped inside the loop 
resulting in the memory hog.
Changing the variable's declaration to unsigned char seems to fix the memory 
consumption issue.
But I am still seeing the autopkgtest as failed due to some other reason.

I will update on the same as soon as I find anything.

Thanks,
Pranav

Reply via email to