Skip to content

Instantly share code, notes, and snippets.

@harlowja
Created February 3, 2016 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harlowja/b91b512dcf1b6db592bb to your computer and use it in GitHub Desktop.
Save harlowja/b91b512dcf1b6db592bb to your computer and use it in GitHub Desktop.
>>> pgt(False)
0 <greenlet.greenlet object at 0x2b4bf85372d0>
0.1 Frame: switch
File: /homes/harlowja/dev/os/oslo_service/.venv/lib/python2.7/site-packages/eventlet/backdoor.py
Captured at line number: 66
3 Local variables:
args => (5,)
kw => {}
self => <eventlet.backdoor.SocketConsole object at 0x2b4bf85379b0>
0.2 Frame: wait
File: /homes/harlowja/dev/os/oslo_service/.venv/lib/python2.7/site-packages/eventlet/hubs/poll.py
Captured at line number: 115
11 Local variables:
SYSTEM_EXCEPTIONS => (<type 'exceptions.KeyboardInterrupt'>, <type 'exceptions.SystemExit'>)
callbacks => set([(FdListener('read', 5, <bound method SocketConsole.switch of <eventlet.backdoor.SocketConsole object at 0x2b4bf85379b0>>, <built-in method throw of SocketConsole object at 0x2b4bf85379b0>), 5)])
event => 1
fileno => 5
listener => FdListener('read', 5, <bound method SocketConsole.switch of <eventlet.backdoor.SocketConsole object at 0x2b4bf85379b0>>, <built-in method throw of SocketConsole object at 0x2b4bf85379b0>)
presult => [(5, 1)]
readers => {3: FdListener('read', 3, <built-in method switch of GreenThread object at 0x2b4bf8537910>, <built-in method throw of GreenThread object at 0x2b4bf8537910>)}
seconds => 60.0
self => <eventlet.hubs.epolls.Hub object at 0x2b4bf8591e90>
writers => {}
0.3 Frame: run
File: /homes/harlowja/dev/os/oslo_service/.venv/lib/python2.7/site-packages/eventlet/hubs/hub.py
Captured at line number: 346
5 Local variables:
a => ()
kw => {}
self => <eventlet.hubs.epolls.Hub object at 0x2b4bf8591e90>
sleep_time => 60.0
wakeup_when => None
1 <eventlet.greenthread.GreenThread object at 0x2b4bf8537910>
1.1 Frame: switch
File: /homes/harlowja/dev/os/oslo_service/.venv/lib/python2.7/site-packages/eventlet/hubs/hub.py
Captured at line number: 294
3 Local variables:
cur => <eventlet.greenthread.GreenThread object at 0x2b4bf8537910>
self => <eventlet.hubs.epolls.Hub object at 0x2b4bf8591e90>
switch_out => None
1.2 Frame: trampoline
File: /homes/harlowja/dev/os/oslo_service/.venv/lib/python2.7/site-packages/eventlet/hubs/__init__.py
Captured at line number: 162
11 Local variables:
fd => <socket._socketobject object at 0x2b4bf854ec20>
fileno => 3
hub => <eventlet.hubs.epolls.Hub object at 0x2b4bf8591e90>
listener => FdListener('read', 3, <built-in method switch of GreenThread object at 0x2b4bf8537910>, <built-in method throw of GreenThread object at 0x2b4bf8537910>)
mark_as_closed => <bound method GreenSocket._mark_as_closed of <eventlet.greenio.base.GreenSocket object at 0x2b4bf85914d0>>
read => True
t => None
timeout => None
timeout_exc => timeout('timed out',)
write => False
1.3 Frame: _trampoline
File: /homes/harlowja/dev/os/oslo_service/.venv/lib/python2.7/site-packages/eventlet/greenio/base.py
Captured at line number: 201
6 Local variables:
fd => <socket._socketobject object at 0x2b4bf854ec20>
read => True
self => <eventlet.greenio.base.GreenSocket object at 0x2b4bf85914d0>
timeout => None
timeout_exc => timeout('timed out',)
write => False
1.4 Frame: accept
File: /homes/harlowja/dev/os/oslo_service/.venv/lib/python2.7/site-packages/eventlet/greenio/base.py
Captured at line number: 218
5 Local variables:
fd => <socket._socketobject object at 0x2b4bf854ec20>
res => None
self => <eventlet.greenio.base.GreenSocket object at 0x2b4bf85914d0>
1.5 Frame: backdoor_server
File: /homes/harlowja/dev/os/oslo_service/.venv/lib/python2.7/site-packages/eventlet/backdoor.py
Captured at line number: 104
8 Local variables:
listening_on => '127.0.0.1:37355'
locals => {'quit': <function _dont_use_this at 0x2b4bf86ac848>, '__builtins__': {'bytearray': <type 'bytearray'>, 'IndexError': <type 'exceptions.IndexError'>, 'all': <built-in function all>, 'help': Type help() for interactive help, or help(object) for help about object., 'vars': <built-in function vars>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'unicode': <type 'unicode'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'memoryview': <type 'memoryview'>, 'isinstance': <built-in function isinstance>, 'copyright': Copyright (c) 2001-2015 Python Software Foundation.
All Rights Reserved.
Copyright (c) 2000 BeOpen.com.
All Rights Reserved.
Copyright (c) 1995-2001 Corporation for National Research Initiatives.
All Rights Reserved.
Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved., 'NameError': <type 'exceptions.NameError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'dict': <type 'dict'>, 'input': <built-in function input>, 'oct': <built-in function oct>, 'bin': <built-in function bin>, 'SystemExit': <type 'exceptions.SystemExit'>, 'StandardError': <type 'exceptions.StandardError'>, 'format': <built-in function format>, 'repr': <built-in function repr>, 'sorted': <built-in function sorted>, 'False': False, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'list': <type 'list'>, 'iter': <built-in function iter>, 'reload': <built-in function reload>, 'Warning': <type 'exceptions.Warning'>, '__package__': None, 'round': <built-in function round>, 'dir': <built-in function dir>, 'cmp': <built-in function cmp>, 'set': <type 'set'>, 'bytes': <type 'str'>, 'reduce': <built-in function reduce>, 'intern': <built-in function intern>, 'issubclass': <built-in function issubclass>, 'Ellipsis': Ellipsis, 'EOFError': <type 'exceptions.EOFError'>, 'locals': <built-in function locals>, 'BufferError': <type 'exceptions.BufferError'>, 'slice': <type 'slice'>, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'sum': <built-in function sum>, 'getattr': <built-in function getattr>, 'abs': <built-in function abs>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'print': <built-in function print>, 'True': True, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'None': None, 'hash': <built-in function hash>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'len': <built-in function len>, 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
for supporting Python development. See www.python.org for more information., 'frozenset': <type 'frozenset'>, '__name__': '__builtin__', 'ord': <built-in function ord>, 'super': <type 'super'>, 'TypeError': <type 'exceptions.TypeError'>, 'license': Type license() to see the full license text, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'filter': <built-in function filter>, 'range': <built-in function range>, 'staticmethod': <type 'staticmethod'>, 'SystemError': <type 'exceptions.SystemError'>, 'BaseException': <type 'exceptions.BaseException'>, 'pow': <built-in function pow>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'float': <type 'float'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'globals': <built-in function globals>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'apply': <built-in function apply>, 'LookupError': <type 'exceptions.LookupError'>, 'open': <built-in function open>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'basestring': <type 'basestring'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'zip': <built-in function zip>, 'hex': <built-in function hex>, 'long': <type 'long'>, 'next': <built-in function next>, 'ImportError': <type 'exceptions.ImportError'>, 'chr': <built-in function chr>, 'xrange': <type 'xrange'>, 'type': <type 'type'>, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", 'Exception': <type 'exceptions.Exception'>, 'tuple': <type 'tuple'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'reversed': <type 'reversed'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'IOError': <type 'exceptions.IOError'>, 'hasattr': <built-in function hasattr>, 'delattr': <built-in function delattr>, 'setattr': <built-in function setattr>, 'raw_input': <built-in function raw_input>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'compile': <built-in function compile>, 'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'str': <type 'str'>, 'property': <type 'property'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'int': <type 'int'>, '__import__': <built-in function __import__>, 'KeyError': <type 'exceptions.KeyError'>, 'coerce': <built-in function coerce>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'file': <type 'file'>, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'unichr': <built-in function unichr>, 'id': <built-in function id>, 'OSError': <type 'exceptions.OSError'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'min': <built-in function min>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'execfile': <built-in function execfile>, 'any': <built-in function any>, 'complex': <type 'complex'>, 'bool': <type 'bool'>, 'ValueError': <type 'exceptions.ValueError'>, 'NotImplemented': NotImplemented, 'map': <built-in function map>, 'buffer': <type 'buffer'>, 'max': <built-in function max>, 'object': <type 'object'>, 'TabError': <type 'exceptions.TabError'>, 'callable': <built-in function callable>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, 'eval': <built-in function eval>, '__debug__': True, 'IndentationError': <type 'exceptions.IndentationError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'classmethod': <type 'classmethod'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'OverflowError': <type 'exceptions.OverflowError'>}, 'pnt': <function _print_nativethreads at 0x2b4bf8579938>, 'pgt': <function _print_greenthreads at 0x2b4bf85798c0>, 'exit': <function _dont_use_this at 0x2b4bf86ac848>, 'fo': <function _find_objects at 0x2b4bf8579848>}
sock => <eventlet.greenio.base.GreenSocket object at 0x2b4bf85914d0>
socketpair => (<eventlet.greenio.base.GreenSocket object at 0x2b4bf2d2a390>, ('127.0.0.1', 50075))
1.6 Frame: main
File: /homes/harlowja/dev/os/oslo_service/.venv/lib/python2.7/site-packages/eventlet/greenthread.py
Captured at line number: 214
5 Local variables:
args => (<eventlet.greenio.base.GreenSocket object at 0x2b4bf85914d0>,)
function => <function backdoor_server at 0x2b4bf7db4aa0>
kwargs => {'locals': {'quit': <function _dont_use_this at 0x2b4bf86ac848>, '__builtins__': {'bytearray': <type 'bytearray'>, 'IndexError': <type 'exceptions.IndexError'>, 'all': <built-in function all>, 'help': Type help() for interactive help, or help(object) for help about object., 'vars': <built-in function vars>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'unicode': <type 'unicode'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'memoryview': <type 'memoryview'>, 'isinstance': <built-in function isinstance>, 'copyright': Copyright (c) 2001-2015 Python Software Foundation.
All Rights Reserved.
Copyright (c) 2000 BeOpen.com.
All Rights Reserved.
Copyright (c) 1995-2001 Corporation for National Research Initiatives.
All Rights Reserved.
Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved., 'NameError': <type 'exceptions.NameError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'dict': <type 'dict'>, 'input': <built-in function input>, 'oct': <built-in function oct>, 'bin': <built-in function bin>, 'SystemExit': <type 'exceptions.SystemExit'>, 'StandardError': <type 'exceptions.StandardError'>, 'format': <built-in function format>, 'repr': <built-in function repr>, 'sorted': <built-in function sorted>, 'False': False, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'list': <type 'list'>, 'iter': <built-in function iter>, 'reload': <built-in function reload>, 'Warning': <type 'exceptions.Warning'>, '__package__': None, 'round': <built-in function round>, 'dir': <built-in function dir>, 'cmp': <built-in function cmp>, 'set': <type 'set'>, 'bytes': <type 'str'>, 'reduce': <built-in function reduce>, 'intern': <built-in function intern>, 'issubclass': <built-in function issubclass>, 'Ellipsis': Ellipsis, 'EOFError': <type 'exceptions.EOFError'>, 'locals': <built-in function locals>, 'BufferError': <type 'exceptions.BufferError'>, 'slice': <type 'slice'>, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'sum': <built-in function sum>, 'getattr': <built-in function getattr>, 'abs': <built-in function abs>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'print': <built-in function print>, 'True': True, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'None': None, 'hash': <built-in function hash>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'len': <built-in function len>, 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
for supporting Python development. See www.python.org for more information., 'frozenset': <type 'frozenset'>, '__name__': '__builtin__', 'ord': <built-in function ord>, 'super': <type 'super'>, 'TypeError': <type 'exceptions.TypeError'>, 'license': Type license() to see the full license text, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'filter': <built-in function filter>, 'range': <built-in function range>, 'staticmethod': <type 'staticmethod'>, 'SystemError': <type 'exceptions.SystemError'>, 'BaseException': <type 'exceptions.BaseException'>, 'pow': <built-in function pow>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'float': <type 'float'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'globals': <built-in function globals>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'apply': <built-in function apply>, 'LookupError': <type 'exceptions.LookupError'>, 'open': <built-in function open>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'basestring': <type 'basestring'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'zip': <built-in function zip>, 'hex': <built-in function hex>, 'long': <type 'long'>, 'next': <built-in function next>, 'ImportError': <type 'exceptions.ImportError'>, 'chr': <built-in function chr>, 'xrange': <type 'xrange'>, 'type': <type 'type'>, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", 'Exception': <type 'exceptions.Exception'>, 'tuple': <type 'tuple'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'reversed': <type 'reversed'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'IOError': <type 'exceptions.IOError'>, 'hasattr': <built-in function hasattr>, 'delattr': <built-in function delattr>, 'setattr': <built-in function setattr>, 'raw_input': <built-in function raw_input>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'compile': <built-in function compile>, 'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'str': <type 'str'>, 'property': <type 'property'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'int': <type 'int'>, '__import__': <built-in function __import__>, 'KeyError': <type 'exceptions.KeyError'>, 'coerce': <built-in function coerce>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'file': <type 'file'>, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'unichr': <built-in function unichr>, 'id': <built-in function id>, 'OSError': <type 'exceptions.OSError'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'min': <built-in function min>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'execfile': <built-in function execfile>, 'any': <built-in function any>, 'complex': <type 'complex'>, 'bool': <type 'bool'>, 'ValueError': <type 'exceptions.ValueError'>, 'NotImplemented': NotImplemented, 'map': <built-in function map>, 'buffer': <type 'buffer'>, 'max': <built-in function max>, 'object': <type 'object'>, 'TabError': <type 'exceptions.TabError'>, 'callable': <built-in function callable>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, 'eval': <built-in function eval>, '__debug__': True, 'IndentationError': <type 'exceptions.IndentationError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'classmethod': <type 'classmethod'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'OverflowError': <type 'exceptions.OverflowError'>}, 'pnt': <function _print_nativethreads at 0x2b4bf8579938>, 'pgt': <function _print_greenthreads at 0x2b4bf85798c0>, 'exit': <function _dont_use_this at 0x2b4bf86ac848>, 'fo': <function _find_objects at 0x2b4bf8579848>}}
self => <eventlet.greenthread.GreenThread object at 0x2b4bf8537910>
2 <eventlet.backdoor.SocketConsole object at 0x2b4bf85379b0>
3 <greenlet.greenlet object at 0x2b4bf2da45f0>
3.1 Frame: switch
File: /homes/harlowja/dev/os/oslo_service/.venv/lib/python2.7/site-packages/eventlet/hubs/hub.py
Captured at line number: 294
3 Local variables:
cur => <greenlet.greenlet object at 0x2b4bf2da45f0>
self => <eventlet.hubs.epolls.Hub object at 0x2b4bf8591e90>
switch_out => None
3.2 Frame: wait
File: /homes/harlowja/dev/os/oslo_service/.venv/lib/python2.7/site-packages/eventlet/event.py
Captured at line number: 121
2 Local variables:
current => <greenlet.greenlet object at 0x2b4bf2da45f0>
self => <eventlet.event.Event object at 0x2b4bf2d31e90>
3.3 Frame: wait
File: /homes/harlowja/dev/os/oslo_service/.venv/lib/python2.7/site-packages/eventlet/greenthread.py
Captured at line number: 175
1 Local variables:
self => <eventlet.greenthread.GreenThread object at 0x2b4bf8537910>
3.4 Frame: _main
File: oslo_service/eventlet_backdoor.py
Captured at line number: 187
6 Local variables:
_port => 37355
cfg => <module 'oslo_config.cfg' from '/homes/harlowja/dev/os/oslo_service/.venv/lib/python2.7/site-packages/oslo_config/cfg.pyc'>
conf => <oslo_config.cfg.ConfigOpts object at 0x2b4bf7d9ced0>
eventlet => <module 'eventlet' from '/homes/harlowja/dev/os/oslo_service/.venv/lib/python2.7/site-packages/eventlet/__init__.pyc'>
port_thread => (37355, <eventlet.greenthread.GreenThread object at 0x2b4bf8537910>)
thread => <eventlet.greenthread.GreenThread object at 0x2b4bf8537910>
3.5 Frame: <module>
File: oslo_service/eventlet_backdoor.py
Captured at line number: 192
0 Local variables.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment