Bug 1764235
Summary: | glibc: malloc: Set and reset all hooks for tracing (Bug 16573) | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Carlos O'Donell <codonell> |
Component: | glibc | Assignee: | Carlos O'Donell <codonell> |
Status: | CLOSED ERRATA | QA Contact: | qe-baseos-tools-bugs |
Severity: | unspecified | Docs Contact: | Zuzana Zoubkova <zzoubkov> |
Priority: | unspecified | ||
Version: | 8.2 | CC: | ashankar, codonell, dj, fweimer, mnewsome, pfrankli, skolosov |
Target Milestone: | rc | Keywords: | Patch, Triaged |
Target Release: | 8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | glibc-2.28-92 | Doc Type: | Bug Fix |
Doc Text: |
.`mtrace` no longer hangs when internal failures occur
Previously, a defect in the `mtrace` tool implementation could cause memory tracing to hang. To fix this issue, the `mtrace` memory tracing implementation has been made more robust to avoid the hang even in the face of internal failures. As a result, users can now call `mtrace` and it no longer hangs, completing in bounded time.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2020-04-28 16:50:19 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1746918 |
Description
Carlos O'Donell
2019-10-22 13:58:50 UTC
Verified with a test case from https://sourceware.org/bugzilla/show_bug.cgi?id=16573, it doesn't hang: [root@host bz1764235-glibc-malloc-Set-and-reset-all-hooks-for-tracing]# cat mtrace_test.c #include <stdlib.h> #include <mcheck.h> int main(void) { char *a; mtrace(); a = (char*) malloc(8); free(a); free(a); muntrace(); } [root@host bz1764235-glibc-malloc-Set-and-reset-all-hooks-for-tracing]# gcc mtrace_test.c -o mtrace_test [root@host bz1764235-glibc-malloc-Set-and-reset-all-hooks-for-tracing]# MALLOC_TRACE='mtrace.log' ./mtrace_test free(): double free detected in tcache 2 Aborted (core dumped) [root@host bz1764235-glibc-malloc-Set-and-reset-all-hooks-for-tracing]# Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:1828 |