This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/779] New: no ptmalloc_init in public_mTRIm
- From: "mwdalton at stanford dot edu" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 6 Mar 2005 09:42:32 -0000
- Subject: [Bug libc/779] New: no ptmalloc_init in public_mTRIm
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
public_mTRIm()erroneously contains no code for initializing malloc's
data structures if it is the first malloc-related function called. A
simple test wherein malloc_trim() is called before any other memory
allocation function should verify that this causes a program crash.
The proper fix would appear to be just adding a simple
if(__malloc_initialized < 0) ptmalloc_init ();
at the beginning of public_mTRIm(). I'm not sure if these functions are
supported, but public_iCOMALLOc and public_iCALLOc also have the
same bug. Thanks for your help
Mike
--
Summary: no ptmalloc_init in public_mTRIm
Product: glibc
Version: 2.3.3
Status: NEW
Severity: minor
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: mwdalton at stanford dot edu
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: linux/i386
GCC host triplet: linux/i386
GCC target triplet: linux/i386
http://sources.redhat.com/bugzilla/show_bug.cgi?id=779
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.