Repository navigation
Compile panic on nightly compiling kamadak-exif, assertion failed in byteorder #50900
Copy link
Copy link
Closed
Closed
Copy link
Labels
C-bugCategory: This is a bug.Category: This is a bug.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Description
Activity
Tried a few different nightlies. And it looks like it broke sometime between
rustc 1.27.0-nightly (acd3871ba 2018-05-10)andrustc 1.27.0-nightly (ff2ac35db 2018-05-12)This works
$ rustc --version --verbose rustc 1.27.0-nightly (acd3871ba 2018-05-10) binary: rustc commit-hash: acd3871ba17316419c644e17547887787628ec2f commit-date: 2018-05-10 host: x86_64-unknown-linux-gnu release: 1.27.0-nightly LLVM version: 6.0This panics
$ rustc --version --verbose rustc 1.27.0-nightly (ff2ac35db 2018-05-12) binary: rustc commit-hash: ff2ac35db93a80b2de5daa4f280bf1503d62c164 commit-date: 2018-05-12 host: x86_64-unknown-linux-gnu release: 1.27.0-nightly LLVM version: 6.0I have managed to get a much smaller example. Compiling this on nightly gives the above panic:
#[derive(PartialEq, Eq)] pub struct Tag(pub Context, pub u16); #[derive(PartialEq, Eq)] pub enum Context { Tiff, Exif, } impl Tag { const ExifIFDPointer: Tag = Tag(Context::Tiff, 34665); } fn main() { match Tag::ExifIFDPointer { Tag::ExifIFDPointer => {} } }
Reacted by kennytm- addedI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️C-bugCategory: This is a bug.Category: This is a bug.
on May 20, 2018 Looks like it's fixed in the newest nightly (
rustc 1.28.0-nightly (a3085756e 2018-05-19))Bisecting between acd3871...ff2ac35 gives #50249 as the regression PR.
- addedE-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
on May 20, 2018 - added 2 commits that reference this issue
on Jul 28, 2019
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
I hope this is not already known, but my searching has not turned up anything.
Compiling a rust binary with the
kamadak-exifdependency panices in nightly.How to reproduce:
kamadak-exif = "0.3.0"to dependencies inCargo.tomlRUST_BACKTRACE=1 cargo runThis gives the following output
It compiles on stable and beta.
Edit: Just running
cargo buildin https://github.com/kamadak/exif-rs gives the same result.Meta