#12847 closed bug (fixed)
Unmounting a busy BFS image results in a continuable KDL (block_cache still has partial slabs)
Reported by: | Giova84 | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1/beta4 |
Component: | System/Kernel | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | #10061, #14466, #14624 | |
Platform: | All |
Description
hrev50382 but I notice this behaviour since a long time, maybe is similar to ticket:6683.
Well, on my system I have a secondary BFS disk but this bug doesn't occurs when I unmount this phisical disk, and not even occurs as described in ticket:6683, because in my case this issue occurs just with a different way/disks: I use to backup my data by mounting a VHD file formatted as BFS: I mount this VHD file as:
diskimage register "$VHDFILE" device=$(diskimage register "$VHDFILE") disk=$(echo $device | cut -d\" -f2) cd / mkdir /HaikuBK mount $disk /HaikuBK
and after that i saved my data I just unmount this disk by:
unmount /HaikuBK
But immediately after the unmounting, Haiku will drop in a KDL (from which, however, I can exit by the "es" command) and this KDL, luckily, doesn't cause any corruption on such disk.
Attachments (5)
Change History (36)
comment:1 by , 8 years ago
by , 8 years ago
by , 8 years ago
Attachment: | KDL_stacktrace.jpg added |
---|
follow-up: 8 comment:3 by , 8 years ago
I noticed a thing which is able to avoid this KDL: I will attempt to give a comprehensive description:
As I've said I use this disk to backup my data, and obviously i wait that all data is written to the disk, before to do the unmounting of the disk: well, I noticed that also for some minutes after the copy, the HDD LED on my computer's case, still indicate an HDD activity: but if unmount the disk in this situation, I don't see the classic alert window which told me that the disk is busy (and usually this window offers "force unmount"): well, if I wait until the HDD LED will turn off, I can umount the disk without see the KDL.
comment:4 by , 8 years ago
Component: | File Systems/BFS → System/Kernel |
---|
It's indeed a duplicate. However, it since you have provided a bit more info here that might allow reproducing the issue, I'm closing the other ticket instead.
comment:5 by , 8 years ago
Blocking: | 10061 added |
---|
comment:6 by , 8 years ago
Milestone: | Unscheduled → R1 |
---|
comment:7 by , 8 years ago
Since i switched to hrev51089, if before to unmount the disk i run the sync command, such KDL seems that no longer occurs. I'm quite sure That I tried the sync command in past, but still with the described KDL. Please leave this open ticket: I do daily backups and I will give you to a better confirm.
P.S: When i switched to hrev51089 I was no longer able to backup files using rsync (i got a lot of "file has vanished" warnings), but with hrev51094 everything is fine again :-)
comment:8 by , 8 years ago
Replying to Giova84:
I noticed that also for some minutes after the copy, the HDD LED on my computer's case, still indicate an HDD activity: but if unmount the disk in this situation, I don't see the classic alert window which told me that the disk is busy (and usually this window offers "force unmount"): well, if I wait until the HDD LED will turn off, I can umount the disk without see the KDL.
This defenitely works - at least for me - to avoid the KDL. The last night I hit again the KDL after unmounting the disk: I didn't wait some minutes for unmount the disk (the HDD led was showing an activity of the disk). Today, after the backup, i went away for about five minutes and when I back I unmounted the disk without the KDL (the HDD led wasn't active).
In facts when I started to used the sync command I waited some minutes before to unmount the disk.
comment:10 by , 6 years ago
Blocking: | 14624 added |
---|
comment:11 by , 6 years ago
Blocking: | 14466 added |
---|
comment:12 by , 6 years ago
Summary: | Unmount a BFS disk (from a VHD file) will results in a KDL → Unmount a BFS disk results in a KDL |
---|
comment:13 by , 6 years ago
Milestone: | R1 → R1/beta2 |
---|
comment:14 by , 6 years ago
Still happening on Haiku x86_64 at hrev53144 running inside QEMU/KVM.
by , 5 years ago
Attachment: | unmount-bfs-image-kdl-hrev53167.txt added |
---|
Another one, from latest hrev
comment:16 by , 5 years ago
follow-up: 19 comment:17 by , 5 years ago
It doesn't seem to crash but mounting another bfs image in already mounted one creates all sorts of issues.
comment:18 by , 5 years ago
I just had this crash today, after installing a raw image to a second BFS partition with Installer.
comment:19 by , 5 years ago
comment:20 by , 5 years ago
Summary: | Unmount a BFS disk results in a KDL → Unmounting a busy BFS image results in a continuable KDL (block_cache still has partial slabs) |
---|
comment:21 by , 5 years ago
Had this happen yesterday as well (hrev53632). After it happens the first time, the panic occurs again everytime you unmount a device.
comment:23 by , 4 years ago
Milestone: | → R1/beta3 |
---|
comment:25 by , 4 years ago
Script to reproduce:
mkdir /HaikuRiscV mount haiku-minimum.image /HaikuRiscV (cd /HaikuRiscV/system ; package extract /boot/data/packages/haiku/generated.riscv64/objects/haiku/riscv64/packaging/packages/haiku.hpkg) unmount /HaikuRiscV rmdir /HaikuRiscV
Peplace paths if needed.
comment:26 by , 3 years ago
Milestone: | R1/beta3 → R1/beta4 |
---|
Move unsolved issues to beta 4 since there is no chance of fixing them now.
comment:28 by , 3 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Well, if it consistently reproduced before and doesn't now, let's presume so!
comment:29 by , 3 years ago
Unmounting packageFS crashes on hrev55862 -> hrev55865 x64 for full haikuporter package builds/packaging. Not consistent if you conduct haikuporter non-builds (patch only).
KDL Message: 'Deleted referenceable object that's not on the stack...'
Steps to reproduce:
- haikuporter <package>
Expected Results: 'waiting for build package <package> to be deactivated' should complete all build deactivations and unmount successfully.
comment:30 by , 3 years ago
This is probably packagefs
, not BFS. Can you get full stack trace from KDL?
by , 3 years ago
Attachment: | haiku_hrev55865_x64-packagefs-KDL_cocobean.jpg added |
---|
KDL when unmounting packageFS within haikuporter build - Haiku hrev55865 x64
Update: now, instead, to mount and unmount such disk I simply use the mountvolume cli utility. However this bug still occurs; however today I was able to take a pair of picture from the KDL: pics attached.