-
Notifications
You must be signed in to change notification settings - Fork 105
Timeshift Segmentation fault on restore. #278
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
Comments
I have exactly the same problem. |
Do you think you could grab a log and your fstab output as well. I was trying to go through and see if I could find where things break (never seen Vala before) and not having much luck. I'm curious if there's something similar about our configurations or if we are having similar related problems rather than identical. |
I couldn't wait to fix the problem so I used the GUI |
Eh no problem. GUI also doesn't work for me so it might be multiple things wrong. Not even sure if I can do something, but figured I should make an attempt if I could figure out what's happening (not having much luck or time to look into it). Thanks for at least confirming I'm not the only one impacted. |
You need to install GUI manually. |
I have the gui installed. It'll also snapshot just fine from the GUI (I didn't try to use the CLI for restore until I had a broken desktop and had to work from TTY). But crashes in the same function as the CLI version if you click the restore button. I was trying to see if there might be an oddity with how my partition layout is made that caused the crashes. Checking the logs it looks like it doesn't figure out some information about my root partition when restoring. [21:43:24] missing: dev: UUID=baf2eb9e-0edc-4fd9-86b3-8959f11bff33, path: /, options: noatime The last log entry before crash (CLI or GUI) is always get_restore_messages() from called from Main. I was trying to trace through the code but I don't see what could be happening. Might need to try building with debug flags and tracing with gdb when I have time. |
This has nothing to do with CPU compatibility. I am running on an 7950x (an AMD x86 cpu). Even if I were on a different platform they aren't using CPU-specific low level stuff so any platform that Vala compiles to should work more or less. This has everything to do with unhandled conditions in the code (and in Main.vala so in my situation both GUI and CLI are impacted as both versions call in to Main.vala when performing restores) and with issues with the way in the formatting of my fstab (it fails to assign a device to main in the processing code as determined by logs and stepping through with gdb). The traces provided are necessary details for any developer not impacted by the issue to know where and how the crash is happening. Without logs and details on your issue we may very well have entirely separate crash causes and conditions. I am trying to definitively identify a root-cause for when and if an developer does look at this (especially as I haven't provided definitive steps to reproduce yet they need some stuff to go on for it to be worth their time). And if it's something I think I can fix maybe do a pull request. |
still the issue is present in version 24.06.1-1
|
I have the same problem and I am also able to reproduce the issue like @khaliid2040 did. |
I have fixed the segmentation fault, but this still does not resolve the real issue, see: #386 (comment) FYI:
|
Perhaps the issue is caused by missing UUID's in
|
Well, that was not it. I was getting the device to restore to from the snapshot's After updating the root entry in
|
As of March 30 2025, I find myself on a situation where I can't just use Timeshift, generations are created, however each time I try to restore one, it just segfaults. I'm on Arch Linux, these are my system specs: os: Arch Linux x86_64
hardware: Dell Inspiron 3501
kernel: Linux 6.12.21-1-lts
shell: nushell 0.103.0
using Wayland
cpu: 11th Gen Intel(R) Core(TM) i5-1135G7 (8) @ 4.20 GHz
gpu: Intel Iris Xe Graphics @ 1.30 GHz [Integrated]
ram: 2.40 GiB / 15.35 GiB (16%)
disk: 8.69 GiB / 237.47 GiB (4%) - btrfs I have created a subvolume However if I try to restore any particular snapshot it will just segfault, which I can't post because: PID: 12336 (timeshift)
UID: 0 (root)
GID: 0 (root)
Signal: 11 (SEGV)
Timestamp: Sun 2025-03-30 19:56:48 CDT (38s ago)
Command Line: timeshift --restore
Executable: /usr/bin/timeshift
Control Group: /user.slice/user-1000.slice/[email protected]/app.slice/app-graphical.slice/app-Hyprland-alacritty-0e721b46.scope
Unit: [email protected]
User Unit: app-Hyprland-alacritty-0e721b46.scope
Slice: user-1000.slice
Owner UID: 1000 (archxekye)
Boot ID: fe4df06326fc48c984c43ce7e0a3c507
Machine ID: dcefdc526fe7400faf12fcc47409d24b
Hostname: archlixelinux
Storage: none
Message: Process 12336 (timeshift) of user 0 terminated abnormally without generating a coredump.
Coredump entry has no core attached (neither internally in the journal nor externally on disk). |
@ARKye03 Did you see my comment about this? |
I'm already using UUID:
Just wanted to mention something I noticed: I’ve been using But here’s the problem:
I’m not sure if this is happening because my Timeshift cli still exits with error code 1 though. |
@ARKye03 Please try again using the device path instead of the |
No, it doesn't solve the problem either, I guess I'll try some snapshots manually, nor timeshift, nor grub-btrfsd with timeshift support work. Perhaps there is some issue with my installation, which is odd, as its simple enough so not weird behaviours arise like this. This is how my fstab for root looks:
where |
Describe the bug
Timeshift restore on GUI fails silently (BTRFS snapshot).
Timeshift in CLI has a segmentation fault (not sure how to get more debugging info) (BTRFS snapshot).
Not 100% sure that this isn't me not having partitions and stuff looking right (I'm sorry if I am reporting user error).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expected snapshot to be restored
Screenshots
System:
[matt@Matt-Desktop ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 16M 0 part
├─sda2 8:2 0 244.1G 0 part
└─sda3 8:3 0 221.6G 0 part /storagedrv
sdb 8:16 1 57.6G 0 disk
└─sdb1 8:17 1 57.6G 0 part
nvme0n1 259:0 0 931.5G 0 disk
├─nvme0n1p1 259:1 0 100M 0 part /boot/efi
├─nvme0n1p2 259:2 0 637.9G 0 part /home
└─nvme0n1p5 259:3 0 292.9G 0 part /run/timeshift/21382/backup
/run/timeshift/21200/backup
/
nvme1n1 259:4 0 3.6T 0 disk
└─nvme1n1p1 259:5 0 3.6T 0 part /mnt/new_game_drive
[matt@Matt-Desktop ~]$
[matt@Matt-Desktop ~]$ sudo btrfs subvolume list /
ID 648 gen 136175 top level 5 path @
ID 990 gen 136170 top level 5 path swap
ID 1034 gen 136170 top level 5 path timeshift-btrfs/snapshots/2024-02-25_14-55-27/@
ID 1040 gen 136170 top level 5 path timeshift-btrfs/snapshots/2024-02-25_15-18-47/@
ID 1042 gen 136170 top level 5 path timeshift-btrfs/snapshots/2024-02-25_15-24-05/@
ID 1670 gen 136175 top level 5 path timeshift-btrfs/snapshots/2024-02-25_19-12-17/@
[matt@Matt-Desktop ~]$
[matt@Matt-Desktop ~]$ sudo btrfs subvolume list /home
ID 256 gen 64430 top level 5 path matt/@
Found and attaching log file.
2024-02-25_21-43-17_restore.log
=======================================================================
Stepping through things it looks like we go off rails right after init_mount_list() which looks to be reading from fstab. So including fstab output below.
UUID=1E2F-5409 /boot/efi vfat noatime 0 2
UUID=baf2eb9e-0edc-4fd9-86b3-8959f11bff33 / btrfs defaults,subvol=/@ 0 1
/swap/swapfile none swap defaults 0 0
/dev/sda3 /storagedrv ext4 defaults 0 0
/dev/nvme0n1p2 /home btrfs defaults 0 0
/dev/nvme1n1p1 /mnt/new_game_drive btrfs defaults 0 0
Looking at the log I am noticing the following line
[21:43:24] missing: dev: UUID=baf2eb9e-0edc-4fd9-86b3-8959f11bff33, path: /, options: noatime
which does not match the options I have set for that volume in fstab( defaults,subvol=/@).
The text was updated successfully, but these errors were encountered: