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

range start index 1 out of range for slice of length 0 #309

Closed
wyylg opened this issue Oct 5, 2024 · 0 comments · Fixed by #313
Closed

range start index 1 out of range for slice of length 0 #309

wyylg opened this issue Oct 5, 2024 · 0 comments · Fixed by #313
Labels
A-errors Area: error handling needs improvement C-bug Category: Something isn't working as expected I-panic

Comments

@wyylg
Copy link

wyylg commented Oct 5, 2024

I found a crash during my trial of "globs", and repeated the last operation and it kept crashing.


  • Report
name = "rustic-rs"
operating_system = "Windows 10.0.19045 (Windows 10 Pro) [64-bit]"
crate_version = "0.9.1"
explanation = '''
Panic occurred in file 'C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\rustic_core-0.5.1\src\repofile\snapshotfile.rs' at line 1199
'''
cause = "range start index 1 out of range for slice of length 0"
method = "Panic"
backtrace = """

   0: 0x7ff70b27e2de - <unresolved>
   1: 0x7ff70ad0ebef - <unresolved>
   2: 0x7ff70a3d7609 - <unresolved>
   3: 0x7ff70a3d7609 - <unresolved>
   4: 0x7ff70b0398c9 - <unresolved>
   5: 0x7ff70b0374b9 - <unresolved>
   6: 0x7ff70b10518d - <unresolved>
   7: 0x7ff70ad47958 - <unresolved>
   8: 0x7ff70b01b625 - <unresolved>
   9: 0x7ff70b01b32c - <unresolved>
  10: 0x7ff70a2eca99 - <unresolved>
  11: 0x7ff70a2ef7ca - <unresolved>
  12: 0x7ff70a2f5189 - <unresolved>
  13: 0x7ff70a2f03a6 - <unresolved>
  14: 0x7ff70a2f5201 - <unresolved>
  15: 0x7ff70b278784 - <unresolved>
  16: 0x7ffcd56e7374 - BaseThreadInitThunk
  17: 0x7ffcd5efcc91 - RtlUserThreadStart"""
  • Final operation

    PS D:\XX\rustic> rustic backup
    [00:00:00] reading index...               ████████████████████████████████████████          3/3
        Well, this is embarrassing.
    
  • Configuration
    Part of the configuration file (Some characters are anonymous).

    [global]
    log-file = 'D:\XX\XX\XX\rustic.log'
    
    [repository]
    repository = 'F:\XX\rustic-repo'
    password-file = 'F:\XX\XX\XX.XX'
    no-cache = true
    
    [backup]
    one-file-system = true
    
    [[backup.snapshots]]
    sources = [
      # 'X:\XX-X\XX\XX',
      # 'X:\XX-X\XX\XX',
      ]
    tags = ['X', 'XXX-XXXX', 'XX']
    
    [[backup.snapshots]]
    sources = [
      'D:\XX\XX\XX\XX',
      # 'X:\XX\XX\XX-XX\XX\XX',
      # '%APPDATA%\XX-XX',
      ]
    globs = [
      '.XX', '.XX',
      '!/XX/XX/XX/XX/XX', '!D/XX/XX/XX/XX/XX',
      # '!C:\Users\X\AppData\Roaming\XX\XX\XX\XX.XX-XX\XX-XX','!C:\Users\X\AppData\Roaming\XX\XX\XX\XX.XX-XX\XX',
      # '!C:\Users\X\AppData\Roaming\XX',
      ]
    tags = ['X', 'XXX-XXXXXX', 'XX']
    
@github-actions github-actions bot added the S-triage Status: Waiting for a maintainer to triage this issue/PR label Oct 5, 2024
@simonsan simonsan transferred this issue from rustic-rs/rustic Oct 5, 2024
@simonsan simonsan added the A-errors Area: error handling needs improvement label Oct 5, 2024
@simonsan simonsan changed the title rustic-rs Crash Report range start index 1 out of range for slice of length 0 Oct 5, 2024
@simonsan simonsan added I-panic C-bug Category: Something isn't working as expected and removed S-triage Status: Waiting for a maintainer to triage this issue/PR labels Oct 5, 2024
simonsan added a commit that referenced this issue Oct 5, 2024
github-merge-queue bot pushed a commit that referenced this issue Oct 6, 2024
Fixes #309

---------

Signed-off-by: simonsan <[email protected]>
Co-authored-by: Alexander Weiss <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-errors Area: error handling needs improvement C-bug Category: Something isn't working as expected I-panic
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants