This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/1139] New: libc uses calloc upon initialization in _dl_tls_setup
- From: "bugzilla at mcsmurf dot de" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 30 Jul 2005 09:05:22 -0000
- Subject: [Bug libc/1139] New: libc uses calloc upon initialization in _dl_tls_setup
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
First i hope i'm correct here with this bug report. The problem is libc uses
calloc upon initialization, to be exact in the function _dl_tls_setup in
dl-tls.c. This can cause problems with code that tries to find memory leaks and
so provides it's own malloc/calloc/etc. functions since those functions might
not be working yet on init of libc. A example is the trace-malloc code from
Mozilla, glibc calls calloc upon init while NSPR (that's the very core of
Mozilla) is not initialized yet which crashes it, see
https://bugzilla.mozilla.org/show_bug.cgi?id=295159 for the bug report on this.
Maybe this calloc call on init could be avoided?
--
Summary: libc uses calloc upon initialization in _dl_tls_setup
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: bugzilla at mcsmurf dot de
CC: glibc-bugs at sources dot redhat dot com
http://sources.redhat.com/bugzilla/show_bug.cgi?id=1139
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.