public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/11929] New: glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0'
@ 2010-08-19 22:41 vapier at gentoo dot org
  2010-08-19 22:42 ` [Bug libc/11929] " vapier at gentoo dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: vapier at gentoo dot org @ 2010-08-19 22:41 UTC (permalink / raw)
  To: glibc-bugs

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.


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

* [Bug libc/11929] glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0'
  2010-08-19 22:41 [Bug libc/11929] New: glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0' vapier at gentoo dot org
@ 2010-08-19 22:42 ` 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
  2 siblings, 0 replies; 4+ messages in thread
From: vapier at gentoo dot org @ 2010-08-19 22:42 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From vapier at gentoo dot org  2010-08-19 22:41 -------
Created an attachment (id=4941)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4941&action=view)
glibc-2.12-static-glro-init.patch


-- 


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.


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

* [Bug libc/11929] glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0'
  2010-08-19 22:41 [Bug libc/11929] New: glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0' vapier at gentoo dot org
  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
  2 siblings, 0 replies; 4+ messages in thread
From: vapier at gentoo dot org @ 2010-08-19 22:53 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |toolchain at gentoo dot org


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.


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

* [Bug libc/11929] glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0'
  2010-08-19 22:41 [Bug libc/11929] New: glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0' vapier at gentoo dot org
  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
  2 siblings, 0 replies; 4+ messages in thread
From: allan at archlinux dot org @ 2010-08-20  8:12 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |allan at archlinux dot org


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.


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

end of thread, other threads:[~2010-08-20  8:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-19 22:41 [Bug libc/11929] New: glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0' vapier at gentoo dot org
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

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