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
Very long command string: wrong error message "219kB exceeds 2MB" #6800
Comments
|
When I strace the execve call, I get:
|
Here's a redacted version of the command that triggers this for me on Linux (won't repro on macOS) - should error the same for you. Same length, just replaced all letters/numbers with 'x's. It's 216kB, far under the 2MB limit. |
Just managed to bisect it with this little script that tries to run /bin/echo with repeated characters given as an argument, the problem comes with any argument of size 131072.
|
Here's a stackoverflow mentioning that we're hitting the limit Which is defined as PAGE_SIZE * 128: |
Fantastic, just pulled
I really appreciate your fast fix here @faho |
Just pulled fish from master:
fish, version 3.1.0-424-gd0bedf3bb
.uname -a
isLinux markhansen 5.2.17-1rodete3-amd64 #1 SMP Debian 5.2.17-1rodete3 (2019-10-21 > 2018) x86_64 GNU/Linux
I'm running inside
tmux
with$TERM
screen-256color
, but I don't think that matters here.I run a very long command (confidential work command, can't paste here, will try to get an obfuscated version that has the same error). And I get this error:
Running the command with fewer arguments is helpful, but saying that 219kB exceeds 2MB is incorrect (219kB < 2MB).
My guess is perhaps I have too many arguments, or one of the arguments is too long, rather than the total being too long.
The text was updated successfully, but these errors were encountered: