Skip to content

Instantly share code, notes, and snippets.

@Ali-Razmjoo
Last active January 20, 2016 11:43
Show Gist options
  • Save Ali-Razmjoo/d503171d338c6381f94f to your computer and use it in GitHub Desktop.
Save Ali-Razmjoo/d503171d338c6381f94f to your computer and use it in GitHub Desktop.
python thread error - 845 threads
part of file:
with ThreadPoolExecutor(max_workers = thread_connection) as executor:
for port in ports:
executor.submit(ping, host, port, available_ports)
D:\some_folder_name\simplecode>simplecode.py
Calculating IPs, Please Wait ...
Total IP(s): 1 Total Port(s): 65535
Total Key(s): 27 Total Extra Key(s): 16
Thread(s) Number: 1
task start for host: 192.168.0.6
Exception in thread Thread-756:
MemoryError
Exception in thread Thread-538:
MemoryError
Exception in thread Thread-66:
MemoryError
Exception in thread Thread-555:
MemoryError
Exception in thread Thread-261:
MemoryError
Exception in thread Thread-834:
MemoryError
Exception in thread Thread-412:
MemoryError
Exception in thread Thread-287:
MemoryError
Unhandled exception in thread started by <bound method Thread.__bootstrap of <Thread(Thread-381, stopped daemon 6720)>>
Traceback (most recent call last):
No handlers could be found for logger "concurrent.futures"
No handlers could be found for logger "concurrent.futures"
No handlers could be found for logger "concurrent.futures"
No handlers could be found for logger "concurrent.futures"
File "C:\Python27\lib\threading.py", line 783, in __bootstrap
No handlers could be found for logger "concurrent.futures"
Unhandled exception in thread started by No handlers could be found for logger "concurrent.futures"
<bound method Thread.__bootstrap of <Thread(Thread-305, stopped daemon 9260)>>self.__bootstrap_inner()
Traceback (most recent call last):
MemoryError File "C:\Python27\lib\threading.py", line 783, in __bootstrap
self.__bootstrap_inner()
MemoryError
C:\Python27\lib\threading.py:862: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
del _active[_get_ident()]
Exception in thread Thread-702:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
File "C:\Python27\lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 248, in __init__
ct = time.time()
MemoryError
Exception in thread Thread-785:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
File "C:\Python27\lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 287, in __init__
self.msecs = (ct - long(ct)) * 1000
MemoryError
Exception in thread Thread-530:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
File "C:\Python27\lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 287, in __init__
self.msecs = (ct - long(ct)) * 1000
MemoryError
Exception in thread Thread-49:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
File "C:\Python27\lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 287, in __init__
self.msecs = (ct - long(ct)) * 1000
MemoryError
Exception in thread Thread-217:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
self.run()
File "C:\Python27\lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 287, in __init__
self.msecs = (ct - long(ct)) * 1000
MemoryError
Exception in thread Thread-40:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
File "C:\Python27\lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 287, in __init__
self.msecs = (ct - long(ct)) * 1000
MemoryError
Exception in thread Thread-9:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
File "C:\Python27\lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 287, in __init__
self.msecs = (ct - long(ct)) * 1000
MemoryError
Exception in thread Thread-106:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
File "C:\Python27\lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 287, in __init__
self.msecs = (ct - long(ct)) * 1000
MemoryError
Exception in thread Thread-569:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
File "C:\Python27\lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 287, in __init__
self.msecs = (ct - long(ct)) * 1000
MemoryError
Exception in thread Thread-166:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
File "C:\Python27\lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 287, in __init__
self.msecs = (ct - long(ct)) * 1000
MemoryError
Exception in thread Thread-244:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
File "C:\Python27\lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 287, in __init__
self.msecs = (ct - long(ct)) * 1000
MemoryError
Exception in thread Thread-122:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
File "C:\Python27\lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 287, in __init__
self.msecs = (ct - long(ct)) * 1000
MemoryError
Exception in thread Thread-514:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
File "C:\Python27\lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 287, in __init__
self.msecs = (ct - long(ct)) * 1000
MemoryError
Exception in thread Thread-251:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
File "C:\Python27\lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 287, in __init__
self.msecs = (ct - long(ct)) * 1000
MemoryError
Exception in thread Thread-542:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
File "C:\Python27\lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 287, in __init__
self.msecs = (ct - long(ct)) * 1000
MemoryError
Exception in thread Thread-708:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
self.run()
File "C:\Python27\lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 287, in __init__
self.msecs = (ct - long(ct)) * 1000
MemoryError
Exception in thread Thread-488:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
File "C:\Python27\lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 287, in __init__
self.msecs = (ct - long(ct)) * 1000
MemoryError
Exception in thread Thread-290:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
File "C:\Python27\lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 287, in __init__
self.msecs = (ct - long(ct)) * 1000
MemoryError
Exception in thread Thread-196:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
self.run()
File "C:\Python27\lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 287, in __init__
self.msecs = (ct - long(ct)) * 1000
MemoryError
Exception in thread Thread-59:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
File "C:\Python27\lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 287, in __init__
self.msecs = (ct - long(ct)) * 1000
MemoryError
Exception in thread Thread-234:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
File "C:\Python27\lib\threading.py", line 763, in run
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 277, in __init__
self.filename = os.path.basename(pathname)
File "C:\Python27\lib\ntpath.py", line 208, in basename
return split(p)[1]
File "C:\Python27\lib\ntpath.py", line 188, in split
while head2 and head2[-1] in '/\\':
MemoryError
Exception in thread Thread-817:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
File "C:\Python27\lib\threading.py", line 763, in run
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 277, in __init__
self.filename = os.path.basename(pathname)
File "C:\Python27\lib\ntpath.py", line 208, in basename
return split(p)[1]
File "C:\Python27\lib\ntpath.py", line 188, in split
while head2 and head2[-1] in '/\\':
MemoryError
Exception in thread Thread-431:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
File "C:\Python27\lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 277, in __init__
self.filename = os.path.basename(pathname)
File "C:\Python27\lib\ntpath.py", line 208, in basename
return split(p)[1]
File "C:\Python27\lib\ntpath.py", line 188, in split
while head2 and head2[-1] in '/\\':
MemoryError
Exception in thread Thread-406:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
File "C:\Python27\lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 82, in _worker
_base.LOGGER.critical('Exception in worker', exc_info=True)
File "C:\Python27\lib\logging\__init__.py", line 1210, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "C:\Python27\lib\logging\__init__.py", line 1283, in _log
record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
File "C:\Python27\lib\logging\__init__.py", line 1257, in makeRecord
rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
File "C:\Python27\lib\logging\__init__.py", line 277, in __init__
self.filename = os.path.basename(pathname)
File "C:\Python27\lib\ntpath.py", line 208, in basename
return split(p)[1]
File "C:\Python27\lib\ntpath.py", line 188, in split
while head2 and head2[-1] in '/\\':
MemoryError
Traceback (most recent call last):
File "D:\some_folder_name\simplecode\simplecode.py", line 31, in <module>
time.sleep(0.1)
KeyboardInterrupt
@Ali-Razmjoo
Copy link
Author

started with 1000 threads

D:\desktop 2016-1-9\simplecode>simplecode.py
Calculating IPs, Please Wait ...


Total IP(s): 1 Total Port(s): 65535
Total Key(s): 27 Total Extra Key(s): 16
Thread(s) Number: 1
task start for host: 192.168.0.6
Traceback (most recent call last):
  File "sub_scanner.py", line 87, in <module>
    scan_ports(host)
  File "sub_scanner.py", line 66, in scan_ports
    executor.submit(ping, host, port, available_ports)
  File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 107, in submit
    self._adjust_thread_count()
  File "C:\Python27\lib\site-packages\concurrent\futures\thread.py", line 123, in _adjust_thread_count
    t.start()
  File "C:\Python27\lib\threading.py", line 745, in start
    _start_new_thread(self.__bootstrap, ())
thread.error: can't start new thread
finish, 1 host(s) scanned```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment