Skip to content

invalid slice index #8

Description

@cholcombe973

I'm getting an odd invalid slice index error that I can't explain and the backtrace points to the Structures iterator in lib.rs

thread 'tokio-runtime-worker' panicked at 'slice index starts at 390 but ends at 386', src/libcore/slice/mod.rs:2731:5
stack backtrace:
...snip...
14:           0xe08b5b - <core::ops::range::Range<usize> as core::slice::SliceIndex<[T]>>::index::h946193d2355fb32a
                               at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src/libcore/slice/mod.rs:2887
  15:           0xe090e8 - core::slice::<impl core::ops::index::Index<I> for [T]>::index::h6a675459d581329f
                               at /rustc/8d69840ab92ea7f4d323420088dd8c9775f180cd/src/libcore/slice/mod.rs:2707
  16:           0xdeed05 - <dmidecode::Structures as core::iter::traits::iterator::Iterator>::next::h8a7a0a3541b91d65
                               at /root/.cargo/git/checkouts/dmidecode-9d9a4c3ef3ed9aca/d30e17f/src/lib.rs:383

Oddly.. this only seems to happen at the moment with the v2 entry point. The other strange thing about this is if I slow my program down a little with more println's it works.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions