Công Nguyễn
2014-03-18 03:39:58 UTC
I had a Automaton script running in background to implement a protocol, the
script runs fine, but after a day or two, the system eventually runs out of
file descriptor.
Running lsof, I saw a lot of python process. Inscrease ulimit does help a
bit, but eventually the script will stop with
Unhandled exception in thread started by <bound method X._do_control of
http://bb.secdev.org/scapy/issue/364/automaton-leaves-too-many-open-file ,
but I can't reach the scapy bug tracker, so I can only send an email here.
is anyone having this problem? Is there any temporary fix?
Thanks.
script runs fine, but after a day or two, the system eventually runs out of
file descriptor.
Running lsof, I saw a lot of python process. Inscrease ulimit does help a
bit, but eventually the script will stop with
Unhandled exception in thread started by <bound method X._do_control of
<pppoe.X object at 0x24eb210>>
File
"/root/python/local/lib/python2.7/site-packages/scapy/automaton.py", line
524, in _do_control
self.send_sock = self.send_sock_class()
File
"/root/python/local/lib/python2.7/site-packages/scapy/arch/linux.py", line
309, in __init__
_flush_fd(self.ins)
File
"/root/python/local/lib/python2.7/site-packages/scapy/arch/linux.py", line
293, in _flush_fd
r,w,e = select([fd],[],[],0)
ValueError: filedescriptor out of range in select()
I saw this bug:File
"/root/python/local/lib/python2.7/site-packages/scapy/automaton.py", line
524, in _do_control
self.send_sock = self.send_sock_class()
File
"/root/python/local/lib/python2.7/site-packages/scapy/arch/linux.py", line
309, in __init__
_flush_fd(self.ins)
File
"/root/python/local/lib/python2.7/site-packages/scapy/arch/linux.py", line
293, in _flush_fd
r,w,e = select([fd],[],[],0)
ValueError: filedescriptor out of range in select()
http://bb.secdev.org/scapy/issue/364/automaton-leaves-too-many-open-file ,
but I can't reach the scapy bug tracker, so I can only send an email here.
is anyone having this problem? Is there any temporary fix?
Thanks.