public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/15576] New: sysconf may change returned value during the lifetime of a process.
@ 2013-06-05  2:57 aoliva at redhat dot com
  2013-06-11 16:06 ` [Bug libc/15576] " ondra at iuuk dot mff.cuni.cz
  2014-06-13 17:31 ` fweimer at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: aoliva at redhat dot com @ 2013-06-05  2:57 UTC (permalink / raw)
  To: glibc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 3903 bytes --]

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

            Bug ID: 15576
           Summary: sysconf may change returned value during the lifetime
                    of a process.
           Product: glibc
           Version: 2.18
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: aoliva at redhat dot com
                CC: drepper.fsp at gmail dot com

Posix requires “The value shall not change during the lifetime of the calling
process, except that sysconf(_SC_OPEN_MAX) may return different values before
and after a call to setrlimit() which changes the RLIMIT_NOFILE soft limit.”

In my code review, I noticed the returned value may change over time for
TZNAME_MAX, depending on selected timezones; NPROCS, NPROCS_CONF, PHYS_PAGES,
AVPHYS_PAGES, NGROUPS_MAX, SIGQUEUE_MAX, depending on variable values read from
/proc at each call, and from rlimit-obtained values CHILD_MAX, OPEN_MAX,
ARG_MAX, SIGQUEUE_MAX.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From glibc-bugs-return-18844-listarch-glibc-bugs=sources.redhat.com@sourceware.org Wed Jun 05 08:29:56 2013
Return-Path: <glibc-bugs-return-18844-listarch-glibc-bugs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-glibc-bugs@sources.redhat.com
Received: (qmail 16688 invoked by alias); 5 Jun 2013 08:29:55 -0000
Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <glibc-bugs.sourceware.org>
List-Subscribe: <mailto:glibc-bugs-subscribe@sourceware.org>
List-Post: <mailto:glibc-bugs@sourceware.org>
List-Help: <mailto:glibc-bugs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: glibc-bugs-owner@sourceware.org
Delivered-To: mailing list glibc-bugs@sourceware.org
Received: (qmail 16529 invoked by uid 48); 5 Jun 2013 08:29:18 -0000
From: "schwab@linux-m68k.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug nscd/15577] New: nscd crashes over absent values from netgroup tuple
Date: Wed, 05 Jun 2013 08:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: glibc
X-Bugzilla-Component: nscd
X-Bugzilla-Version: 2.17
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: schwab@linux-m68k.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc
Message-ID: <bug-15577-131@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-06/txt/msg00023.txt.bz2
Content-length: 846

http://sourceware.org/bugzilla/show_bug.cgi?id\x15577

            Bug ID: 15577
           Summary: nscd crashes over absent values from netgroup tuple
           Product: glibc
           Version: 2.17
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nscd
          Assignee: unassigned at sourceware dot org
          Reporter: schwab@linux-m68k.org
                CC: drepper.fsp at gmail dot com

>From <https://bugzilla.novell.com/show_bug.cgi?id9524>:

nscd crashes while processing a netgroup entry where one or more values from
the (host,user,domain) triple are absent.  Reproducable by adding this line to
/etc/netgroup:

powerusers (,miquels,) (,torvalds,) (,fubar,)

and running getent netgroup powerusers.

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


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

* [Bug libc/15576] sysconf may change returned value during the lifetime of a process.
  2013-06-05  2:57 [Bug libc/15576] New: sysconf may change returned value during the lifetime of a process aoliva at redhat dot com
@ 2013-06-11 16:06 ` ondra at iuuk dot mff.cuni.cz
  2014-06-13 17:31 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: ondra at iuuk dot mff.cuni.cz @ 2013-06-11 16:06 UTC (permalink / raw)
  To: glibc-bugs

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

OndrejBilka <ondra at iuuk dot mff.cuni.cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ondra at iuuk dot mff.cuni.cz

--- Comment #1 from OndrejBilka <ondra at iuuk dot mff.cuni.cz> ---
Could you separate which of them are specified by POSIX and which are
extension?

Manpage says that PHYS_PAGES is not standard, and does not mention
SIGQUEUE_MAX.

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


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

* [Bug libc/15576] sysconf may change returned value during the lifetime of a process.
  2013-06-05  2:57 [Bug libc/15576] New: sysconf may change returned value during the lifetime of a process aoliva at redhat dot com
  2013-06-11 16:06 ` [Bug libc/15576] " ondra at iuuk dot mff.cuni.cz
@ 2014-06-13 17:31 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 17:31 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com
              Flags|                            |security-

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


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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-05  2:57 [Bug libc/15576] New: sysconf may change returned value during the lifetime of a process aoliva at redhat dot com
2013-06-11 16:06 ` [Bug libc/15576] " ondra at iuuk dot mff.cuni.cz
2014-06-13 17:31 ` 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).