[issue6600] MemoryError in AiX 64-bit build - PyMem_MALLOC failed

2009-08-05 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: It does appear that this problem occurs wherever `strlen` is used .. and given that strlen is a macro on AIX, I suspect the problem is with the macro definition itself. I will see if wrapping the arguments to PyMem_MALLOC in parenthesis would help. And/o

[issue6600] MemoryError in AiX 64-bit build - PyMem_MALLOC failed

2009-08-05 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Update: posixmodule.c too has the same problem. Attaching similar patch for this: --- python/Modules/posixmodule.c.orig 2009-08-05 09:47:07.0 -0700 +++ python/Modules/posixmodule.c2009-08-05 09:48:46.0 -0700 @@ -6451,7 +6451,7 @

[issue6600] MemoryError in AiX 64-bit build - PyMem_MALLOC failed

2009-08-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: If your patch really fixes the issue, it is probably a compiler problem. Does IBM have a user group or support line to which you can take this? -- nosy: +pitrou ___ Python tracker

[issue6600] MemoryError in AiX 64-bit build - PyMem_MALLOC failed

2009-07-30 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Forget the last comment, the patch is still valid and without it python gives MemoryError. -- ___ Python tracker ___ __

[issue6600] MemoryError in AiX 64-bit build - PyMem_MALLOC failed

2009-07-30 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Damn, now even the original code (without the patch) works. This is an unreliable issue. -- ___ Python tracker ___

[issue6600] MemoryError in AiX 64-bit build - PyMem_MALLOC failed

2009-07-30 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: This is after preprocessor run (cc_r -E):- Original: newmode = (((__strlen(mode) + 3) < 0 || (__strlen(mode) + 3) > ((Py_ssize_t)(((size_t)-1)>>1))) ? 0 : malloc((__strlen(mode) + 3) ? (__strlen(mode) + 3) : 1)); Patched: newmode = (((3 + __strlen(mode))

[issue6600] MemoryError in AiX 64-bit build - PyMem_MALLOC failed

2009-07-30 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : -- components: +Interpreter Core -Build, IO title: MemoryError in AiX 64-bit build -> MemoryError in AiX 64-bit build - PyMem_MALLOC failed ___ Python tracker ___