-
-
Notifications
You must be signed in to change notification settings - Fork 641
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
Partial fix: Callable alias can provoke Bad file descriptor exception
in the internal or external code
#5645
Conversation
for more information, see https://pre-commit.ci
Bad file descriptor exception
in the internal or external code
Thanks @jnoortheen! |
for more information, see https://pre-commit.ci
…x_bad_file_descriptor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's working great for me on my main mac workstation. I installed it with:
pipx runpip xonsh install git+https://github.com/xonsh/xonsh@refs/pull/5645/head
Then I launched the new shell, ran some aliases, and everything seems to be working as expected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
excellent detective work, @anki-code .
It looks like the ubuntu 3.12 job failed with a timeout -- could be a deadlock, could be a fluke |
Thanks to xore team! |
I see the same after restarting. I'll take a look. Thanks! |
…x_bad_file_descriptor
for more information, see https://pre-commit.ci
|
Bad file descriptor exception
in the internal or external codeBad file descriptor exception
in the internal or external code
…x_bad_file_descriptor
Next steps:
Thanks for review to xore! |
Motivation
Closes #5631. After huge amount of experiments and tests in #5640 I see that it looks like during #3897 the handlers that should be closed were mixed up.
Then after tests on POSIX and on Windows I see that we need to split the logic:
Before
See many kind of errors in #5631 (comment)
The minimal cases to repeat in
xonsh --no-rc -st rl
:After
Running the code above is stable.
Notes
Bad file descriptor
exception in the internal or external code #5631 (comment)Bad file descriptor
exception in the internal or external code #5631 (comment)For community
⬇️ Please click the 👍 reaction instead of leaving a
+1
or 👍 comment