public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/18921] New: Regression: extraneous stat() and fstat() performed by opendir()
@ 2015-09-03 22:54 P at draigBrady dot com
  2015-09-03 23:15 ` [Bug libc/18921] " roland at gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: P at draigBrady dot com @ 2015-09-03 22:54 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 18921
           Summary: Regression: extraneous stat() and fstat() performed by
                    opendir()
           Product: glibc
           Version: 2.22
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: roland at gnu dot org
          Reporter: P at draigBrady dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

As diagnosed by Bernhard Voelker,
since glibc-2.22 ... and specifically this commit:
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=glibc-2.21-360-g46f894d
opendir(".") has been changed from a simple openat() to this sequence of
stat()+open() as the following diff of `strace ls` outputs indicates:

   stat(".", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
  -openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
  +stat(".", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
  +open(".", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
  +fstat(3, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0

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


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

* [Bug libc/18921] Regression: extraneous stat() and fstat() performed by opendir()
  2015-09-03 22:54 [Bug libc/18921] New: Regression: extraneous stat() and fstat() performed by opendir() P at draigBrady dot com
@ 2015-09-03 23:15 ` roland at gnu dot org
  2015-09-08 21:02 ` roland at gnu dot org
  2015-10-29 17:06 ` jsm28 at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: roland at gnu dot org @ 2015-09-03 23:15 UTC (permalink / raw)
  To: glibc-bugs

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

Roland McGrath <roland at gnu dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #1 from Roland McGrath <roland at gnu dot org> ---
Fix pending review.

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


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

* [Bug libc/18921] Regression: extraneous stat() and fstat() performed by opendir()
  2015-09-03 22:54 [Bug libc/18921] New: Regression: extraneous stat() and fstat() performed by opendir() P at draigBrady dot com
  2015-09-03 23:15 ` [Bug libc/18921] " roland at gnu dot org
@ 2015-09-08 21:02 ` roland at gnu dot org
  2015-10-29 17:06 ` jsm28 at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: roland at gnu dot org @ 2015-09-08 21:02 UTC (permalink / raw)
  To: glibc-bugs

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

Roland McGrath <roland at gnu dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Roland McGrath <roland at gnu dot org> ---
Fixed on trunk and 2.22 branch.

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


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

* [Bug libc/18921] Regression: extraneous stat() and fstat() performed by opendir()
  2015-09-03 22:54 [Bug libc/18921] New: Regression: extraneous stat() and fstat() performed by opendir() P at draigBrady dot com
  2015-09-03 23:15 ` [Bug libc/18921] " roland at gnu dot org
  2015-09-08 21:02 ` roland at gnu dot org
@ 2015-10-29 17:06 ` jsm28 at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-10-29 17:06 UTC (permalink / raw)
  To: glibc-bugs

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

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |2.23

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


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

end of thread, other threads:[~2015-10-29 17:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-03 22:54 [Bug libc/18921] New: Regression: extraneous stat() and fstat() performed by opendir() P at draigBrady dot com
2015-09-03 23:15 ` [Bug libc/18921] " roland at gnu dot org
2015-09-08 21:02 ` roland at gnu dot org
2015-10-29 17:06 ` jsm28 at gcc dot gnu.org

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).