public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug malloc/17581] New: malloc_usable_size: expected 7 but got 11
@ 2014-11-11 21:04 jim at lemke dot org
  2014-12-01 21:07 ` [Bug malloc/17581] " cvs-commit at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jim at lemke dot org @ 2014-11-11 21:04 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17581

            Bug ID: 17581
           Summary: malloc_usable_size: expected 7 but got 11
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: malloc
          Assignee: unassigned at sourceware dot org
          Reporter: jim at lemke dot org

glibc testing sometimes generates this failure:
   FAIL: malloc/tst-malloc-usable.out
   malloc_usable_size: expected 7 but got 11

I have seen the problem in 2.17 and later.

The problem is in the malloc checking code.
malloc/hooks.c: __malloc_check_init(), mem2mem_check(), mem2chunk_check()

I have submitted a fix to the libc-alpha list.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug malloc/17581] malloc_usable_size: expected 7 but got 11
  2014-11-11 21:04 [Bug malloc/17581] New: malloc_usable_size: expected 7 but got 11 jim at lemke dot org
@ 2014-12-01 21:07 ` cvs-commit at gcc dot gnu.org
  2014-12-01 21:56 ` jim at lemke dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2014-12-01 21:07 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17581

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  08f1e1d2bca9ef087813357780ec0bafe71c7d29 (commit)
      from  a8a7d7d212de1dd8c8d0a59eb9ea1c9289f63be1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=08f1e1d2bca9ef087813357780ec0bafe71c7d29

commit 08f1e1d2bca9ef087813357780ec0bafe71c7d29
Author: James Lemke <jwlemke@codesourcery.com>
Date:   Wed Nov 26 13:45:24 2014 -0800

    Fix for test "malloc_usable_size: expected 7 but got 11"

    [BZ #17581] The checking chain of unused chunks was terminated by a hash of
    the block pointer, which was sometimes confused with the chunk length byte.
    The chain is now terminated by a NULL byte.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog      |    8 +++++
 NEWS           |    4 +-
 malloc/hooks.c |   79 +++++++++++++++++++++++++++++++------------------------
 3 files changed, 54 insertions(+), 37 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug malloc/17581] malloc_usable_size: expected 7 but got 11
  2014-11-11 21:04 [Bug malloc/17581] New: malloc_usable_size: expected 7 but got 11 jim at lemke dot org
  2014-12-01 21:07 ` [Bug malloc/17581] " cvs-commit at gcc dot gnu.org
@ 2014-12-01 21:56 ` jim at lemke dot org
  2014-12-11 11:02 ` schwab@linux-m68k.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jim at lemke dot org @ 2014-12-01 21:56 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17581

James Lemke <jim at lemke dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from James Lemke <jim at lemke dot org> ---
The problem is fixed by the patch committed above.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug malloc/17581] malloc_usable_size: expected 7 but got 11
  2014-11-11 21:04 [Bug malloc/17581] New: malloc_usable_size: expected 7 but got 11 jim at lemke dot org
  2014-12-01 21:07 ` [Bug malloc/17581] " cvs-commit at gcc dot gnu.org
  2014-12-01 21:56 ` jim at lemke dot org
@ 2014-12-11 11:02 ` schwab@linux-m68k.org
  2014-12-12  0:50 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: schwab@linux-m68k.org @ 2014-12-11 11:02 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17581

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #3 from Andreas Schwab <schwab@linux-m68k.org> ---
That does not work.

$ MALLOC_CHECK_=3 iconv/iconvconfig --prefix=$PWD/root
*** Error in `iconv/iconvconfig': free(): invalid pointer: 0x09f15018 ***
======= Backtrace: =========
/suse/schwab/src/libc/i586/libc.so.6(+0x6cd73)[0xf7691d73]
/suse/schwab/src/libc/i586/libc.so.6(+0x72933)[0xf7697933]
/suse/schwab/src/libc/i586/libc.so.6(cfree+0x9b)[0xf769b31b]
/suse/schwab/src/libc/i586/libc.so.6(+0x2acea)[0xf764fcea]
/suse/schwab/src/libc/i586/libc.so.6(+0x23f35)[0xf7648f35]
/suse/schwab/src/libc/i586/libc.so.6(setlocale+0x2cf)[0xf76487af]
iconv/iconvconfig[0x8048dd5]
/suse/schwab/src/libc/i586/libc.so.6(__libc_start_main+0xf3)[0xf763e6f3]
iconv/iconvconfig[0x8049a96]
======= Memory map: ========
08048000-0804f000 r-xp 00000000 08:03 50072439                          
/daten/src/libc/i586/iconv/iconvconfig
0804f000-08050000 r--p 00006000 08:03 50072439                          
/daten/src/libc/i586/iconv/iconvconfig
08050000-08051000 rw-p 00007000 08:03 50072439                          
/daten/src/libc/i586/iconv/iconvconfig
09f15000-09f36000 rw-p 00000000 00:00 0                                  [heap]
f75db000-f75f6000 r-xp 00000000 08:02 1319905                           
/lib/libgcc_s.so.1
f75f6000-f75f7000 r--p 0001a000 08:02 1319905                           
/lib/libgcc_s.so.1
f75f7000-f75f8000 rw-p 0001b000 08:02 1319905                           
/lib/libgcc_s.so.1
f7623000-f7625000 rw-p 00000000 00:00 0 
f7625000-f7787000 r-xp 00000000 08:03 49819422                          
/daten/src/libc/i586/libc.so
f7787000-f7789000 r--p 00161000 08:03 49819422                          
/daten/src/libc/i586/libc.so
f7789000-f778a000 rw-p 00163000 08:03 49819422                          
/daten/src/libc/i586/libc.so
f778a000-f778e000 rw-p 00000000 00:00 0 
f778e000-f778f000 r-xp 00000000 00:00 0                                  [vdso]
f778f000-f77af000 r-xp 00000000 08:03 50080584                          
/daten/src/libc/i586/elf/ld.so
f77af000-f77b0000 r--p 0001f000 08:03 50080584                          
/daten/src/libc/i586/elf/ld.so
f77b0000-f77b1000 rw-p 00020000 08:03 50080584                          
/daten/src/libc/i586/elf/ld.so
ff8e7000-ff909000 rw-p 00000000 00:00 0                                 
[stack]
Aborted

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug malloc/17581] malloc_usable_size: expected 7 but got 11
  2014-11-11 21:04 [Bug malloc/17581] New: malloc_usable_size: expected 7 but got 11 jim at lemke dot org
                   ` (2 preceding siblings ...)
  2014-12-11 11:02 ` schwab@linux-m68k.org
