Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80439 - "double free" glibc error when using resize2fs
Summary: "double free" glibc error when using resize2fs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 87028 93712 96211 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-02 02:43 UTC by Mike Culbertson
Modified: 2005-06-15 14:12 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Culbertson 2005-02-02 02:43:34 UTC
First discovered while resizing an ext3 filesystem on an LVM logical volume, but then confirmed on a real partition on another system. One odd thing is that the resize appears to work despite the error, or at least I haven't found anything wrong yet.  

Reproducible: Always
Steps to Reproduce:
Steps when resizing a filesystem on a real partition (hda7 in this example was _not_ on the system disk nor was it in use. Also, the resize was a shrink from 1GB to 512MB, though I get the same error if I grow the fs as well)

1. umount /dev/hda7
2. resize2fs -p /dev/hda7 512M


Actual Results:  
resize2fs 1.35 (28-Feb-2004) 
Resizing the filesystem on /dev/hda7 to 131072 (4k) blocks. 
Begin pass 2 (max = 15849) 
Relocating blocks             XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 
Begin pass 3 (max = 6) 
Scanning inode table          XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 
Begin pass 4 (max = 676) 
Updating inode references     XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*** glibc 
detected *** double free or corruption (!prev): 0x080536d8 *** 
Aborted 

Expected Results:  
I cannot answer this as I have not resized an ext2/3 filesystem before. Based 
on the output I think it should have just exited normally at the point where 
the error occurs.  

I found a reference to an almost identical bug in RedHat:    
    
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=132707    
    
However, in my case e2fsck reports _no_ errors at all when run before or after    
the resize.  
  
Confirmed on 2 systems:  
  
Kernel versions: 2.6.9 and 2.6.10  
Gentoo 2004.2  
e2fsprogs-1.35-r1
Comment 1 SpanKY gentoo-dev 2005-03-28 19:47:12 UTC
*** Bug 87028 has been marked as a duplicate of this bug. ***
Comment 2 James Francis 2005-03-29 18:56:44 UTC
The same error happens to me on my amd64 system.
My kernel version: 2.6.9-r14
e2fsprogs-1.35-r1

Throws exactly the same error and e2fsck does not report any errors afterwards for myself either.
Comment 3 SpanKY gentoo-dev 2005-03-29 18:59:09 UTC
hmm, does 1.37 help at all ?
Comment 4 James Francis 2005-04-03 19:09:45 UTC
I unmasked the e2fsprogs-1.37 for amd64, emerged it, and did some preliminary testing.  It definitely seems to resolve the issue and the double free error is no longer thrown.  I ran it through a variety of tests, such as shrinking and enlarging the filesystems.  The 1.37 version seems to be more stable than the 1.35 version and might I suggest that it is unmasked for amd64 by default?
Comment 5 SpanKY gentoo-dev 2005-04-04 05:46:24 UTC
we're waiting on a bug to be fixed in 1.37 before moving it to stable

thanks for testing :)
Comment 6 Tor Klingberg 2005-04-10 13:42:43 UTC
The same bug is in RedHat Bugzilla here:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=132707
They seem to have fixed the bug in their 1.35-10

I had it too btw.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2005-05-23 10:46:42 UTC
*** Bug 93712 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2005-06-15 14:12:52 UTC
*** Bug 96211 has been marked as a duplicate of this bug. ***