Bug 134385
Summary: | tar free(): invalid pointer | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Warren Togami <wtogami> | ||||
Component: | glibc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Brian Brock <bbrock> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | rawhide | CC: | drepper, vladimir.kondratiev | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | 2.3.3-65 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2004-10-06 04:38:28 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Warren Togami
2004-10-01 21:16:11 UTC
Created attachment 104650 [details]
kernel-changes.tar
Compiling with mtrace(); as the first instruction in main() will show this after a run: # mtrace tar aaa - 0x08206000 Free 64 was never alloc'd /usr/src/redhat/BUILD/tar-1.14/src/buffer.c:914 Memory not freed: ----------------- Address Size Caller 0x08205c20 0xc at 0x80669ba 0x08205c30 0x14 at 0x80669ba 0x08205c48 0x3 at 0x80669ba 0x08205c58 0x3 at 0x80669ba Important is only the first line, not the leaks. There seems to be a memory handling problem. Turns out this one is a glibc problem. tar uses valloc (probably the only one doing so) and valloc didn't use the hooks (used for debugging with MALLOC_CHECK_ and for mtrace). After adding the hooks the program runs fine. Should be in the next glibc version (2.3.3-64). Note that this is no problem for the normal mode of operation. Only when MALLOC_CHECK_ is used with a nonzero value. Fixed in rawhide. Please see my updates for bug #132953, it should be this problem reappears. |