【Error】Voltron error: [Errno 48] Address already in use
阿新 • • 發佈:2018-12-29
Voltron是macOS下lldb的一個外掛,在使用的時候會遇到諸多的問題。
在lldb filename檔案時,其中之一的log:
➜ lldb cmdshellcode An error occurred while loading Voltron: Traceback (most recent call last): File "/Users/username/Library/Python/2.7/lib/python/site-packages/voltron/entry.py", line 106, in <module> voltron.server.start() File "/Users/username/Library/Python/2.7/lib/python/site-packages/voltron/core.py", line 162, in start run_listener('tcp', ThreadedVoltronWSGIServer, list(voltron.config.server.listen.tcp) + [self.app]) File "/Users/username/Library/Python/2.7/lib/python/site-packages/voltron/core.py", line 154, in run_listener s = cls(*arg) File "/Users/username/Library/Python/2.7/lib/python/site-packages/werkzeug/serving.py", line 577, in __init__ self.address_family), handler) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 420, in __init__ self.server_bind() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind SocketServer.TCPServer.server_bind(self) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 434, in server_bind self.socket.bind(self.server_address) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 228, in meth return getattr(self._sock,name)(*args) error: [Errno 48] Address already in use Please ensure Voltron is installed correctly per the documentation: https://github.com/snare/voltron/wiki/Installation (lldb) target create "cmdshellcode" Current executable set to 'cmdshellcode' (x86_64).
Voltron預設配置使用5555埠進行RPC通訊,找到相應的port,kill即可。
➜ lsof -i:5555
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
lldb 2739 username 5u IPv4 0xc79083f2b460cbbd 0t0 TCP localhost:personal-agent (LISTEN)
➜ kill 2739
[1] + 2739 terminated lldb filename
參考:https://bbs.pediy.com/thread-213499.htm