public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/1139] New: libc uses calloc upon initialization in _dl_tls_setup
@ 2005-07-30  9:05 bugzilla at mcsmurf dot de
  2005-09-27 19:42 ` [Bug libc/1139] " drepper at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla at mcsmurf dot de @ 2005-07-30  9:05 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug libc/1139] libc uses calloc upon initialization in _dl_tls_setup
  2005-07-30  9:05 [Bug libc/1139] New: libc uses calloc upon initialization in _dl_tls_setup bugzilla at mcsmurf dot de
@ 2005-09-27 19:42 ` drepper at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: drepper at redhat dot com @ 2005-09-27 19:42 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2005-09-27 19:41 -------
Then you'll have to work around that in your tool.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX


http://sourceware.org/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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-09-27 19:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-30  9:05 [Bug libc/1139] New: libc uses calloc upon initialization in _dl_tls_setup bugzilla at mcsmurf dot de
2005-09-27 19:42 ` [Bug libc/1139] " 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).