public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/779] New: no ptmalloc_init in public_mTRIm
@ 2005-03-06 9:42 mwdalton at stanford dot edu
2005-03-06 9:46 ` [Bug libc/779] " mwdalton at stanford dot edu
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: mwdalton at stanford dot edu @ 2005-03-06 9:42 UTC (permalink / raw)
To: glibc-bugs
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/779] no ptmalloc_init in public_mTRIm
2005-03-06 9:42 [Bug libc/779] New: no ptmalloc_init in public_mTRIm mwdalton at stanford dot edu
@ 2005-03-06 9:46 ` mwdalton at stanford dot edu
2005-07-18 2:46 ` cvs-commit at gcc dot gnu dot org
2005-09-27 1:47 ` drepper at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: mwdalton at stanford dot edu @ 2005-03-06 9:46 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From mwdalton at stanford dot edu 2005-03-06 09:46 -------
Created an attachment (id=430)
--> (http://sources.redhat.com/bugzilla/attachment.cgi?id=430&action=view)
Test case demonstrating mtrim bug
Swap the malloc and the mtrim and the program works fine
--
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/779] no ptmalloc_init in public_mTRIm
2005-03-06 9:42 [Bug libc/779] New: no ptmalloc_init in public_mTRIm mwdalton at stanford dot edu
2005-03-06 9:46 ` [Bug libc/779] " mwdalton at stanford dot edu
@ 2005-07-18 2:46 ` cvs-commit at gcc dot gnu dot org
2005-09-27 1:47 ` drepper at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-18 2:46 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-07-18 02:46 -------
Subject: Bug 779
CVSROOT: /cvs/glibc
Module name: libc
Branch: glibc-2_3-branch
Changes by: roland@sources.redhat.com 2005-07-18 02:46:04
Modified files:
malloc : malloc.c
Log message:
2005-03-15 Jakub Jelinek <jakub@redhat.com>
[BZ #779]
* malloc/malloc.c (public_mTRIm): Initialize malloc if not yet
initialized.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/malloc/malloc.c.diff?cvsroot=glibc&only_with_tag=glibc-2_3-branch&r1=1.142&r2=1.142.2.1
--
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/779] no ptmalloc_init in public_mTRIm
2005-03-06 9:42 [Bug libc/779] New: no ptmalloc_init in public_mTRIm mwdalton at stanford dot edu
2005-03-06 9:46 ` [Bug libc/779] " mwdalton at stanford dot edu
2005-07-18 2:46 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-27 1:47 ` drepper at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: drepper at redhat dot com @ 2005-09-27 1:47 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2005-09-27 01:47 -------
Also fixed on the branch.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sourceware.org/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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-09-27 1:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-06 9:42 [Bug libc/779] New: no ptmalloc_init in public_mTRIm mwdalton at stanford dot edu
2005-03-06 9:46 ` [Bug libc/779] " mwdalton at stanford dot edu
2005-07-18 2:46 ` cvs-commit at gcc dot gnu dot org
2005-09-27 1:47 ` drepper at redhat dot com
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).