Skip to content

program chokes on non-utf8 command line arguments even if it doesn't access them #20091

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

Closed
jabot2 opened this issue Dec 20, 2014 · 3 comments
Closed

Comments

@jabot2
Copy link

jabot2 commented Dec 20, 2014

Given the test program:

fn main() {
   println!("hello world")
}

When started as following it provides this output and fails with exit status 132

$ ./test a b $'\222'

You've met with a terrible fate, haven't you?

fatal runtime error: Could not unwind stack, error = 5
Illegal instruction

OS: Debian Testing on x86_64

$ rustc --version
rustc 0.13.0-nightly (99d6956c3 2014-12-18 20:32:07 +0000)
@kmcallister
Copy link
Contributor

I narrowed this down to the range 63c4f22 to 8bca470. Bisecting now.

@kmcallister
Copy link
Contributor

git bisect blames this on #19152

@kmcallister
Copy link
Contributor

cc @alexcrichton

alexcrichton added a commit to alexcrichton/rust that referenced this issue Dec 21, 2014
Instead, just pass everything through as a Vec<u8> to get worried about later.

Closes rust-lang#20091
alexcrichton added a commit to alexcrichton/rust that referenced this issue Dec 21, 2014
Instead, just pass everything through as a Vec<u8> to get worried about later.

Closes rust-lang#20091
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

Successfully merging a pull request may close this issue.

2 participants