Skip to content

[BUG] Segmentation fault #1079

@Nick222

Description

@Nick222

Bug summary

Segmentation fault

Version, Python, Operating System

Xubuntu 25.04

---
exec:
  api_version:
    actual: 0
    default: 200
    max: 201
    min: 200
  argv:
  - /usr/bin/rdiff-backup
  - info
  parsed: null
  version: 2.2.6
python:
  executable: /usr/bin/python3
  name: cpython
  version: 3.13.3
system:
  fs_encoding: utf-8
  platform: Linux-6.14.0-24-generic-x86_64-with-glibc2.41
...

rdiff-backup call

How did you call rdiff-backup, with which parameters:

rdiff-backup -v6 remove increments --older-than 90D (path)

What happened and what did you expect?

Segmentation fault instead deleting old backup

More information

2025-07-21 23:48:40.182527 +0300  <CLIENT-1247381>  DEBUG: Runtime information =>{'exec': {'version': '2.2.6', 'api_version': {'default': 200, 'min': 200, 'max': 201, 'actual': 0}, 'argv': ['/usr/bin/rdiff-backup', '-v9', 'remove', 'increments', '--older-than', '90D', '(path)'], 'parsed': {'api_version': None, 'current_time': None, 'force': False, 'fsync': True, 'null_separator': False, 'new': False, 'chars_to_quote': None, 'parsable_output': False, 'remote_schema': None, 'remote_tempdir': None, 'ssh_compression': True, 'tempdir': None, 'terminal_verbosity': None, 'use_compatible_timestamps': False, 'verbosity': 9, 'action': 'remove', 'entity': 'increments', 'older_than': '90D', 'size': False, 'locations': ['(path)']}}, 'python': {'name': 'cpython', 'executable': '/usr/bin/python3', 'version': '3.13.3'}, 'system': {'platform': 'Linux-6.14.0-24-generic-x86_64-with-glibc2.41', 'fs_encoding': 'utf-8'}}<=
2025-07-21 23:48:40.182628 +0300  <CLIENT-1247381>  WARNING: Server will be called with deprecated command line interface to guarantee compatibility. It might lead to a deprecation warning from newer rdiff-backup versions. Use '--api-version 201' (or higher) to avoid it.
2025-07-21 23:48:40.183793 +0300  <CLIENT-1247381>  * Using repository '(path)'
2025-07-21 23:48:40.184759 +0300  <CLIENT-1247381>  DEBUG: Making directory (path)/rdiff-backup-data/rdiff-backup.tmp.0
2025-07-21 23:48:40.184980 +0300  <CLIENT-1247381>  DEBUG: Touching file (path)/rdiff-backup-data/rdiff-backup.tmp.0/5-_ a.snapshot.gz
2025-07-21 23:48:40.185159 +0300  <CLIENT-1247381>  DEBUG: Deleting (recursively) path (path)/rdiff-backup-data/rdiff-backup.tmp.0/5-_ a.snapshot.gz
2025-07-21 23:48:40.185330 +0300  <CLIENT-1247381>  DEBUG: Touching file (path)/rdiff-backup-data/rdiff-backup.tmp.0/uniá

2025-07-21 23:48:40.185488 +0300  <CLIENT-1247381>  DEBUG: Deleting (recursively) path (path)/rdiff-backup-data/rdiff-backup.tmp.0/uniá
             	
