public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "thor at math dot tu-berlin dot de" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sources.redhat.com
Subject: [Bug libc/4861] New: uninitialized data in the profiling code
Date: Sat, 28 Jul 2007 10:50:00 -0000	[thread overview]
Message-ID: <20070728105046.4861.thor@math.tu-berlin.de> (raw)

When running multithreaded code on the above architecture using valgrind, it
detects at times the following problem:

==30381== Use of uninitialised value of size 8
==30381==    at 0x564C310: profil_counter (in /lib64/libc-2.5.so)
==30381==    by 0x55B95AF: (within /lib64/libc-2.5.so)

Apparently, something's wrong here. Unfortunately, this problem is not easy to
reproduce.

A potentially related problem seems to be that semaphores and profiling do not
seem to go well together in multithreaded code. With profiling enabled, some
semaphores seem to become spuriously available?

glibc release seems to be 2.5 on a Suse 10.2 (unfortunately with a custom kernel
patched by HP), running

gcc (GCC) 4.1.2 20061115 (prerelease) (SUSE Linux)

-- 
           Summary: uninitialized data in the profiling code
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: thor at math dot tu-berlin dot de
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=4861

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


             reply	other threads:[~2007-07-28 10:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-28 10:50 thor at math dot tu-berlin dot de [this message]
2007-07-29 22:48 ` [Bug libc/4861] " drepper at redhat dot com
2007-10-02  4:28 ` drepper at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070728105046.4861.thor@math.tu-berlin.de \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).