int/Integer argument type mismatch inside peigs is causing segmentation fault


Click here for full thread
Clicked A Few Times
Win64 not supported
I can put in some porting effort. You say that "Global Arrays" (under src/tools/ga*, correct) are the main source of incompatibility? It just happens that I already built that area with debug information (-g) as part of tracking down this bug.

Still, the bug I reported here may exhibit itself on your supported platforms as well -- the code is invalid according to the C standard and newer compiler versions are getting more and more aggressive about these things.

LP64 platforms such as Linux64 may have bogus values passed in these function calls, because sizeof (Integer) > sizeof (int), and the optimizer may choose not to zero out the padding bytes.

I mentioned CYGWIN64 only as proof that this bug has consequences on real systems, not just a theoretical correctness issue.