This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/25158] New: warning when using non-thread-safe functions


https://sourceware.org/bugzilla/show_bug.cgi?id=25158

            Bug ID: 25158
           Summary: warning when using non-thread-safe functions
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nptl
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at sourceware dot org
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

We're converting gdb to use threads, and while doing so we're
finding that gdb uses a variety of functions which are
not thread-safe, for example strtok.

I noticed that linking will give a warning when trying to
use some functions like mktemp, and I wondered it if would
be possible to extend this method to warn about the use of
non-thread-safe functions when -lpthread is used.  This way,
we could be sure that not only gdb but also supporting
libraries in the tree have been updated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]