2025-07-21 23:48:40.185652 +0300  <CLIENT-1247381>  DEBUG: Touching file (path)/rdiff-backup-data/rdiff-backup.tmp.0/:\"
2025-07-21 23:48:40.185807 +0300  <CLIENT-1247381>  DEBUG: Deleting (recursively) path (path)/rdiff-backup-data/rdiff-backup.tmp.0/:\"
2025-07-21 23:48:40.185975 +0300  <CLIENT-1247381>  DEBUG: Touching file (path)/rdiff-backup-data/rdiff-backup.tmp.0/A
2025-07-21 23:48:40.186165 +0300  <CLIENT-1247381>  DEBUG: Deleting (recursively) path (path)/rdiff-backup-data/rdiff-backup.tmp.0/A
2025-07-21 23:48:40.186327 +0300  <CLIENT-1247381>  DEBUG: Touching file (path)/rdiff-backup-data/rdiff-backup.tmp.0/foo
2025-07-21 23:48:40.186505 +0300  <CLIENT-1247381>  DEBUG: Deleting (recursively) path (path)/rdiff-backup-data/rdiff-backup.tmp.0/foo
2025-07-21 23:48:40.186691 +0300  <CLIENT-1247381>  DEBUG: Making directory (path)/rdiff-backup-data/rdiff-backup.tmp.0/hl
2025-07-21 23:48:40.186878 +0300  <CLIENT-1247381>  DEBUG: Touching file (path)/rdiff-backup-data/rdiff-backup.tmp.0/hardlinked_file1
2025-07-21 23:48:40.187052 +0300  <CLIENT-1247381>  DEBUG: Hard linking source path (path)/rdiff-backup-data/rdiff-backup.tmp.0/hl/hardlinked_file2 to target path (path)/rdiff-backup-data/rdiff-backup.tmp.0/hardlinked_file1
2025-07-21 23:48:40.192914 +0300  <CLIENT-1247381>  * Unable to import win32security module. Windows ACLs not supported by filesystem at path (path)/rdiff-backup-data/rdiff-backup.tmp.0
2025-07-21 23:48:40.193087 +0300  <CLIENT-1247381>  DEBUG: Touching file (path)/rdiff-backup-data/rdiff-backup.tmp.0/dir_inc_check
2025-07-21 23:48:40.193291 +0300  <CLIENT-1247381>  DEBUG: Deleting (recursively) path (path)/rdiff-backup-data/rdiff-backup.tmp.0/dir_inc_check
2025-07-21 23:48:40.193483 +0300  <CLIENT-1247381>  DEBUG: Touching file (path)/rdiff-backup-data/rdiff-backup.tmp.0/regfile
2025-07-21 23:48:40.193663 +0300  <CLIENT-1247381>  DEBUG: Deleting (recursively) path (path)/rdiff-backup-data/rdiff-backup.tmp.0/regfile
2025-07-21 23:48:40.193955 +0300  <CLIENT-1247381>  DEBUG: Touching file (path)/rdiff-backup-data/rdiff-backup.tmp.0/high_perms_file
2025-07-21 23:48:40.194171 +0300  <CLIENT-1247381>  DEBUG: Touching file (path)/rdiff-backup-data/rdiff-backup.tmp.0/high_perms_dir
2025-07-21 23:48:40.194370 +0300  <CLIENT-1247381>  DEBUG: Deleting (recursively) path (path)/rdiff-backup-data/rdiff-backup.tmp.0/high_perms_file
2025-07-21 23:48:40.194495 +0300  <CLIENT-1247381>  DEBUG: Deleting (recursively) path (path)/rdiff-backup-data/rdiff-backup.tmp.0/high_perms_dir
2025-07-21 23:48:40.194642 +0300  <CLIENT-1247381>  DEBUG: Touching file (path)/rdiff-backup-data/rdiff-backup.tmp.0/symlinked_file1
2025-07-21 23:48:40.194872 +0300  <CLIENT-1247381>  DEBUG: Deleting (recursively) path (path)/rdiff-backup-data/rdiff-backup.tmp.0/symlinked_file2
2025-07-21 23:48:40.195027 +0300  <CLIENT-1247381>  DEBUG: Deleting (recursively) path (path)/rdiff-backup-data/rdiff-backup.tmp.0/symlinked_file1
2025-07-21 23:48:40.195226 +0300  <CLIENT-1247381>  DEBUG: Touching file (path)/rdiff-backup-data/rdiff-backup.tmp.0/foo
2025-07-21 23:48:40.195384 +0300  <CLIENT-1247381>  DEBUG: Touching file (path)/rdiff-backup-data/rdiff-backup.tmp.0/foo.
2025-07-21 23:48:40.195529 +0300  <CLIENT-1247381>  DEBUG: Deleting (recursively) path (path)/rdiff-backup-data/rdiff-backup.tmp.0/foo
2025-07-21 23:48:40.195651 +0300  <CLIENT-1247381>  DEBUG: Deleting (recursively) path (path)/rdiff-backup-data/rdiff-backup.tmp.0
2025-07-21 23:48:40.195731 +0300  <CLIENT-1247381>  DEBUG: Removing directory (path)/rdiff-backup-data/rdiff-backup.tmp.0
2025-07-21 23:48:40.196208 +0300  <CLIENT-1247381>  * -----------------------------------------------------------------
Detected abilities for b'(path)/rdiff-backup-data' (read/write) file system:
  Ownership changing                           Off
  Hard linking                                 On
  fsync() directories                          On
  Directory inc permissions                    On
  High-bit permissions                         On
  Symlink permissions                          Off
  Extended filenames                           On
  Windows reserved filenames                   Off
  Access control lists                         On
  Extended attributes                          On
  Windows access control lists                 Off
  Case sensitivity                             On
  Escape DOS devices                           Off
  Escape trailing spaces                       Off
  Mac OS X style resource forks                Off
  Mac OS X Finder information                  Off
-----------------------------------------------------------------
2025-07-21 23:48:40.196802 +0300  <CLIENT-1247381>  * Backup: escape_dos_devices = False
2025-07-21 23:48:40.196879 +0300  <CLIENT-1247381>  * Backup: escape_trailing_spaces = False
2025-07-21 23:48:40.213811 +0300  <CLIENT-1247381>  NOTE: Deleting increment at date/time: Tue Apr 22 00:11:13 2025
Ошибка сегментирования

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneed more infoThe author has been asked to provide more infotriagenew issue needing validation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions