[Bug 1303693] [NEW] /usr/bin/partitionmanager-bin': free(): invalid pointer: 0x0000000002786000 ***
Myriam Schweingruber
myriam at kde.org
Mon Apr 7 09:54:40 UTC 2014
Public bug reported:
I try to partition an external hard disk (Toshiba 3 TB USB 3.0).
Whatever tool I try, I always end up with a double free error in parted,
I tried paritionmanager, gparted, and aprted on the CLI, same problem.
I first ran gdisk to get a GPT table as the disk was by default using
MBR (which seems silly on such a big disk, but then...)
Once this is done (gdisk writes the new GUIID and exits without a
problem), I try to create a new ext4 partition on the disk, but
invarialby always end up with a double free error and a crash. Sadly the
bug appears to be in parted, as all GUI frontends (partitionmanager and
gparted) produce the same error, so does parted when run in a konsole.
I started parted with the following command:
sudo parted /dev/sdb
then try to see if there is a partition table:
(parted) print
*** Error in `parted': free(): invalid pointer: 0x0000000001766000 ***
*** Error in `parted': malloc(): memory corruption: 0x0000000001765cf0 ***
...
I have to kill parted to continue
When trying to run the suggested command:
parted /dev/sdb unit co print unit s print
I get exactly the same message again:
sudo parted /dev/sdb unit co print unit s print
*** Error in `parted': free(): invalid pointer: 0x0000000001ff9000 ***
*** Error in `parted': malloc(): memory corruption: 0x0000000001ff8b10 ***
You found a bug in GNU Parted! Here's what you have to do:
Don't panic! The bug has most likely not affected any of your data.
Help us to fix this bug by doing the following:
Check whether the bug has already been fixed by checking
the last version of GNU Parted that you can find at:
http://ftp.gnu.org/gnu/parted/
Please check this version prior to bug reporting.
If this has not been fixed yet or if you don't know how to check,
please visit the GNU Parted website:
http://www.gnu.org/software/parted
for further information.
Your report should contain the version of this release (2.3)
along with the error message below, the output of
parted DEVICE unit co print unit s print
and the following history of commands you entered.
Also include any additional information about your setup you
consider important.
This seems to me to be a really critical bug, as it is impossible to
create a partition and/or a filesystem on this disk. I doubt the disk is
to blame, as gdisk runs without problems
Please tell me if you need more information, I am always on in #kubuntu-
devel on IRC
Backtrace:
sudo gdb parted
GNU gdb (Ubuntu 7.7-0ubuntu3) 7.7
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from parted...
warning: the debug information found in "/usr/lib/debug//sbin/parted" does not match "/sbin/parted" (CRC mismatch).
warning: the debug information found in "/usr/lib/debug/sbin/parted" does not match "/sbin/parted" (CRC mismatch).
(no debugging symbols found)...done.
(gdb) run /dev/sdb
Starting program: /sbin/parted /dev/sdb
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
GNU Parted 2.3
Verwende /dev/sdb
Willkommen zu GNU Parted! Geben Sie 'help' ein, um eine Liste der verfügbaren Kommados zu erhalten.
(parted) print
*** Error in `/sbin/parted': free(): invalid pointer: 0x0000000000644000 ***
*** Error in `/sbin/parted': malloc(): memory corruption: 0x0000000000643b90 ***
Program received signal SIGSEGV, Segmentation fault.
_int_malloc (av=0x7ffff76e5760 <main_arena>, bytes=43) at malloc.c:3489
3489 malloc.c: Datei oder Verzeichnis nicht gefunden.
(gdb) thread apply all bt
Thread 1 (Thread 0x7ffff7fbd880 (LWP 16188)):
#0 _int_malloc (av=0x7ffff76e5760 <main_arena>, bytes=43) at malloc.c:3489
#1 0x00007ffff73a95f0 in __GI___libc_malloc (bytes=43) at malloc.c:2891
#2 0x00007ffff735a47f in _nl_make_l10nflist (l10nfile_list=l10nfile_list at entry=0x7ffff76e6da0 <_nl_loaded_domains>, dirlist=dirlist at entry=0x7ffff74ac190 <_nl_default_dirname> "/usr/share/locale", dirlist_len=18, mask=mask at entry=0, language=language at entry=0x7fffffffe110 "de", territory=territory at entry=0x0, codeset=codeset at entry=0x0, normalized_codeset=normalized_codeset at entry=0x0, modifier=modifier at entry=0x0, filename=filename at entry=0x7fffffffe130 "LC_MESSAGES/parted.mo", do_allocate=do_allocate at entry=0) at ../intl/l10nflist.c:185
#3 0x00007ffff735821a in _nl_find_domain (dirname=dirname at entry=0x7ffff74ac190 <_nl_default_dirname> "/usr/share/locale", locale=locale at entry=0x7fffffffe110 "de", domainname=domainname at entry=0x7fffffffe130 "LC_MESSAGES/parted.mo", domainbinding=domainbinding at entry=0x615010) at finddomain.c:86
#4 0x00007ffff7357a5e in __dcigettext (domainname=domainname at entry=0x7ffff7bbffa6 "parted", msgid1=0x7ffff7bb9970 "File system has an invalid number of FATs.", msgid2=msgid2 at entry=0x0, plural=plural at entry=0, n=n at entry=0, category=5) at dcigettext.c:640
#5 0x00007ffff735688f in __GI___dcgettext (domainname=domainname at entry=0x7ffff7bbffa6 "parted", msgid=<optimized out>, category=<optimized out>) at dcgettext.c:52
#6 0x00007ffff7b809e8 in fat_boot_sector_read (bs=bs at entry=0x643690, geom=geom at entry=0x6408c0) at ../../../../libparted/fs/fat/bootsector.c:85
#7 0x00007ffff7b83efc in fat_probe (geom=geom at entry=0x6408c0, fat_type=fat_type at entry=0x7fffffffe2cc) at ../../../../libparted/fs/fat/fat.c:124
#8 0x00007ffff7b83f7e in fat_probe_fat16 (geom=geom at entry=0x6408c0) at ../../../../libparted/fs/fat/fat.c:146
#9 0x00007ffff7b9621a in msdos_probe (dev=0x6362b0) at ../../../libparted/labels/dos.c:203
#10 0x00007ffff7b6db75 in ped_disk_probe (dev=dev at entry=0x6362b0) at ../../libparted/disk.c:157
#11 0x00007ffff7b6ff73 in ped_disk_new (dev=0x6362b0) at ../../libparted/disk.c:190
#12 0x0000000000406dff in ?? ()
#13 0x000000000040db71 in interactive_mode ()
#14 0x00000000004065bd in main ()
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: parted 2.3-18
ProcVersionSignature: Ubuntu 3.13.0-22.44-generic 3.13.8
Uname: Linux 3.13.0-22-generic x86_64
ApportVersion: 2.14-0ubuntu1
Architecture: amd64
CurrentDesktop: KDE
Date: Mon Apr 7 11:33:34 2014
InstallationDate: Installed on 2013-05-27 (314 days ago)
InstallationMedia: Kubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130314)
SourcePackage: parted
UpgradeStatus: Upgraded to trusty on 2014-03-05 (32 days ago)
** Affects: parted (Ubuntu)
Importance: Critical
Status: New
** Tags: amd64 apport-bug trusty
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to parted in Ubuntu.
https://bugs.launchpad.net/bugs/1303693
Title:
/usr/bin/partitionmanager-bin': free(): invalid pointer:
0x0000000002786000 ***
Status in “parted” package in Ubuntu:
New
Bug description:
I try to partition an external hard disk (Toshiba 3 TB USB 3.0).
Whatever tool I try, I always end up with a double free error in
parted, I tried paritionmanager, gparted, and aprted on the CLI, same
problem.
I first ran gdisk to get a GPT table as the disk was by default using
MBR (which seems silly on such a big disk, but then...)
Once this is done (gdisk writes the new GUIID and exits without a
problem), I try to create a new ext4 partition on the disk, but
invarialby always end up with a double free error and a crash. Sadly
the bug appears to be in parted, as all GUI frontends
(partitionmanager and gparted) produce the same error, so does parted
when run in a konsole.
I started parted with the following command:
sudo parted /dev/sdb
then try to see if there is a partition table:
(parted) print
*** Error in `parted': free(): invalid pointer: 0x0000000001766000 ***
*** Error in `parted': malloc(): memory corruption: 0x0000000001765cf0 ***
...
I have to kill parted to continue
When trying to run the suggested command:
parted /dev/sdb unit co print unit s print
I get exactly the same message again:
sudo parted /dev/sdb unit co print unit s print
*** Error in `parted': free(): invalid pointer: 0x0000000001ff9000 ***
*** Error in `parted': malloc(): memory corruption: 0x0000000001ff8b10 ***
You found a bug in GNU Parted! Here's what you have to do:
Don't panic! The bug has most likely not affected any of your data.
Help us to fix this bug by doing the following:
Check whether the bug has already been fixed by checking
the last version of GNU Parted that you can find at:
http://ftp.gnu.org/gnu/parted/
Please check this version prior to bug reporting.
If this has not been fixed yet or if you don't know how to check,
please visit the GNU Parted website:
http://www.gnu.org/software/parted
for further information.
Your report should contain the version of this release (2.3)
along with the error message below, the output of
parted DEVICE unit co print unit s print
and the following history of commands you entered.
Also include any additional information about your setup you
consider important.
This seems to me to be a really critical bug, as it is impossible to
create a partition and/or a filesystem on this disk. I doubt the disk
is to blame, as gdisk runs without problems
Please tell me if you need more information, I am always on in
#kubuntu-devel on IRC
Backtrace:
sudo gdb parted
GNU gdb (Ubuntu 7.7-0ubuntu3) 7.7
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from parted...
warning: the debug information found in "/usr/lib/debug//sbin/parted" does not match "/sbin/parted" (CRC mismatch).
warning: the debug information found in "/usr/lib/debug/sbin/parted" does not match "/sbin/parted" (CRC mismatch).
(no debugging symbols found)...done.
(gdb) run /dev/sdb
Starting program: /sbin/parted /dev/sdb
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
GNU Parted 2.3
Verwende /dev/sdb
Willkommen zu GNU Parted! Geben Sie 'help' ein, um eine Liste der verfügbaren Kommados zu erhalten.
(parted) print
*** Error in `/sbin/parted': free(): invalid pointer: 0x0000000000644000 ***
*** Error in `/sbin/parted': malloc(): memory corruption: 0x0000000000643b90 ***
Program received signal SIGSEGV, Segmentation fault.
_int_malloc (av=0x7ffff76e5760 <main_arena>, bytes=43) at malloc.c:3489
3489 malloc.c: Datei oder Verzeichnis nicht gefunden.
(gdb) thread apply all bt
Thread 1 (Thread 0x7ffff7fbd880 (LWP 16188)):
#0 _int_malloc (av=0x7ffff76e5760 <main_arena>, bytes=43) at malloc.c:3489
#1 0x00007ffff73a95f0 in __GI___libc_malloc (bytes=43) at malloc.c:2891
#2 0x00007ffff735a47f in _nl_make_l10nflist (l10nfile_list=l10nfile_list at entry=0x7ffff76e6da0 <_nl_loaded_domains>, dirlist=dirlist at entry=0x7ffff74ac190 <_nl_default_dirname> "/usr/share/locale", dirlist_len=18, mask=mask at entry=0, language=language at entry=0x7fffffffe110 "de", territory=territory at entry=0x0, codeset=codeset at entry=0x0, normalized_codeset=normalized_codeset at entry=0x0, modifier=modifier at entry=0x0, filename=filename at entry=0x7fffffffe130 "LC_MESSAGES/parted.mo", do_allocate=do_allocate at entry=0) at ../intl/l10nflist.c:185
#3 0x00007ffff735821a in _nl_find_domain (dirname=dirname at entry=0x7ffff74ac190 <_nl_default_dirname> "/usr/share/locale", locale=locale at entry=0x7fffffffe110 "de", domainname=domainname at entry=0x7fffffffe130 "LC_MESSAGES/parted.mo", domainbinding=domainbinding at entry=0x615010) at finddomain.c:86
#4 0x00007ffff7357a5e in __dcigettext (domainname=domainname at entry=0x7ffff7bbffa6 "parted", msgid1=0x7ffff7bb9970 "File system has an invalid number of FATs.", msgid2=msgid2 at entry=0x0, plural=plural at entry=0, n=n at entry=0, category=5) at dcigettext.c:640
#5 0x00007ffff735688f in __GI___dcgettext (domainname=domainname at entry=0x7ffff7bbffa6 "parted", msgid=<optimized out>, category=<optimized out>) at dcgettext.c:52
#6 0x00007ffff7b809e8 in fat_boot_sector_read (bs=bs at entry=0x643690, geom=geom at entry=0x6408c0) at ../../../../libparted/fs/fat/bootsector.c:85
#7 0x00007ffff7b83efc in fat_probe (geom=geom at entry=0x6408c0, fat_type=fat_type at entry=0x7fffffffe2cc) at ../../../../libparted/fs/fat/fat.c:124
#8 0x00007ffff7b83f7e in fat_probe_fat16 (geom=geom at entry=0x6408c0) at ../../../../libparted/fs/fat/fat.c:146
#9 0x00007ffff7b9621a in msdos_probe (dev=0x6362b0) at ../../../libparted/labels/dos.c:203
#10 0x00007ffff7b6db75 in ped_disk_probe (dev=dev at entry=0x6362b0) at ../../libparted/disk.c:157
#11 0x00007ffff7b6ff73 in ped_disk_new (dev=0x6362b0) at ../../libparted/disk.c:190
#12 0x0000000000406dff in ?? ()
#13 0x000000000040db71 in interactive_mode ()
#14 0x00000000004065bd in main ()
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: parted 2.3-18
ProcVersionSignature: Ubuntu 3.13.0-22.44-generic 3.13.8
Uname: Linux 3.13.0-22-generic x86_64
ApportVersion: 2.14-0ubuntu1
Architecture: amd64
CurrentDesktop: KDE
Date: Mon Apr 7 11:33:34 2014
InstallationDate: Installed on 2013-05-27 (314 days ago)
InstallationMedia: Kubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130314)
SourcePackage: parted
UpgradeStatus: Upgraded to trusty on 2014-03-05 (32 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/parted/+bug/1303693/+subscriptions
More information about the foundations-bugs
mailing list