@ 2014-12-12  0:50 ` cvs-commit at gcc dot gnu.org
  2015-05-19 19:12 ` cvs-commit at gcc dot gnu.org
  2015-05-19 20:10 ` jim at lemke dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2014-12-12  0:50 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17581

--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  9173840b4dbcd1a76993f22fd9595f0ae30d5a42 (commit)
      from  78e21c5df674e037d06e86c5d4cb95818c8f6b8c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9173840b4dbcd1a76993f22fd9595f0ae30d5a42

commit 9173840b4dbcd1a76993f22fd9595f0ae30d5a42
Author: James Lemke <jwlemke@codesourcery.com>
Date:   Thu Dec 11 16:38:15 2014 -0800

    Fix for test "malloc_usable_size: expected 7 but got 11"

    [BZ #17581] Revert this fix while investigating a problem.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog      |    8 +++++
 malloc/hooks.c |   79 ++++++++++++++++++++++++-------------------------------
 2 files changed, 43 insertions(+), 44 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug malloc/17581] malloc_usable_size: expected 7 but got 11
  2014-11-11 21:04 [Bug malloc/17581] New: malloc_usable_size: expected 7 but got 11 jim at lemke dot org
                   ` (3 preceding siblings ...)
  2014-12-12  0:50 ` cvs-commit at gcc dot gnu.org
@ 2015-05-19 19:12 ` cvs-commit at gcc dot gnu.org
  2015-05-19 20:10 ` jim at lemke dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-05-19 19:12 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17581

--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  265cbed8e73b23e3b38ada6cc42482c53a216224 (commit)
      from  85bae5a160e288fa85eab8a5d1b0b227ab20798a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=265cbed8e73b23e3b38ada6cc42482c53a216224

commit 265cbed8e73b23e3b38ada6cc42482c53a216224
Author: James Lemke <jwlemke@codesourcery.com>
Date:   Tue May 19 12:10:26 2015 -0700

    Fix for test "malloc_usable_size: expected 7 but got 11"

    [BZ #17581] The checking chain of unused chunks was terminated by a hash of
        the block pointer, which was sometimes confused with the chunk length
byte.
        We now avoid using a length byte equal to the magic byte.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog      |    9 ++++++++
 NEWS           |   16 +++++++-------
 malloc/hooks.c |   62 ++++++++++++++++++++++++++++++++++---------------------
 3 files changed, 55 insertions(+), 32 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug malloc/17581] malloc_usable_size: expected 7 but got 11
  2014-11-11 21:04 [Bug malloc/17581] New: malloc_usable_size: expected 7 but got 11 jim at lemke dot org
                   ` (4 preceding siblings ...)
  2015-05-19 19:12 ` cvs-commit at gcc dot gnu.org
@ 2015-05-19 20:10 ` jim at lemke dot org
  5 siblings, 0 replies; 7+ messages in thread
From: jim at lemke dot org @ 2015-05-19 20:10 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17581

James Lemke <jim at lemke dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from James Lemke <jim at lemke dot org> ---
Fixed by my commit today.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-05-19 20:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-11 21:04 [Bug malloc/17581] New: malloc_usable_size: expected 7 but got 11 jim at lemke dot org
2014-12-01 21:07 ` [Bug malloc/17581] " cvs-commit at gcc dot gnu.org
2014-12-01 21:56 ` jim at lemke dot org
2014-12-11 11:02 ` schwab@linux-m68k.org
2014-12-12  0:50 ` cvs-commit at gcc dot gnu.org
2015-05-19 19:12 ` cvs-commit at gcc dot gnu.org
2015-05-19 20:10 ` jim at lemke dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).