Crash in xfs_repair while repairing corrupted disk
Hi all,
I just encountered a crash while repairing a damaged disk. The disk has been in a machine with a failing power supply, which caused the drive to power down at random intervals. Power supply replaced, disk repair attempted, leading to this crash:
Core was generated by `xfs_repair -l /dev/vde /dev/vdd'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 get_inode_parent (irec=0x7f40ae1cdaf0, offset=50) at /usr/src/debug/xfsprogs-6.4.0-5.el9.x86_64/repair/incore_ino.c:713 713 if (ptbl->pmask & (1ULL << offset)) {
[Current thread is 1 (LWP 2644)]
(gdb) print ptbl
$1 = (parent_list_t *) 0x0
(gdb)
In essence the variable ptbl is assumed to be non NULL but is.
This was the second attempt to repair the file system, the first attempt to repair exited with the following error:
fatal error -- couldn't map inode 1261234229, err = 117
This is an older version of xfsprogs as shipped with EL9, just verifying this has been fixed.
Regards,
Graham
--