-
-
Notifications
You must be signed in to change notification settings - Fork 629
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
bare exception in xonsh when executing process via sudo #2883
Comments
This also occurs when just executing a command on the command-line. $ sudo docker container stop foo
xonsh: To log full traceback to a file set: $XONSH_TRACEBACK_LOGFILE = <filename>
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/xonsh/base_shell.py", line 360, in default
run_compiled_code(code, self.ctx, None, "single")
File "/usr/local/lib/python3.6/dist-packages/xonsh/codecache.py", line 67, in run_compiled_code
func(code, glb, loc)
File "<xonsh-code>", line 1, in <module>
File "/usr/local/lib/python3.6/dist-packages/xonsh/built_ins.py", line 946, in subproc_captured_hiddenobject
return run_subproc(cmds, captured="hiddenobject")
File "/usr/local/lib/python3.6/dist-packages/xonsh/built_ins.py", line 898, in run_subproc
pause_call_resume(proc, builtins.__xonsh__.shell.settitle)
File "/usr/local/lib/python3.6/dist-packages/xonsh/proc.py", line 2416, in pause_call_resume
p.send_signal(signal.SIGSTOP)
File "/usr/lib/python3.6/subprocess.py", line 1580, in send_signal
os.kill(self.pid, sig)
PermissionError: [Errno 1] Operation not permitted In either case (in a function, or on the cli) this freezes the XONSH instance, which must be sent a |
Thanks for reporting this @eode! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running a process via 'sudo', an exception is raised sometimes:
The actual code run is
sudo docker container stop @(container.hash)
, wherecontainer.hash
is just a namedtuple containing a text string.This is on an Amazon Ubuntu AMI, t2.micro.
xonfig
Expected Behavior
An exception should only be raised if my code is wrong.
Current Behavior
An exception is raised for some other reason, shown in the above traceback.
Steps to Reproduce
This is the exact code:
The text was updated successfully, but these errors were encountered: