[Debichem-devel] Bug#1107330: openbabel: autopkgtest uses incredible amount of memory on s390x

Pranav P pranav.p7 at ibm.com
Mon Jul 28 15:52:15 BST 2025


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debichem-devel/attachments/20250728/863b048e/attachment.htm>


More information about the Debichem-devel mailing list