Skip to content
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

Streampager abort when piping files into xargs hg blame #36

Closed
akushner opened this issue Feb 27, 2021 · 2 comments
Closed

Streampager abort when piping files into xargs hg blame #36

akushner opened this issue Feb 27, 2021 · 2 comments

Comments

@akushner
Copy link

Hello Mark!

While trying to do some blames via xargs, got an abort. See below.

I was using EdenSCM 4.4.2_20210223_123033_737026f39597_1.fb.el_737026f3.

Jun said that he's seen this type of abort, also.

Failure was repeatable.

$ cd fbcode/eden/edenscm && find . -type f -name "*.py"| xargs hg blame
  simpkins 2019-11-01: # Copyright (c) Facebook, Inc. and its affiliates.
thread '<unnamed>' panicked at 'range end index 323 out of range for slice of length 283', third-party/rust/vendor/streampager-0.8.0/src/file.rs:493:26
                        note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
                                                                                                     xargs: hg: exited with status 255; aborting

(Worked around the crash using --pager=off)

@markbt
Copy link
Owner

markbt commented Feb 27, 2021

I've also seen this before but didn't have a reliable repro. The change in b562cb0 should be the fix. I'll upgrade EdenSCM to the latest streampager version to see if that works.

@markbt
Copy link
Owner

markbt commented Mar 11, 2021

Closing, as this should be fixed by b562cb0.

@markbt markbt closed this as completed Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants