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

Segfault in the new generator branch in a release build #89

Closed
MaikKlein opened this issue Aug 2, 2018 · 3 comments
Closed

Segfault in the new generator branch in a release build #89

MaikKlein opened this issue Aug 2, 2018 · 3 comments
Labels

Comments

@MaikKlein
Copy link
Member

The examples in the generator branch now segfault on my machine if they are built with the release flag.

➜  examples git:(racer) cargo run --bin triangle --release
    Finished release [optimized] target(s) in 0.07s
     Running `/home/maik/projects/ash/target/release/triangle`
fish: “cargo run --bin triangle --rele…” terminated by signal SIGILL (Illegal instruction)

Can anyone reproduce this?

@MaikKlein MaikKlein added the bug label Aug 2, 2018
@MaikKlein
Copy link
Member Author

Okay I tracked the issue down to two things. It only segfaults with the current nightly and it seems to be related to winit. Also the winit version in the examples is a few version behind, it might be worth updating.

@MaikKlein
Copy link
Member Author

I just updated the examples to 0.16 but it still segaults. I tried to run some winit examples and they all segfault for me too, so it doesn't seem to be related to ash.

@GabrielMajeri
Copy link
Contributor

Probably caused by AltF02/x11-rs#90. That lib is triggering undefined behavior which causes an illegal instruction to be generated. And unfortunately fixing this is... complicated: AltF02/x11-rs#91, rust-lang/rust#52960

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

2 participants