Public bug reported: $ sudo fatresize -i /dev/sdb1 fatresize 1.0.2 (05/26/10) FAT: fat32 Size: 8010072064 Min size: 536870912 Max size: 8011120640
$ sudo fatresize -p -s 536870912 /dev/sdb1 fatresize 1.0.2 (05/26/10) .*** Error in `fatresize': malloc(): smallbin double linked list corrupted: 0x0000000001470420 *** (gdb) where #0 0x00007ffff75c8cc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 #1 0x00007ffff75cc0d8 in __GI_abort () at abort.c:89 #2 0x00007ffff7605394 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x7ffff7713b28 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175 #3 0x00007ffff76100f7 in malloc_printerr (action=<optimized out>, str=0x7ffff7713ef0 "malloc(): smallbin double linked list corrupted", ptr=<optimized out>) at malloc.c:4996 #4 0x00007ffff7612e04 in _int_malloc (av=0x7ffff7950760 <main_arena>, bytes=40) at malloc.c:3359 #5 0x00007ffff76147b0 in __GI___libc_malloc (bytes=40) at malloc.c:2891 #6 0x00007ffff7b6c7a6 in ped_malloc (size=size@entry=40) at ../../libparted/libparted.c:242 #7 0x00007ffff7b86171 in fat_table_new (fat_type=FAT_TYPE_FAT32, size=131072) at ../../../../libparted/fs/fat/table.c:31 #8 0x00007ffff7b82b81 in fat_op_context_create_initial_fat ( ctx=ctx@entry=0x605960) at ../../../../libparted/fs/fat/context.c:210 #9 0x00007ffff7b84c1b in create_resize_context (new_geom=<optimized out>, fs=<optimized out>) at ../../../../libparted/fs/fat/resize.c:734 #10 fat_resize (fs=<optimized out>, geom=<optimized out>, timer=<optimized out>) at ../../../../libparted/fs/fat/resize.c:833 #11 0x0000000000402461 in ?? () ---Type <return> to continue, or q <return> to quit--- #12 0x00007ffff75b3ec5 in __libc_start_main (main=0x401a90, argc=5, argv=0x7fffffffe048, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe038) at libc-start.c:287 Package: fatresize Status: install ok installed Priority: optional Section: otherosfs Installed-Size: 72 Maintainer: Ubuntu MOTU Developers <ubuntu-m...@lists.ubuntu.com> Architecture: amd64 Version: 1.0.2-6ubuntu1 Depends: libc6 (>= 2.3.4), libparted0debian1 (>= 2.2-1) Suggests: dosfstools $ sudo valgrind fatresize -p -s 536870912 /dev/sdb1 ==4232== Memcheck, a memory error detector ==4232== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==4232== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info ==4232== Command: fatresize -p -s 536870912 /dev/sdb1 ==4232== fatresize 1.0.2 (05/26/10) .==4232== Warning: noted but unhandled ioctl 0x127a with no size/direction hints ==4232== This could cause spurious value errors to appear. ==4232== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper. ==4232== Conditional jump or move depends on uninitialised value(s) ==4232== at 0x5AD32C3: ??? (in /lib/x86_64-linux-gnu/libblkid.so.1.1.0) ==4232== by 0x5AD4066: ??? (in /lib/x86_64-linux-gnu/libblkid.so.1.1.0) ==4232== by 0x5AD33FE: ??? (in /lib/x86_64-linux-gnu/libblkid.so.1.1.0) ==4232== by 0x5AC5AEE: ??? (in /lib/x86_64-linux-gnu/libblkid.so.1.1.0) ==4232== by 0x4E4F9D9: _device_probe_geometry (linux.c:693) ==4232== by 0x4E52A0B: linux_new (linux.c:1103) ==4232== by 0x4E46742: ped_device_get (device.c:172) ==4232== by 0x401CE6: ??? (in /usr/sbin/fatresize) ==4232== by 0x52DBEC4: (below main) (libc-start.c:287) ==4232== ==4232== Warning: noted but unhandled ioctl 0x1278 with no size/direction hints ==4232== This could cause spurious value errors to appear. ==4232== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper. ==4232== Conditional jump or move depends on uninitialised value(s) ==4232== at 0x5AD32C3: ??? (in /lib/x86_64-linux-gnu/libblkid.so.1.1.0) ==4232== by 0x5AD4091: ??? (in /lib/x86_64-linux-gnu/libblkid.so.1.1.0) ==4232== by 0x5AD33FE: ??? (in /lib/x86_64-linux-gnu/libblkid.so.1.1.0) ==4232== by 0x5AC5AEE: ??? (in /lib/x86_64-linux-gnu/libblkid.so.1.1.0) ==4232== by 0x4E4F9D9: _device_probe_geometry (linux.c:693) ==4232== by 0x4E52A0B: linux_new (linux.c:1103) ==4232== by 0x4E46742: ped_device_get (device.c:172) ==4232== by 0x401CE6: ??? (in /usr/sbin/fatresize) ==4232== by 0x52DBEC4: (below main) (libc-start.c:287) ==4232== ==4232== Warning: noted but unhandled ioctl 0x1279 with no size/direction hints ==4232== This could cause spurious value errors to appear. ==4232== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper. ==4232== Conditional jump or move depends on uninitialised value(s) ==4232== at 0x5AD3425: ??? (in /lib/x86_64-linux-gnu/libblkid.so.1.1.0) ==4232== by 0x5AC5AEE: ??? (in /lib/x86_64-linux-gnu/libblkid.so.1.1.0) ==4232== by 0x4E4F9D9: _device_probe_geometry (linux.c:693) ==4232== by 0x4E52A0B: linux_new (linux.c:1103) ==4232== by 0x4E46742: ped_device_get (device.c:172) ==4232== by 0x401CE6: ??? (in /usr/sbin/fatresize) ==4232== by 0x52DBEC4: (below main) (libc-start.c:287) ==4232== ==4232== Invalid read of size 8 ==4232== at 0x4E60AB0: fat_resize (string3.h:51) ==4232== by 0x402460: ??? (in /usr/sbin/fatresize) ==4232== by 0x52DBEC4: (below main) (libc-start.c:287) ==4232== Address 0x71bbfb8 is 0 bytes after a block of size 216 alloc'd ==4232== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==4232== by 0x4E487A5: ped_malloc (libparted.c:242) ==4232== by 0x4E5F9F4: fat_alloc (fat.c:35) ==4232== by 0x4E5FB11: fat_open (fat.c:224) ==4232== by 0x4E47D9E: ped_file_system_open (filesys.c:487) ==4232== by 0x40235D: ??? (in /usr/sbin/fatresize) ==4232== by 0x52DBEC4: (below main) (libc-start.c:287) ==4232== ==4232== Invalid read of size 8 ==4232== at 0x4E60B0D: fat_resize (string3.h:51) ==4232== by 0x402460: ??? (in /usr/sbin/fatresize) ==4232== by 0x52DBEC4: (below main) (libc-start.c:287) ==4232== Address 0x71bbfb8 is 0 bytes after a block of size 216 alloc'd ==4232== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==4232== by 0x4E487A5: ped_malloc (libparted.c:242) ==4232== by 0x4E5F9F4: fat_alloc (fat.c:35) ==4232== by 0x4E5FB11: fat_open (fat.c:224) ==4232== by 0x4E47D9E: ped_file_system_open (filesys.c:487) ==4232== by 0x40235D: ??? (in /usr/sbin/fatresize) ==4232== by 0x52DBEC4: (below main) (libc-start.c:287) ==4232== ..............................==4232== ==4232== HEAP SUMMARY: ==4232== in use at exit: 751 bytes in 8 blocks ==4232== total heap usage: 2,571 allocs, 2,563 frees, 62,093,082 bytes allocated ==4232== ==4232== LEAK SUMMARY: ==4232== definitely lost: 664 bytes in 5 blocks ==4232== indirectly lost: 0 bytes in 0 blocks ==4232== possibly lost: 0 bytes in 0 blocks ==4232== still reachable: 87 bytes in 3 blocks ==4232== suppressed: 0 bytes in 0 blocks ==4232== Rerun with --leak-check=full to see details of leaked memory ==4232== ==4232== For counts of detected and suppressed errors, rerun with: -v ==4232== Use --track-origins=yes to see where uninitialised values come from ==4232== ERROR SUMMARY: 154 errors from 5 contexts (suppressed: 0 from 0) ** Affects: fatresize (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1493079 Title: crashes malloc smallbin double linked list corrupted To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fatresize/+bug/1493079/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs