[issue12755] Service application crash in python25!PyObject_Malloc

2011-08-17 Thread STINNER Victor
STINNER Victor added the comment: I close this issue because it looks like a bug in your application (you say that there is a least a buffer overrun). If it's really a bug in Python and you use a usecase to reproduce it, please reopen the issue. -- resolution: -> invalid status: open

[issue12755] Service application crash in python25!PyObject_Malloc

2011-08-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: With a buffer overrun anything can happen... Here, I would recommend PyErr_Format() instead. But it also may be some other corruption happening before! -- ___ Python tracker

[issue12755] Service application crash in python25!PyObject_Malloc

2011-08-17 Thread Chandra Sekhar Reddy
Chandra Sekhar Reddy added the comment: Hi, Thanks for your valuable feedback, As per your suggestion I have re-verified the code for the possibility of NULL values, intrestingly I have observed that buffer overrun is happening in our application, where there is a character array declared w

[issue12755] Service application crash in python25!PyObject_Malloc

2011-08-16 Thread Martin v . Löwis
Martin v. Löwis added the comment: Notice that Python 2.5 is not supported for bug fixes anymore, so if you truly believe that there is a bug in Python that needs to be fixed, it would be better if you could reproduce it in 2.7. That said, the kind of information you provided really does sugg

[issue12755] Service application crash in python25!PyObject_Malloc

2011-08-16 Thread STINNER Victor
STINNER Victor added the comment: Are you sure that errorString is not NULL? It looks like a bug in your application, not in Python. -- nosy: +haypo ___ Python tracker ___

[issue12755] Service application crash in python25!PyObject_Malloc

2011-08-16 Thread Chandra Sekhar Reddy
Chandra Sekhar Reddy added the comment: Hi Amaury, Thanks for your update on the issue. Here are few details of our application adem.exe 1. We have three c-projects namely, AdemCube, wv, CAM, the output of the build binaries will give us _ADEMCube.pyd, _wv.pyd, _cam.pyd 2. The main project

[issue12755] Service application crash in python25!PyObject_Malloc

2011-08-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Can you please give more context? From the information you gave: - Python is embedded in some program "adem.exe". - Memory seems corrupted, and a C call to PyString_FromStringAndSize() segfaults in PyObject_Malloc(). Most of the time, it will be an issue

[issue12755] Service application crash in python25!PyObject_Malloc

2011-08-15 Thread Chandra Sekhar Reddy
New submission from Chandra Sekhar Reddy : Service application crashed in python25.dll, below are the environment details. Operating System : Windows server 2008 R2 (Virtual Machine) Application Type : Service Application FAULTING_IP: python25!PyObject_Malloc+2d 1e09603d 8b30mov