public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/12713] New: coreutils-8.12 "make check" thinks glibc-2.13's "getcwd()" is "buggy"
@ 2011-04-28 18:08 jason.vas.dias at gmail dot com
  2011-04-28 19:00 ` [Bug libc/12713] " eblake at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jason.vas.dias at gmail dot com @ 2011-04-28 18:08 UTC (permalink / raw)
  To: glibc-bugs

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

           Summary: coreutils-8.12 "make check" thinks glibc-2.13's
                    "getcwd()" is "buggy"
           Product: glibc
           Version: 2.13
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: jason.vas.dias@gmail.com


The latest "stable coreutils release", 8.12, SKIPS a test it normally runs
as part of its 
$ make check
...
./misc/pwd-unreadable-parent: skipping test: can't use buggy system getcwd
SKIP: misc/pwd-unreadable-parent
....

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug libc/12713] coreutils-8.12 "make check" thinks glibc-2.13's "getcwd()" is "buggy"
  2011-04-28 18:08 [Bug libc/12713] New: coreutils-8.12 "make check" thinks glibc-2.13's "getcwd()" is "buggy" jason.vas.dias at gmail dot com
@ 2011-04-28 19:00 ` eblake at redhat dot com
  2011-04-28 19:01 ` eblake at redhat dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: eblake at redhat dot com @ 2011-04-28 19:00 UTC (permalink / raw)
  To: glibc-bugs

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

Eric Blake <eblake at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eblake at redhat dot com

--- Comment #1 from Eric Blake <eblake at redhat dot com> 2011-04-28 19:00:18 UTC ---
Glibc should consider borrowing code from gnulib's getcwd() implementation,
which is able to successfully determine working directories for several cases
where the getcwd(2) syscall fails and where glibc currently doesn't try any
harder:

http://git.savannah.gnu.org/cgit/gnulib.git/tree/lib/getcwd.c

At one point, that code was forked from glibc, but gnulib's version has added
additional improvements such as the use of openat() to get an answer in O(n)
rather than O(n^2) time.

Here's a sample program from gnulib that demonstrates a case of glibc giving up
too easily:

http://git.savannah.gnu.org/cgit/gnulib.git/tree/tests/test-getcwd.c

You can demonstrate the glibc bug with that program (including building a
needed <config.h> required by its #includes) by checking out gnulib.git, and
running:

./gnulib-tool --with-tests --create-testdir --dir=path/to/dir getcwd
cd path/to/dir
./configure gl_cv_func_getcwd_path_max=yes
make check

Omit the gl_cv_func_getcwd_path_max assignment during ./configure to let gnulib
detect the limitation and use its fallback wrapper around glibc's getcwd.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug libc/12713] coreutils-8.12 "make check" thinks glibc-2.13's "getcwd()" is "buggy"
  2011-04-28 18:08 [Bug libc/12713] New: coreutils-8.12 "make check" thinks glibc-2.13's "getcwd()" is "buggy" jason.vas.dias at gmail dot com
  2011-04-28 19:00 ` [Bug libc/12713] " eblake at redhat dot com
@ 2011-04-28 19:01 ` eblake at redhat dot com
  2011-04-30 14:10 ` ppluzhnikov at google dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: eblake at redhat dot com @ 2011-04-28 19:01 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #2 from Eric Blake <eblake at redhat dot com> 2011-04-28 19:01:08 UTC ---
Additionally, if the Linux kernel would ever properly support
open(dir,O_SEARCH), then gnulib's getcwd() wrapper would work in even more
cases.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug libc/12713] coreutils-8.12 "make check" thinks glibc-2.13's "getcwd()" is "buggy"
  2011-04-28 18:08 [Bug libc/12713] New: coreutils-8.12 "make check" thinks glibc-2.13's "getcwd()" is "buggy" jason.vas.dias at gmail dot com
  2011-04-28 19:00 ` [Bug libc/12713] " eblake at redhat dot com
  2011-04-28 19:01 ` eblake at redhat dot com
@ 2011-04-30 14:10 ` ppluzhnikov at google dot com
  2011-05-08 18:54 ` drepper.fsp at gmail dot com
  2014-06-27 13:29 ` fweimer at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: ppluzhnikov at google dot com @ 2011-04-30 14:10 UTC (permalink / raw)
  To: glibc-bugs

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

Paul Pluzhnikov <ppluzhnikov at google dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppluzhnikov at google dot
                   |                            |com

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug libc/12713] coreutils-8.12 "make check" thinks glibc-2.13's "getcwd()" is "buggy"
  2011-04-28 18:08 [Bug libc/12713] New: coreutils-8.12 "make check" thinks glibc-2.13's "getcwd()" is "buggy" jason.vas.dias at gmail dot com
                   ` (2 preceding siblings ...)
  2011-04-30 14:10 ` ppluzhnikov at google dot com
@ 2011-05-08 18:54 ` drepper.fsp at gmail dot com
  2014-06-27 13:29 ` fweimer at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: drepper.fsp at gmail dot com @ 2011-05-08 18:54 UTC (permalink / raw)
  To: glibc-bugs

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

Ulrich Drepper <drepper.fsp at gmail dot com> changed:

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

--- Comment #3 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-05-08 18:54:10 UTC ---
I've updated git.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug libc/12713] coreutils-8.12 "make check" thinks glibc-2.13's "getcwd()" is "buggy"
  2011-04-28 18:08 [Bug libc/12713] New: coreutils-8.12 "make check" thinks glibc-2.13's "getcwd()" is "buggy" jason.vas.dias at gmail dot com
                   ` (3 preceding siblings ...)
  2011-05-08 18:54 ` drepper.fsp at gmail dot com
@ 2014-06-27 13:29 ` fweimer at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 13:29 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

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


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

end of thread, other threads:[~2014-06-27 13:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-28 18:08 [Bug libc/12713] New: coreutils-8.12 "make check" thinks glibc-2.13's "getcwd()" is "buggy" jason.vas.dias at gmail dot com
2011-04-28 19:00 ` [Bug libc/12713] " eblake at redhat dot com
2011-04-28 19:01 ` eblake at redhat dot com
2011-04-30 14:10 ` ppluzhnikov at google dot com
2011-05-08 18:54 ` drepper.fsp at gmail dot com
2014-06-27 13:29 ` fweimer 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).