public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "vapier at gentoo dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sources.redhat.com
Subject: [Bug libc/11929] New: glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0'
Date: Thu, 19 Aug 2010 22:41:00 -0000	[thread overview]
Message-ID: <20100819224104.11929.vapier@gentoo.org> (raw)

as first reported here:
    http://thread.gmane.org/gmane.comp.lib.glibc.user/579

building programs statically that require shared nss libraries at runtime will
often crash with the assert '_rtld_global_ro._dl_pagesize != 0'

this is because after a recent change to __getpagesize(), GLRO(dl_pagesize) is
required to be set.  but that is only done at app init, and shared libraries
dlopened at runtime by static apps dont have their GLRO() state initialized from
the linux auxvec.

ia64/mips have long had similar behavior with their __getpagesize(), but they
have a DL_STATIC_INIT hook to sync some of the static GLRO() fields to the
dynamic GLRO() fields.  now that common linux code requires GLRO(dl_pagesize) to
be set, common linux code now needs that DL_STATIC_INIT hook.

attached patch takes the ia64 logic and promotes it to common code.

-- 
           Summary: glibc-2.12: static binaries: __getpagesize: Assertion
                    `_rtld_global_ro._dl_pagesize != 0'
           Product: glibc
           Version: 2.12
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: vapier at gentoo dot org
                CC: glibc-bugs at sources dot redhat dot com
  GCC host triplet: x86_64-linux-gnu


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

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


             reply	other threads:[~2010-08-19 22:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-19 22:41 vapier at gentoo dot org [this message]
2010-08-19 22:42 ` [Bug libc/11929] " vapier at gentoo dot org
2010-08-19 22:53 ` vapier at gentoo dot org
2010-08-20  8:12 ` allan at archlinux dot org

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=20100819224104.11929.vapier@gentoo.org \
    --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).