stack smashing detected when resizing fat32 partition

Bug #455119 reported by ju1ius on 2009-10-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
parted (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: parted

Ubuntu 8.04 Kernel 2.6.24-16 generic
parted 1.7.1-5.1ubuntu9.2

(parted) print

Disque /dev/sdb1 : 320GB
Taille des secteurs (logique/physique) : 512o/512o
Table de partitions : loop

Numéro Début Fin Taille Système de fichiers Fanions
 1 0,00kB 320GB 320GB fat32

(parted) resize 1 0GB 300GB

*** stack smashing detected ***: parted terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7e25138]
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x0)[0xb7e250f0]
/lib/libparted-1.7.so.1[0xb7f405e4]
/lib/libparted-1.7.so.1[0xb7f13388]
[0x317e422d]
======= Memory map: ========
08048000-08056000 r-xp 00000000 08:02 1150567 /sbin/parted
08056000-08057000 rw-p 0000e000 08:02 1150567 /sbin/parted
08057000-084c8000 rw-p 08057000 00:00 0 [heap]
b4ccb000-b4cd5000 r-xp 00000000 08:02 277544 /lib/libgcc_s.so.1
b4cd5000-b4cd6000 rw-p 0000a000 08:02 277544 /lib/libgcc_s.so.1
b4cee000-b7c03000 rw-p b4cee000 00:00 0
b7c03000-b7c13000 r--p 00000000 08:02 563209 /usr/share/locale-langpack/fr/LC_MESSAGES/parted.mo
b7c13000-b7c52000 r--p 00000000 08:02 554928 /usr/lib/locale/fr_FR.utf8/LC_CTYPE
b7c52000-b7d33000 r--p 00000000 08:02 554931 /usr/lib/locale/fr_FR.utf8/LC_COLLATE
b7d33000-b7d34000 rw-p b7d33000 00:00 0
b7d34000-b7d37000 r-xp 00000000 08:02 277588 /lib/libuuid.so.1.2
b7d37000-b7d38000 rw-p 00002000 08:02 277588 /lib/libuuid.so.1.2
b7d38000-b7e81000 r-xp 00000000 08:02 295987 /lib/tls/i686/cmov/libc-2.7.so
b7e81000-b7e82000 r--p 00149000 08:02 295987 /lib/tls/i686/cmov/libc-2.7.so
b7e82000-b7e84000 rw-p 0014a000 08:02 295987 /lib/tls/i686/cmov/libc-2.7.so
b7e84000-b7e87000 rw-p b7e84000 00:00 0
b7e87000-b7eb4000 r-xp 00000000 08:02 277521 /lib/libncurses.so.5.6
b7eb4000-b7eb7000 rw-p 0002c000 08:02 277521 /lib/libncurses.so.5.6
b7eb7000-b7eb9000 r-xp 00000000 08:02 295990 /lib/tls/i686/cmov/libdl-2.7.so
b7eb9000-b7ebb000 rw-p 00001000 08:02 295990 /lib/tls/i686/cmov/libdl-2.7.so
b7ebb000-b7ebc000 rw-p b7ebb000 00:00 0
b7ebc000-b7ee8000 r-xp 00000000 08:02 277561 /lib/libreadline.so.5.2
b7ee8000-b7eec000 rw-p 0002c000 08:02 277561 /lib/libreadline.so.5.2
b7eec000-b7eed000 rw-p b7eec000 00:00 0
b7eed000-b7f4b000 r-xp 00000000 08:02 277742 /lib/libparted-1.7.so.1.0.0
b7f4b000-b7f4d000 rw-p 0005d000 08:02 277742 /lib/libparted-1.7.so.1.0.0
b7f4d000-b7f4e000 rw-p b7f4d000 00:00 0
b7f55000-b7f56000 r--p 00000000 08:02 554929 /usr/lib/locale/fr_FR.utf8/LC_NUMERIC
b7f56000-b7f57000 r--p 00000000 08:02 554930 /usr/lib/locale/fr_FR.utf8/LC_TIME
b7f57000-b7f58000 r--p 00000000 08:02 554932 /usr/lib/locale/fr_FR.utf8/LC_MONETARY
b7f58000-b7f59000 r--p 00000000 08:02 554933 /usr/lib/locale/fr_FR.utf8/LC_MESSAGES/SYS_LC_MESSAGES
b7f59000-b7f5a000 r--p 00000000 08:02 554934 /usr/lib/locale/fr_FR.utf8/LC_PAPER
b7f5a000-b7f5b000 r--p 00000000 08:02 554935 /usr/lib/locale/fr_FR.utf8/LC_NAME
b7f5b000-b7f5c000 r--p 00000000 08:02 554936 /usr/lib/locale/fr_FR.utf8/LC_ADDRESS
b7f5c000-b7f5d000 r--p 00000000 08:02 554937 /usr/lib/locale/fr_FR.utf8/LC_TELEPHONE
b7f5d000-b7f5e000 r--p 00000000 08:02 554938 /usr/lib/locale/fr_FR.utf8/LC_MEASUREMENT
b7f5e000-b7f65000 r--s 00000000 08:02 506034 /usr/lib/gconv/gconv-modules.cache
b7f65000-b7f66000 r--p 00000000 08:02 554939 /usr/lib/locale/fr_FR.utf8/LC_IDENTIFICATION
b7f66000-b7f68000 rw-p b7f66000 00:00 0
b7f68000-b7f69000 r-xp b7f68000 00:00 0 [vdso]
b7f69000-b7f83000 r-xp 00000000 08:02 277505 /lib/ld-2.7.so
b7f83000-b7f85000 rw-p 00019000 08:02 277505 /lib/ld-2.7.so
bfc1a000-bfc30000 rw-p bffea000 00:00 0 [stack]
Abandon

