Service application hanged in python25.dll, below are the environment details. Operating System : Windows server 2008 R2 (Virtual Machine) Application Type : Service Application We have got the process dump from the customer environment and after analyzing the dump using the Windbg tool. Below is the status of the 4 running threads. Last error for thread 0: LastErrorValue: (Win32) 0 (0) - The operation completed successfully. LastStatusValue: (NTSTATUS) 0 - STATUS_WAIT_0 Last error for thread 1: LastErrorValue: (Win32) 0 (0) - The operation completed successfully. LastStatusValue: (NTSTATUS) 0 - STATUS_WAIT_0 Last error for thread 2: LastErrorValue: (Win32) 0 (0) - The operation completed successfully. LastStatusValue: (NTSTATUS) 0 - STATUS_WAIT_0 Last error for thread 3: LastErrorValue: (Win32) 0 (0) - The operation completed successfully. LastStatusValue: (NTSTATUS) 0 - STATUS_WAIT_0 But as part of the hang analysis the command "!analyze -hang" shows some problem with thread 1 Probably caused by : python25.dll ( python25!PyList_New+62 ) 03dff250 1e072c5b python25!PyFuture_FromAST+0x873 03dff25c 1e073307 python25!PyFuture_FromAST+0xbcb 03dff264 1e07332e python25!PyObject_GC_Malloc+0x67 03dff270 1e081502 python25!PyObject_GC_New+0xe 00000000 00000000 python25!PyList_New+0x62 Thanks, -Chandra
This information is far too incomplete, but as a first step, did you check the memory usage of the process? Is the computer constantly swapping memory to disk?
2.5 in no longer maintained. 2.6 only gets security patches. So please test with the latest 2.7 (currently 2.7.2). If you cannot do that, please close.
Hi Amaury and Terry, Thanks for your feedback, actually the product that we have delivered to customer is now in support phase, so currently there is no development going on, so we cannot use the latest python. It would be of great help if you could provide your inputs by looking at the process call stack. So that I can proceed further. From the call stack the function appears to be like memory allocation related functions from python module. Is it possible for a process to hang if memory request to OS is not satisfied. Awaiting for your valuable inputs, -Chandra
Unfortunately there is not much in the process call stack: the creation of a list (PyList_New) needs to allocate some memory (not much: sizeof(PyListObject) + gc overhead, probably 32 bytes). If the system malloc() function fails and returns NULL, Python will raise a MemoryError. But if malloc() blocks and freezes the process, there is not much Python can do.
I am closing this because there is no issue for currently maintained CPython. If you have further questions, try python-list or a question-answer forum such as StackOverflow.
History
Date
User
Action
Args
2022-04-11 14:57:23
admin
set
github: 57544
2011-11-07 23:06:18
terry.reedy
set
status: open -> closedresolution: out of datemessages: +