[Zope] Re: [Zope-dev] Curiously Zope Hanging

ender kthangavelu@earthlink.net
Fri, 13 Jul 2001 03:50:11 -0700


On Friday 13 July 2001 05:30, Gilles Lavaux wrote:
>>Hello,
>>
>>I dont' understand one point:
>>- the gdchart cause one request to hang, good. But this should not froze
>> the zserver, usually there are several threads running.
>>
>>As I understand, the zserver should froze when you have sended N requests
>>which get stuck in the gdchat lib.  N being the number of threads
>> configured in Z2.py.
>>Was it like this??

that really depends on the library, if you make a call into a c library 
without doing the proper PY_ALLOW_THREADS incantations than you can possibly 
hang the interpreter, for the length of the call to c. however just about 
every well written c module does do the proper thing, i'm not familiar with 
the gd lib stuff, so i can't comment on it. and of course if the library 
itself isn't thread safe there are other possible complications.

kapil
 

>>Gilles
>>-----Original Message-----
>>From: Andre Schubert <andre.schubert@geyer.kabeljournal.de>
>>To: steve@spvi.com <steve@spvi.com>
>>Cc: zope <zope-dev@zope.org>
>>Date: Friday, July 13, 2001 1:25 PM
>>Subject: Re: [Zope-dev] Curiously Zope Hanging
>>
>>>Hi,
>>>
>>>Ok, we( my SysAdmin and i ) have found the problem of hanging.
>>>After hours of searching in the python Sources of all the Products which
>>>are involved
>>>we have nothing found.
>>>At this point my SysAdmin has the idea to trace the python processes
>>>with gdb.
>>>After this we could see that Zope was running somewhare in the
>>>gdchart.so module.
>>>After an update of the gdchart.so the problem doesn't occur anymore.
>>>I doesn't know enough to work with gdb, but if my SysAdmin were not able
>>>to work with gdb so very well, i never have found the point were Zope
>>>runs into another universe :)
>>>
>>>thanks as
>>>
>>>Steve Spicklemire schrieb:
>>>> Sorry.. got distracted and forgot where I was!
>>>>
>>>> > I think I get the basic picture... but
>>>>
>>>> I think maybe we need more details of your system to be of any more
>>
>>help..
>>
>>>> -steve
>>>>
>>>> > > as
>>>> > >
>>>> > > Steve Spicklemire schrieb:
>>>> > > > Well, the good news is you have a reproducable symptom!
>>>> >
>>>> > _______________________________________________
>>>> > Zope-Dev maillist  -  Zope-Dev@zope.org
>>>> > http://lists.zope.org/mailman/listinfo/zope-dev
>>>> > **  No cross posts or HTML encoding!  **
>>>> > (Related lists -
>>>> >  http://lists.zope.org/mailman/listinfo/zope-announce
>>>> >  http://lists.zope.org/mailman/listinfo/zope )
>>>>
>>>> _______________________________________________
>>>> Zope-Dev maillist  -  Zope-Dev@zope.org
>>>> http://lists.zope.org/mailman/listinfo/zope-dev
>>>> **  No cross posts or HTML encoding!  **
>>>> (Related lists -
>>>>  http://lists.zope.org/mailman/listinfo/zope-announce
>>>>  http://lists.zope.org/mailman/listinfo/zope )
>>>
>>>_______________________________________________
>>>Zope-Dev maillist  -  Zope-Dev@zope.org
>>>http://lists.zope.org/mailman/listinfo/zope-dev
>>>**  No cross posts or HTML encoding!  **
>>>(Related lists -
>>> http://lists.zope.org/mailman/listinfo/zope-announce
>>> http://lists.zope.org/mailman/listinfo/zope )
>>
>>_______________________________________________
>>Zope maillist  -  Zope@zope.org
>>http://lists.zope.org/mailman/listinfo/zope
>>**   No cross posts or HTML encoding!  **
>>(Related lists -
>> http://lists.zope.org/mailman/listinfo/zope-announce
>> http://lists.zope.org/mailman/listinfo/zope-dev )