ProblemType: Bug
Architecture: i386
Date: Mon Oct 19 04:58:32 2009
DistroRelease: Ubuntu 8.04
NonfreeKernelModules: nvidia
Package: parted 1.7.1-5.1ubuntu9.2
PackageArchitecture: i386
ProcEnviron:
 PATH=/home/username/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: parted
Uname: Linux 2.6.24-16-generic i686

ju1ius (jules-bernable) wrote :
ju1ius (jules-bernable) wrote :
Download full text (3.4 KiB)

same issue checking partition:

(parted) check 1
*** stack smashing detected ***: parted terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7e99138]
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x0)[0xb7e990f0]
/lib/libparted-1.7.so.1[0xb7fb45e4]
/lib/libparted-1.7.so.1[0xb7f87388]
[0x317e422d]
======= Memory map: ========
08048000-08056000 r-xp 00000000 08:02 1150567 /sbin/parted
08056000-08057000 rw-p 0000e000 08:02 1150567 /sbin/parted
08057000-084cf000 rw-p 08057000 00:00 0 [heap]
b4d3f000-b4d49000 r-xp 00000000 08:02 277544 /lib/libgcc_s.so.1
b4d49000-b4d4a000 rw-p 0000a000 08:02 277544 /lib/libgcc_s.so.1
b4d62000-b7c77000 rw-p b4d62000 00:00 0
b7c77000-b7c87000 r--p 00000000 08:02 563209 /usr/share/locale-langpack/fr/LC_MESSAGES/parted.mo
b7c87000-b7cc6000 r--p 00000000 08:02 554928 /usr/lib/locale/fr_FR.utf8/LC_CTYPE
b7cc6000-b7da7000 r--p 00000000 08:02 554931 /usr/lib/locale/fr_FR.utf8/LC_COLLATE
b7da7000-b7da8000 rw-p b7da7000 00:00 0
b7da8000-b7dab000 r-xp 00000000 08:02 277588 /lib/libuuid.so.1.2
b7dab000-b7dac000 rw-p 00002000 08:02 277588 /lib/libuuid.so.1.2
b7dac000-b7ef5000 r-xp 00000000 08:02 295987 /lib/tls/i686/cmov/libc-2.7.so
b7ef5000-b7ef6000 r--p 00149000 08:02 295987 /lib/tls/i686/cmov/libc-2.7.so
b7ef6000-b7ef8000 rw-p 0014a000 08:02 295987 /lib/tls/i686/cmov/libc-2.7.so
b7ef8000-b7efb000 rw-p b7ef8000 00:00 0
b7efb000-b7f28000 r-xp 00000000 08:02 277521 /lib/libncurses.so.5.6
b7f28000-b7f2b000 rw-p 0002c000 08:02 277521 /lib/libncurses.so.5.6
b7f2b000-b7f2d000 r-xp 00000000 08:02 295990 /lib/tls/i686/cmov/libdl-2.7.so
b7f2d000-b7f2f000 rw-p 00001000 08:02 295990 /lib/tls/i686/cmov/libdl-2.7.so
b7f2f000-b7f30000 rw-p b7f2f000 00:00 0
b7f30000-b7f5c000 r-xp 00000000 08:02 277561 /lib/libreadline.so.5.2
b7f5c000-b7f60000 rw-p 0002c000 08:02 277561 /lib/libreadline.so.5.2
b7f60000-b7f61000 rw-p b7f60000 00:00 0
b7f61000-b7fbf000 r-xp 00000000 08:02 277742 /lib/libparted-1.7.so.1.0.0
b7fbf000-b7fc1000 rw-p 0005d000 08:02 277742 /lib/libparted-1.7.so.1.0.0
b7fc1000-b7fc2000 rw-p b7fc1000 00:00 0
b7fc9000-b7fca000 r--p 00000000 08:02 554929 /usr/lib/locale/fr_FR.utf8/LC_NUMERIC
b7fca000-b7fcb000 r--p 00000000 08:02 554930 /usr/lib/locale/fr_FR.utf8/LC_TIME
b7fcb000-b7fcc000 r--p 00000000 08:02 554932 /usr/lib/locale/fr_FR.utf8/LC_MONETARY
b7fcc000-b7fcd000 r--p 00000000 08:02 554933 /usr/lib/locale/fr_FR.utf8/LC_MESSAGES/SYS_LC_MESSAGES
b7fcd000-b7fce000 r--p 00000000 08:02 554934 /usr/lib/locale/fr_FR.utf8/LC_PAPER
b7fce000-b7fcf000 r--p 00000000 08:02 554935 /usr/lib/locale/fr_FR.utf8/LC_NAME
b7fcf000-b7fd0000 r--p 00000000 08:02 554936 /usr/lib/locale/fr_FR.utf8/LC_ADDRESS
b7fd0000-b7fd1000 r--p 00000000 08:02 554937 /usr/lib/locale/fr_FR.utf8/LC_TELEPHONE
b7fd1000-b7fd2000 r--p 00000000 08:02 554938 /usr/lib/locale/fr_FR.utf8/LC_MEASUREMENT
b7fd2000-b7fd9000 r--s 00000000 08:02 506034 /usr/lib/gconv/gconv-modules.cache
b7fd9000-b7fda000 r--p 00000000 08:02 554939 /usr/lib/locale/fr_FR.utf...

Read more...

ju1ius (jules-bernable) wrote :

This is the output of dosfsck

sudo dosfsck -a -w -v /dev/sdb1

dosfsck 2.11 (12 Mar 2005)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Checking we can access the last sector of the filesystem
There are differences between boot sector and its backup.
Differences: (offset:original/backup)
  71:4c/4e, 72:45/4f, 74:56/4e, 75:52/41, 76:41/4d, 77:49/45, 79:4d/20
  , 80:4f/20, 81:55/20
  Not automatically fixing this.
Boot sector contents:
System ID "*'1(`IHC"
Media byte 0xf8 (hard disk)
       512 bytes per logical sector
     32768 bytes per cluster
        32 reserved sectors
First FAT starts at byte 16384 (sector 32)
         2 FATs, 32 bit entries
  39066624 bytes per FAT (= 76302 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 78149632 (sector 152636)
   9765385 data clusters (319992135680 bytes)
63 sectors/track, 255 heads
        63 hidden sectors
 625137282 sectors total

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers