On Sep 9, 2009, at 7:17 AM, Marius Gedminas wrote:

> On Wed, Sep 09, 2009 at 12:10:15PM +0200, Hynek Schlawack wrote:
>>
>> 2009/9/9 Wichert Akkerman <[email protected]>:
>>
>>>> JFTR: It also happens when I merely _resize_ the windows containing
>>>> the "GNU screen"...am I really the only one who encountered this
>>>> problem?
>>> Sounds like your paster needs to ignore a few extra signals (such as
>>> SIGWINCH). I've never seen that happen though.
>>
>> I've just made even more observations: It's not screen's fault.
>> Resizing a terminal _always_ results in a crash by paster. I've tried
>> several ones (xterm, GNOME-Terminal, Konsole) and all crash paster. I
>> rarely resitze terminals but I often re-attach them, and that seems  
>> to
>> cause similar signals.
>>
>> As it only happens after DB access, the suspects are SQLAlchemy and/ 
>> or
>> cx_Oracle. However Django a test project in Django with much of the
>> SQLAlchemy functionality doesn't exhibit this behaviour.
>
> The exception is happening in
>
>  File "/usr/local/lib/python2.6/SocketServer.py", line 262, in  
> handle_request
>
> This reminds me of http://bugs.python.org/issue1068268: Python's
> subprocess module had issues with EINTR and was eventually fixed to  
> wrap
> select, read and write calls and retry them.
>
> It could be that SocketServer.py needs a similar fix.  Or, perhaps,  
> this
> should be fixed once and for all in the select built-in module (as  
> well
> as read/write methods of file objects, I suppose)?
>
> I wish someone well-versed in Unix system call semantics took interest
> in this issue...

I'm not able reproduce this on OSX but I agree with Marius, this is a  
CPython bug just like the other issue. select triggering EINTR isn't  
that abnormal, in fact the asyncore module gracefully handles it in a  
very similar case.

I don't think you'll see the problem on Python 2.5 as its SocketServer  
didn't use select (it's new in 2.6). Log a ticket on the Python bug  
tracker.

--
Philip Jenvey


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to