Package: e2fsprogs Version: 1.43.7-1 e2fsck crashes on the attached file:
$ gzip -d sigfpe.ext2.gz $ /sbin/e2fsck -n sigfpe.ext2 e2fsck 1.43.7 (16-Oct-2017) ext2fs_check_desc: Corrupt group descriptor: bad block for block bitmap The filesystem size (according to the superblock) is 48 blocks The physical size of the device is 37 blocks Either the superblock or the partition table is likely to be corrupt! Abort? no [... lots of errors ...] 0000000000000000: ********** WARNING: Filesystem still has errors ********** Signal (8) SIGFPE si_code=FPE_INTDIV fault addr=0x566146c1 /sbin/e2fsck(+0x2f632)[0x56637632] linux-gate.so.1(__kernel_rt_sigreturn+0x0)[0xf7f92df0] /sbin/e2fsck(main+0x2c91)[0x566146c1] /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf6)[0xf7d03286] /sbin/e2fsck(+0xd04f)[0x5661504f] The culprit appears to be this line in show_stats(): frag_percent_total = ((10000 * (ctx->fs_fragmented + ctx->fs_fragmented_dir)) / inodes_used); This doesn't quite work if inodes_used is 0. -- System Information: Architecture: i386 Versions of packages e2fsprogs depends on: ii e2fslibs 1.43.7-1 ii libblkid1 2.30.2-0.1 ii libc6 2.24-17 ii libcomerr2 1.43.7-1 ii libss2 1.43.7-1 ii libuuid1 2.30.2-0.1 -- Jakub Wilk
sigfpe.ext2.gz
Description: application/gzip