Skip to content

Crash "index out of bounds" when invoking "dump" #1535

@FREEZEball

Description

@FREEZEball

Steps to reproduce:

  1. Have an initialized repository with some snapshots backed up.
  2. Attempt to invoke dump on that repository (in my case, I used rustic dump -P config1 -P config2 "snapshot_id", where one of configs declares repository, and another config declares files to backup; if you can't reproduce with any config, I will share mine).
  3. Receive an error message and this crash report:
name = "rustic-rs"
operating_system = "Arch Linux Rolling Release [64-bit]"
crate_version = "0.9.5"
explanation = """
Panic occurred in file '/build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustic_core-0.7.2/src/vfs.rs' at line 540
"""
cause = "index out of bounds: the len is 1 but the index is 18446744073709551615"
method = "Panic"
backtrace = """
   0:     0x564e9fd75d7c - <unresolved>
   1:     0x564ea09fda49 - <unresolved>
   2:     0x564ea0accae9 - <unresolved>
   3:     0x564ea0acc908 - <unresolved>
   4:     0x564ea0acc869 - <unresolved>
   5:     0x564ea0acc85c - <unresolved>
   6:     0x564e9fb769af - <unresolved>
   7:     0x564e9fb76981 - <unresolved>
   8:     0x564ea08bd277 - <unresolved>
   9:     0x564ea08bcd3b - <unresolved>
  10:     0x564ea0ad2d0d - <unresolved>
  11:     0x564ea08a1660 - <unresolved>
  12:     0x564ea09db89b - <unresolved>
  13:     0x564ea09d6437 - <unresolved>
  14:     0x564e9fbca676 - <unresolved>
  15:     0x564e9fbccd0d - <unresolved>
  16:     0x564e9fbd1546 - <unresolved>
  17:     0x564e9fbcd6a6 - <unresolved>
  18:     0x564e9fbd19e7 - <unresolved>
  19:     0x7f4cc1827675 - <unresolved>
  20:     0x7f4cc1827729 - __libc_start_main
  21:     0x564e9fbc0915 - <unresolved>
  22:                0x0 - <unresolved>
"""

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Something isn't working as expectedC-duplicateCategory: This issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions