Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 317350 Details for
Bug 457508
realloc doesn't fully copy the old data
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Instrumentation patch (prints sizes of malloc/free)
debug.patch (text/plain), 1.88 KB, created by
Peter Markovski
on 2008-09-22 11:33:31 UTC
(
hide
)
Description:
Instrumentation patch (prints sizes of malloc/free)
Filename:
MIME Type:
Creator:
Peter Markovski
Created:
2008-09-22 11:33:31 UTC
Size:
1.88 KB
patch
obsolete
>--- glibc-2.8.o/malloc/malloc.c 2008-04-16 20:55:53.000000000 +0200 >+++ glibc-2.8.n/malloc/malloc.c 2008-09-22 13:00:29.000000000 +0200 >@@ -4112,6 +4112,7 @@ _int_malloc(mstate av, size_t bytes) > */ > > checked_request2size(bytes, nb); >+printf("_int_malloc: bytes:%d nb:%d SIZE_SZ:%d\n", (int)bytes, (int)nb, (int)SIZE_SZ); > > /* > If the size qualifies as a fastbin, first check corresponding bin. >@@ -4207,6 +4208,7 @@ _int_malloc(mstate av, size_t bytes) > malloc_printerr (check_action, "malloc(): memory corruption", > chunk2mem (victim)); > size = chunksize(victim); >+printf("_int_malloc: 1 size:%d\n", (int)size); > > /* > If a small request, try to use last remainder if it is the >@@ -4339,6 +4341,7 @@ _int_malloc(mstate av, size_t bytes) > while (((unsigned long)(size = chunksize(victim)) < > (unsigned long)(nb))) > victim = victim->bk_nextsize; >+printf("_int_malloc: 2 size:%d\n", (int)size); > > /* Avoid removing the first entry for a size so that the skip > list does not have to be rerouted. */ >@@ -4432,6 +4435,7 @@ _int_malloc(mstate av, size_t bytes) > > else { > size = chunksize(victim); >+printf("_int_malloc: 3 size:%d\n", (int)size); > > /* We know the first chunk in this bin is big enough to use. */ > assert((unsigned long)(size) >= (unsigned long)(nb)); >@@ -4500,6 +4504,7 @@ _int_malloc(mstate av, size_t bytes) > > victim = av->top; > size = chunksize(victim); >+printf("_int_malloc: 4 size:%d\n", (int)size); > > if ((unsigned long)(size) >= (unsigned long)(nb + MINSIZE)) { > remainder_size = size - nb; >@@ -4561,6 +4566,7 @@ _int_free(mstate av, Void_t* mem) > > p = mem2chunk(mem); > size = chunksize(p); >+printf("_int_free: chunksize:%d\n", (int)size); > > /* Little security check which won't hurt performance: the > allocator never wrapps around at the end of the address space.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 457508
:
314319
|
314330
| 317350 |
360703