Hi Samuel,
On 07/03/2026 21:39, Samuel Thibault wrote:
Samuel Thibault, le sam. 07 mars 2026 21:06:38 +0100, a ecrit:
Samuel Thibault, le lun. 02 mars 2026 01:24:02 +0100, a ecrit:
I have gotten yet another odd file corruption in a buildd chroot, after
building haskell-xml-html-qq_0.1.0.1-6+b1, /usr/bin/mkdir became:
00000000 00 00 02 ea 01 00 00 00 01 00 00 00 93 2a e0 d7 |.............*..|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
Just realizing... These are little-endian values, and 0xea020000
is... EXT2_XATTR_BLOCK_MAGIC !
That's very informative! We must have block allocation issues in our
xattr code.
I guess the problem is when we happen to drop an xattr before the
content got flushed to disk, I have a patch that I'll try to check.
Would this also explain the corruption to the shared library
in libHShedgehog-classes where only 16 byte sections of pages were
replaced to all zero at offsets 0x50, 0x70 and 0xff0 without the
preceding EXT2_XATTR_BLOCK_MAGIC?
I had another occurrence of the chroot ext2fs crashing last night but
this time preceded by hundreds of warnings of the form:
ext2fs: /dev/wd0s6: warning: bit already cleared for block 889126
ext2fs: /dev/wd0s6: warning: bit already cleared for block 889127
...
...
ext2fs: /dev/wd0s6: warning: bit already cleared for block 920162
ext2fs: /dev/wd0s6: warning: bit already cleared for block 920163
ext2fs: /dev/wd0s6: warning: bit already cleared for block 920164
/hurd/ext2fs: ../../ext2fs/pager.c:455: file_pager_write_pages:
Assertion 'blk' failed.
/hurd/ext2fs(pager_write_pages+0x2a1) [0x40baf1]
/usr/lib/x86_64-gnu/libpager.so.0.3(_pager_do_write_request+0x38e) [0x83e4e]
/usr/lib/x86_64-gnu/libpager.so.0.3(_pager_S_memory_object_data_return+0x16)
[0x844d6]
/usr/lib/x86_64-gnu/libpager.so.0.3(+0x5b93) [0x86b93]
/usr/lib/x86_64-gnu/libpager.so.0.3(+0x456b) [0x8556b]
/usr/lib/x86_64-gnu/libpthread.so.0.3(+0x4b38) [0xcab38]
Mike.