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

Illegal instruction (core dumped) #93

Closed
yeahnoob opened this issue Feb 11, 2015 · 8 comments
Closed

Illegal instruction (core dumped) #93

yeahnoob opened this issue Feb 11, 2015 · 8 comments
Labels

Comments

@yeahnoob
Copy link

After $cargo build, run & get this error.
How deal with it?

$ ./target/iota
Illegal instruction (core dumped)

PS.
Ubuntu 14.04 LTS x64;
Nightly Build's rustc and cargo.

@utkarshkukreti
Copy link

Same here on OSX 10.9.5.

$ target/iota
[1]    97292 illegal hardware instruction  target/iota

@gchp
Copy link
Owner

gchp commented Feb 11, 2015

Yeah, same for me. Investigating now

@gchp gchp added the bug label Feb 11, 2015
@gchp
Copy link
Owner

gchp commented Feb 11, 2015

Seems to be coming from this https://github.com/gchp/iota/blob/master/src/main.rs#L53-L56

I wonder if this has to do with some changes in http://github.com/nsf/termbox that landed yesterday. Rustbox relies on this, so it could be that some of those changes have messed things up for us.

@utkarshkukreti
Copy link

Two fields were added tb_event struct.. maybe that?

@suhr
Copy link

suhr commented Feb 11, 2015

Calling tb_select_input_mode before tb_init. tb_select_input_mode calls bytebuffer_puts and bytebuffer_flush, but buffers are not initialized before tb_init is called.

PS: use rust-gdb, it rocks.

@pythonesque
Copy link
Contributor

Heh, I had actually pointed this out earlier after your commit, but at the time it wasn't causing any issues so it wasn't urgent.

gchp/rustbox@7707700

In the future we should probably be more proactive about potential future incompatibilities like that. It's kinda hard to know which ones are going to end up being important.

@crespyl
Copy link
Contributor

crespyl commented Feb 11, 2015

I was having trouble replicating the problem until I updated the rustc nightly. It was only ~1 day old, but with the compiler update I now get the illegal instruction. It looks like this is one of those cases where it probably should never have worked in the first place.

@gchp gchp closed this as completed in d7999db Feb 11, 2015
@gchp
Copy link
Owner

gchp commented Feb 11, 2015

Yup, @suhr and @pythonesque were right!

I've update released rustbox 0.2.14 which fixed this. Should be good to go!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants