This is sources Bugzilla
Bugzilla Version 2.17.5
Bugzilla Bug 7029
  CPU_ALLOC_SIZE() returns wrong value Last modified: 2008-11-13 19:57
     Query page      Enter new bug
Bug#: 7029   Hardware:   Reporter: Michael Kerrisk <mtk.manpages@gmail.com>
Host: Target: Build:
Product:     Add CC:
Component:   Version:   CC:
Remove selected CCs
Status: RESOLVED   Priority:  
Resolution: FIXED   Severity:  
Assigned To: Ulrich Drepper <drepper@redhat.com>   Target Milestone:  
Flags: Requestee:
  backport ()
  examined ()
  testsuite ()
Summary:
Keywords:

Attachment Description Type Created Actions
t_CPU_ALLOC_SIZE.c test program text/plain 2008-11-13 03:07 Edit None
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 7029 depends on: Show dependency tree
Show dependency graph
Bug 7029 blocks:

Additional Comments:


Leave as RESOLVED FIXED
Reopen bug
Mark bug as VERIFIED

View Bug Activity   |   Format For Printing


Description:   Last confirmed: 0000-00-00 00:00 Opened: 2008-11-13 03:05
On x86-32 at least, CPU_ALLOC_SIZE() returns twice the value that its should. 
For example, CPU_ALLOC_SIZE(8192) returns 2048.  This also causes CPU_ALLOC() to
allocate double the required memory.

------- Additional Comment #1 From Michael Kerrisk 2008-11-13 03:07 -------
Created an attachment (id=3059)
test program

An example run of the attached program demonstrates the problem:

$ ./a.out 8192
CPU_ALLOC_SIZE()=2048

------- Additional Comment #2 From Ulrich Drepper 2008-11-13 19:57 -------
Changed in cvs.

     Query page      Enter new bug
Actions: New | Query | bug # | Reports | Requests   New Account | Log In