public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug malloc/28068] New: FAIL: malloc/tst-mallocalign1-mcheck
@ 2021-07-08 23:36 hjl.tools at gmail dot com
2021-07-09 0:06 ` [Bug malloc/28068] " hjl.tools at gmail dot com
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: hjl.tools at gmail dot com @ 2021-07-08 23:36 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28068
Bug ID: 28068
Summary: FAIL: malloc/tst-mallocalign1-mcheck
Product: glibc
Version: 2.34
Status: NEW
Severity: normal
Priority: P2
Component: malloc
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
Target Milestone: ---
Target: x32
On x32,
Author: Siddhesh Poyarekar <siddhesh@sourceware.org>
Date: Fri Jul 2 07:55:10 2021 +0530
Add mcheck tests to malloc
caused
FAIL: malloc/tst-mallocalign1-mcheck
$ cat malloc/tst-mallocalign1-mcheck.out
malloc: 2, 0x10b11c8: 8
malloc: 8, 0x10b11e8: 8
malloc: 13, 0x10b11e8: 8
malloc: 16, 0x10b11e8: 8
malloc: 23, 0x10b1218: 8
malloc: 43, 0x10b1258: 8
malloc: 123, 0x10b12a8: 8
malloc return should be 16 aligned. malloc/tst-mallocalign1.out has
malloc: 2, 0x22651a0: 0
malloc: 8, 0x22651a0: 0
malloc: 13, 0x22651b0: 0
malloc: 16, 0x22651b0: 0
malloc: 23, 0x22651b0: 0
malloc: 43, 0x22651d0: 0
malloc: 123, 0x2265200: 0
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug malloc/28068] FAIL: malloc/tst-mallocalign1-mcheck
2021-07-08 23:36 [Bug malloc/28068] New: FAIL: malloc/tst-mallocalign1-mcheck hjl.tools at gmail dot com
@ 2021-07-09 0:06 ` hjl.tools at gmail dot com
2021-07-12 17:50 ` msc at linux dot ibm.com
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: hjl.tools at gmail dot com @ 2021-07-09 0:06 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28068
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
mcheck.c doesn't take MALLOC_ALIGNMENT into account.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug malloc/28068] FAIL: malloc/tst-mallocalign1-mcheck
2021-07-08 23:36 [Bug malloc/28068] New: FAIL: malloc/tst-mallocalign1-mcheck hjl.tools at gmail dot com
2021-07-09 0:06 ` [Bug malloc/28068] " hjl.tools at gmail dot com
@ 2021-07-12 17:50 ` msc at linux dot ibm.com
2021-07-12 18:03 ` hjl.tools at gmail dot com
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: msc at linux dot ibm.com @ 2021-07-12 17:50 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28068
Matheus Castanho <msc at linux dot ibm.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |msc at linux dot ibm.com
--- Comment #2 from Matheus Castanho <msc at linux dot ibm.com> ---
I see the same issue on ppc32:
$ make test t=malloc/tst-mallocalign1
[...]
PASS: malloc/tst-mallocalign1
original exit status 0
malloc: 2, 0xf7b701a0: 0
malloc: 8, 0xf7b701a0: 0
malloc: 13, 0xf7b701b0: 0
malloc: 16, 0xf7b701b0: 0
malloc: 23, 0xf7b701b0: 0
malloc: 43, 0xf7b701d0: 0
malloc: 123, 0xf7b70200: 0
$ make test t=malloc/tst-mallocalign1-mcheck
[...]
FAIL: malloc/tst-mallocalign1-mcheck
original exit status 8
malloc: 2, 0xf7c101c8: 8
malloc: 8, 0xf7c101e8: 8
malloc: 13, 0xf7c101e8: 8
malloc: 16, 0xf7c101e8: 8
malloc: 23, 0xf7c10218: 8
malloc: 43, 0xf7c10258: 8
malloc: 123, 0xf7c102a8: 8
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug malloc/28068] FAIL: malloc/tst-mallocalign1-mcheck
2021-07-08 23:36 [Bug malloc/28068] New: FAIL: malloc/tst-mallocalign1-mcheck hjl.tools at gmail dot com
2021-07-09 0:06 ` [Bug malloc/28068] " hjl.tools at gmail dot com
2021-07-12 17:50 ` msc at linux dot ibm.com
@ 2021-07-12 18:03 ` hjl.tools at gmail dot com
2021-07-12 18:04 ` hjl.tools at gmail dot com
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: hjl.tools at gmail dot com @ 2021-07-12 18:03 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28068
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Depends on| |22057
Referenced Bugs:
https://sourceware.org/bugzilla/show_bug.cgi?id=22057
[Bug 22057] malloc_usable_size is broken with mcheck
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug malloc/28068] FAIL: malloc/tst-mallocalign1-mcheck
2021-07-08 23:36 [Bug malloc/28068] New: FAIL: malloc/tst-mallocalign1-mcheck hjl.tools at gmail dot com
` (2 preceding siblings ...)
2021-07-12 18:03 ` hjl.tools at gmail dot com
@ 2021-07-12 18:04 ` hjl.tools at gmail dot com
2021-07-13 1:14 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: hjl.tools at gmail dot com @ 2021-07-12 18:04 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28068
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Depends on| |23489
Referenced Bugs:
https://sourceware.org/bugzilla/show_bug.cgi?id=23489
[Bug 23489] "gcc -lmcheck" aborts on free when using posix_memalign
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug malloc/28068] FAIL: malloc/tst-mallocalign1-mcheck
2021-07-08 23:36 [Bug malloc/28068] New: FAIL: malloc/tst-mallocalign1-mcheck hjl.tools at gmail dot com
` (3 preceding siblings ...)
2021-07-12 18:04 ` hjl.tools at gmail dot com
@ 2021-07-13 1:14 ` cvs-commit at gcc dot gnu.org
2021-07-13 1:15 ` hjl.tools at gmail dot com
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-07-13 1:14 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28068
--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=84ea6ea24bd5bef674ce16a2832dbbe4d514e6d9
commit 84ea6ea24bd5bef674ce16a2832dbbe4d514e6d9
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Mon Jul 12 14:36:39 2021 -0700
mcheck: Align struct hdr to MALLOC_ALIGNMENT bytes [BZ #28068]
1. Align struct hdr to MALLOC_ALIGNMENT bytes so that malloc hooks in
libmcheck align memory to MALLOC_ALIGNMENT bytes.
2. Remove tst-mallocalign1 from tests-exclude-mcheck for i386 and x32.
3. Add tst-pvalloc-fortify and tst-reallocarray to tests-exclude-mcheck
since they use malloc_usable_size (see BZ #22057).
This fixed BZ #28068.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug malloc/28068] FAIL: malloc/tst-mallocalign1-mcheck
2021-07-08 23:36 [Bug malloc/28068] New: FAIL: malloc/tst-mallocalign1-mcheck hjl.tools at gmail dot com
` (4 preceding siblings ...)
2021-07-13 1:14 ` cvs-commit at gcc dot gnu.org
@ 2021-07-13 1:15 ` hjl.tools at gmail dot com
2021-07-22 13:17 ` siddhesh at sourceware dot org
2021-07-22 13:20 ` siddhesh at sourceware dot org
7 siblings, 0 replies; 9+ messages in thread
From: hjl.tools at gmail dot com @ 2021-07-13 1:15 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28068
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Target Milestone|--- |2.34
Status|NEW |RESOLVED
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed for 2.34.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug malloc/28068] FAIL: malloc/tst-mallocalign1-mcheck
2021-07-08 23:36 [Bug malloc/28068] New: FAIL: malloc/tst-mallocalign1-mcheck hjl.tools at gmail dot com
` (5 preceding siblings ...)
2021-07-13 1:15 ` hjl.tools at gmail dot com
@ 2021-07-22 13:17 ` siddhesh at sourceware dot org
2021-07-22 13:20 ` siddhesh at sourceware dot org
7 siblings, 0 replies; 9+ messages in thread
From: siddhesh at sourceware dot org @ 2021-07-22 13:17 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28068
Bug 28068 depends on bug 22057, which changed state.
Bug 22057 Summary: malloc_usable_size is broken with mcheck
https://sourceware.org/bugzilla/show_bug.cgi?id=22057
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug malloc/28068] FAIL: malloc/tst-mallocalign1-mcheck
2021-07-08 23:36 [Bug malloc/28068] New: FAIL: malloc/tst-mallocalign1-mcheck hjl.tools at gmail dot com
` (6 preceding siblings ...)
2021-07-22 13:17 ` siddhesh at sourceware dot org
@ 2021-07-22 13:20 ` siddhesh at sourceware dot org
7 siblings, 0 replies; 9+ messages in thread
From: siddhesh at sourceware dot org @ 2021-07-22 13:20 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28068
Bug 28068 depends on bug 23489, which changed state.
Bug 23489 Summary: "gcc -lmcheck" aborts on free when using posix_memalign
https://sourceware.org/bugzilla/show_bug.cgi?id=23489
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2021-07-22 13:20 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-08 23:36 [Bug malloc/28068] New: FAIL: malloc/tst-mallocalign1-mcheck hjl.tools at gmail dot com
2021-07-09 0:06 ` [Bug malloc/28068] " hjl.tools at gmail dot com
2021-07-12 17:50 ` msc at linux dot ibm.com
2021-07-12 18:03 ` hjl.tools at gmail dot com
2021-07-12 18:04 ` hjl.tools at gmail dot com
2021-07-13 1:14 ` cvs-commit at gcc dot gnu.org
2021-07-13 1:15 ` hjl.tools at gmail dot com
2021-07-22 13:17 ` siddhesh at sourceware dot org
2021-07-22 13:20 ` siddhesh at sourceware 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).