-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
remote execution #3625
Comments
Does JRuby work at all under PowerShell? It looks like something's messing with paths and preventing us from loading the native libs we need. |
Hi @headius, We have a very similar problem in RubyMine with crashing IRB console when using the latest JRrubies (9.0.5.0, for instance). Here is an issue in our tracker: https://youtrack.jetbrains.com/issue/RUBY-17856. One can see that resulting stacktrace is very similar:
The same works well from the cmd console with the same env. |
I have personally been using powershell on and off so I know PS works in general (as my normal user and as admin). What I suspect in both reports is we are exploding ffi stuff and we do not have permissions in either scnenario to dll load that code. It is a bit of a wild guess but from perspective of a remote user it might just be that you are executing in some extra layer of MS safety? |
On reflection idea used to have no problems loading ffi so perhaps either idea problem is from a different cause or both are the same and my previous comment is bunk. I do know we also have some issue with classloader:jar://fooo/bar becoming //foo/bar (do not see the issue). Perhaps we mangle some path in a novel way? (another wild guess :) ) |
Hi @enebo, sorry for delay Now the thing is that any stderr redirection other than TBH at the moment I don't know a bit about why this could happen. I hope my example will work as a more specific bug report :) |
OK, really simple way to reproduce is actually calling jirb like that: C:/jruby-9.0.5.0/bin/jirb < input.txt > output.txt 2>&1 |
@valich ah interesting. So the way this was described above makes this sound like a regression. Or at least it worked in 1.7.x? |
I'm poking at this a bit too. I'm confused why we're going down a native IO path on Windows. |
Can someone who can reproduce this run with -Xjit.threshold=0? The only traces we have here have interpreter frames in them, which makes it hard to figure out. I want to know what IO object is using this native logic. |
There is the output produced when calling with
|
@valich Thank you! So it's a call from IRB to |
Ok sadly this isn't going to make 9.1, but we do want to fix it. Given the fact that it's IRB triggering this I wonder if there's some terminal issue going through psexec. The alternative is as previously stated: psexec is running in some restricted environment that prevents us from loading native dependencies we need. |
It looks like I never asked: does this work with |
@valich I was able to run the input.txt/output.txt command line at a normal prompt just fine. Trying to follow your instructions for remotely executing now. |
Ok, looks like I finally have psexec working. First thing I notice is the poor terminal emulation from cmd :-)
But I can proceed. |
Success! I have reproduced it on my Windows VM! I have also confirmed that disabling native integration does NOT fix the problem:
|
Ah-ha! We've won the war without firing a shot! I updated to master (9.1.3.0) and it appears to be working just fine! Perhaps it was other fixes for native calls that did the job.
Please confirm with a recent 9.1.3.0 snapshot from http://ci.jruby.org! |
@headius Chuck Norris does not fix bugs. When he decides to release new version the bugs fix themselves. Well, I've checked the snapshot in the remote console and, more importantly, in RubyMine and it works indeed! Thank you and the team :) |
Looks like this has regressed in 9.1.5.0 I've been following this issue from a distance and upon noticing that it had been closed, I downloaded the most recent release version (9.1.5.0). Attempting to start irb in RubyMine, I experienced the same error as mentioned above. Downloaded release 9.1.3.0, tried the same test and no error. |
Unfortunately 9.1.6.0 doesn't solve the problem either.
|
@headius Your fix for 9.1.3.0 apparently vanished from subsequent releases. Latest release (9.1.7.0) keeps having the issue:
|
I have hte same problem with Jruby 9.1.8.0 on Windows 10. |
I also experienced this problem with JRuby 9.1.8.0 in RubyMine 2017.1 on Windows 7.
|
Something strange about how it handles stdin when piping. Investigating. |
I've committed a fix for the additional errors piping stdin to IRB. I do not believe this is really related to the original issue, but the original issue should also have been fixed. If anyone sees more issues like this on 9.1.9.0 or higher, please open a NEW bug. |
Great!!! Thank you. When do you plan to publish an installer for jruby 9.1.9.0? |
Just downloaded 9.1.9.0 and it works. Thank you! |
Using both psexec from pstools (https://technet.microsoft.com/en-us/sysinternals/pstools.aspx) and Windows PowerShell remote, I cannot execute ruby commands on the machine I'm remoteing into.
Example using psexec:
#1 Download pstools from https://technet.microsoft.com/en-us/sysinternals/pstools.aspx
#2 using psexec try to execute cucumber on a remote machine
IE: \path\to\pstools psexec \remoteMachine cmd
#3 once remoted into the machine try to open
irb
ERROR:
NOTE: also tried with Windows Powershell and got this stack trace:
The text was updated successfully, but these errors were encountered: