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

Rustic crashes, when reading from /proc, on Android/Termux #1352

Open
vmlemon opened this issue Nov 11, 2024 · 1 comment
Open

Rustic crashes, when reading from /proc, on Android/Termux #1352

vmlemon opened this issue Nov 11, 2024 · 1 comment
Labels
A-cli Area: `rustic` command line interface C-bug Category: Something isn't working as expected O-unix Operating system: Unix-like

Comments

@vmlemon
Copy link

vmlemon commented Nov 11, 2024

Out of curiosity, I tried to run the latest ARM64 release of Rustic, inside an Ubuntu chroot, on my Android phone.

It seems that I was able to create an archive, in an existing Restic repository, without issues,
but when I attempted to add /proc, as a stress test (/proc/kcore usually either ends up being read, for a very long time, or gets handled in an optimised manner, given its size, by various tools).

Version information, for Ubuntu, and Android Linux kernel:

root@localhost:~# cat /etc/lsb-release                                     
DISTRIB_ID=Ubuntu                                                          
DISTRIB_RELEASE=22.04                                                      
DISTRIB_CODENAME=jammy                                                     
DISTRIB_DESCRIPTION="Ubuntu 22.04.5 LTS"                                  

 root@localhost:~# uname -a                                                 Linux localhost 5.10.177-android12-9-27763393-abS901BXXU8DXD6 #1 SMP PREEMPT Fri Apr 5 16:00:39 KST 2024 aarch64 aarch64 aarch64 GNU/Linux

Attaching the report file generated, after processing about 100GB of data, before it crashed:
report-55e94011-5b01-4ad7-8dd1-bd92a4cb3c65.toml.gz

@github-actions github-actions bot added the S-triage Status: Waiting for a maintainer to triage this issue/PR label Nov 11, 2024
@nardoor
Copy link
Contributor

nardoor commented Nov 17, 2024

Hello,

First of all, thanks for using rustic and for reporting this bug.

A first look at the report file shows a panic inside std::io which makes me think (without being certain) that the bug that happened is outside of rustic's range.

@nardoor nardoor added C-bug Category: Something isn't working as expected A-cli Area: `rustic` command line interface O-unix Operating system: Unix-like and removed S-triage Status: Waiting for a maintainer to triage this issue/PR labels Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cli Area: `rustic` command line interface C-bug Category: Something isn't working as expected O-unix Operating system: Unix-like
Projects
None yet
Development

No branches or pull requests

2 participants