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

thread '<unnamed>' panicked at 'internal error: entered unreachable code', ../src/libstd/sync/mpsc/mod.rs:565 #22

Closed
fritzsche opened this issue Nov 2, 2015 · 7 comments
Labels

Comments

@fritzsche
Copy link

Hi,
works on Linux (Ubuntu) but in in MacOS I get error (rustc 1.4.0 (8ab8581f6 2015-10-27)) :
"thread '' panicked at 'internal error: entered unreachable code', ../src/libstd/sync/mpsc/mod.rs:565"

I though this is fixed by:
rust-lang/rust#29201
notify-rs/notify#33

I have updated Cargo.toml build dependencies like:
notify = { git = "https://github.com/passcod/rsnotify.git", rev = "5a48333dde58a01f68c1e6" }
rebuild crate, but get the same issue...

Thanks, Thomas

@passcod
Copy link
Member

passcod commented Nov 3, 2015

Can you just use notify = "^2.1" as in current source, that should get the latest with the current Cargo.lock, your revision is technically same code and thus useless.

@passcod
Copy link
Member

passcod commented Nov 3, 2015

Can you also provide the exact steps you use to make this segfault?

@fritzsche
Copy link
Author

I started by:

  1. git clone ....
  2. cargo build --release
  3. cp build/[...]/cargo-watch /usr/local/bin
  4. In project folder "cargo watch"
    --> On file change I get the segfault on MacOs (but works in Ubuntu)

I searched in the net and found above issues:
5) changed Cargo.toml to ensure notify contains the patch
notify = { git = "https://github.com/passcod/rsnotify.git", rev = "5a48333dde58a01f68c1e6" }
5) cargo update
6) cargo build --release
7) cp build/[...]/ /usr/local/bin
8) In project folder "cargo watch"
--> On file change still segfault. :-(

I also tried with notify master, but no difference. I have in also deleted old versions of cargo-watch /usr/local/bin to make sure no old version is remaining, also I tried "cargo clean" in between.

Version: macos el capitan
Rustc: 1.4

I'm novice to rust, sorry if I made something wrong.

@passcod
Copy link
Member

passcod commented Nov 3, 2015

Moving discussion to notify-rs/notify#33 as this seems to be an upstream issue.

@passcod passcod added the bug label Nov 3, 2015
@octplane
Copy link

octplane commented Nov 4, 2015

@fritzsche can you verify that it is fixed, when building against:

notify = { git = "https://github.com/octplane/rsnotify.git", rev="5a9d08d94665b3d53f78f4a9aab2d9fa8e0d70f8" }

Thank you.

@fritzsche
Copy link
Author

This commit fixed the issue for me.

@octplane
Copy link

octplane commented Nov 4, 2015

Thank you @fritzsche . I am awaiting for peer reviews regarding the patch. I should land in rsnotify quickly. Thank you again for your report and validation!

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

3 participants