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

rustc panics if the terminal's terminfo is invalid #27446

Closed
anachrome opened this Issue Jul 31, 2015 · 3 comments

Comments

Projects
None yet
5 participants
@anachrome
Copy link

anachrome commented Jul 31, 2015

If the terminfo for my terminal is malformed, rustc panics with

thread '<main>' panicked at 'assertion failed: `(left == right)` (left: `0`, right: `2`)', /home/rustbuild/src/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libterm/terminfo/parser/compiled.rs:315

The simplest reproduction is

touch ~/.terminfo/r/rxvt-unicode-256color

or whatever the $TERM variable is.

@bluss

This comment has been minimized.

Copy link
Contributor

bluss commented Aug 5, 2015

It looks like this is fixed in "upstream" libterm, so requires import from there.

@brson

This comment has been minimized.

Copy link
Contributor

brson commented Jan 26, 2017

Fixed. Needs test.

@brson brson added the E-needstest label Jan 26, 2017

@Mark-Simulacrum

This comment has been minimized.

Copy link
Member

Mark-Simulacrum commented May 20, 2017

I don't really think this needs a test or at least not inside rustc itself; closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.