-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad file descriptor #64
Comments
At a guess, the socket error is because the ghidra-bridge client that was
doing something has closed its connection (probably because your script
finished), but has registered some sort of callback in ghidra that is being
triggered by GUI events. If that sounds about right, try making sure your
script removes those sorts of callbacks before it exits.
That's just a guess, though - if you could include your script, I could
give better advice.
…On Thu, 17 Feb 2022, 8:48 am Anastasia Bourlas (Stasia), < ***@***.***> wrote:
I have something that leverage some of the gui portions of ghidra and any
button I click ( including the red x in the top right to close it) results
in this error:
_socket.error: [Errno 9] Bad file descriptor Traceback (most recent call
last): File "/home/stasia/ghidra_scripts/jfx_bridge/bridge.py", line 2092,
in __call__ return self._bridge_conn.remote_call(self._bridge_handle,
*args, **kwargs) File "/home/stasia/ghidra_scripts/jfx_bridge/bridge.py",
line 194, in wrapper return func(self, *args, **kwargs) File
"/home/stasia/ghidra_scripts/jfx_bridge/bridge.py", line 1053, in
remote_call return self.deserialize_from_dict(self.send_cmd(command_dict))
File "/home/stasia/ghidra_scripts/jfx_bridge/bridge.py", line 207, in
wrapper return_val = func(self, *args, **kwargs) File
"/home/stasia/ghidra_scripts/jfx_bridge/bridge.py", line 959, in send_cmd
write_size_and_data_to_socket(sock, data) File
"/home/stasia/ghidra_scripts/jfx_bridge/bridge.py", line 311, in
write_size_and_data_to_socket bytes_sent = sock.send(package[sent:]) File
"/home/stasia/ghidra_10.0.3_PUBLIC/Ghidra/Features/Python/data/jython-2.7.2/Lib/_socket.py",
line 1387, in _dummy raise error(errno.EBADF, 'Bad file descriptor')
_socket.error: [Errno 9] Bad file descriptor
I'm not exactly what to make of this. I'm not sure what IS the bad file
it's referring to.
Any insight would be appreciated!
—
Reply to this email directly, view it on GitHub
<#64>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AENHWIAW7CANEKOMT2OTETTU3QLRZANCNFSM5OS3TJHA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have something that leverages some of the gui portions of ghidra and any button I click from the pop up box from my script ( including the red x in the top right to close it) results in this error:
_socket.error: [Errno 9] Bad file descriptor Traceback (most recent call last): File "/home/stasia/ghidra_scripts/jfx_bridge/bridge.py", line 2092, in __call__ return self._bridge_conn.remote_call(self._bridge_handle, *args, **kwargs) File "/home/stasia/ghidra_scripts/jfx_bridge/bridge.py", line 194, in wrapper return func(self, *args, **kwargs) File "/home/stasia/ghidra_scripts/jfx_bridge/bridge.py", line 1053, in remote_call return self.deserialize_from_dict(self.send_cmd(command_dict)) File "/home/stasia/ghidra_scripts/jfx_bridge/bridge.py", line 207, in wrapper return_val = func(self, *args, **kwargs) File "/home/stasia/ghidra_scripts/jfx_bridge/bridge.py", line 959, in send_cmd write_size_and_data_to_socket(sock, data) File "/home/stasia/ghidra_scripts/jfx_bridge/bridge.py", line 311, in write_size_and_data_to_socket bytes_sent = sock.send(package[sent:]) File "/home/stasia/ghidra_10.0.3_PUBLIC/Ghidra/Features/Python/data/jython-2.7.2/Lib/_socket.py", line 1387, in _dummy raise error(errno.EBADF, 'Bad file descriptor') _socket.error: [Errno 9] Bad file descriptor
I'm not exactly what to make of this. I'm not sure what IS the bad file it's referring to.
Any insight would be appreciated!
The text was updated successfully, but these errors were encountered: