public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/11929] glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0'
       [not found] <bug-11929-131@http.sourceware.org/bugzilla/>
@ 2010-10-25 16:10 ` allan at archlinux dot org
  2010-11-11 14:57 ` lool at dooz dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: allan at archlinux dot org @ 2010-10-25 16:10 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #2 from Allan McRae <allan at archlinux dot org> 2010-10-25 16:10:11 UTC ---
This patch causes some issues when static linking.  e.g.:

#include <iconv.h>
#include <stdio.h>
#include <errno.h>
int main () {
  iconv_t x;
  x = iconv_open ("UTF-8", "UTF-32LE");
  printf ("%d\n", errno == EINVAL);
  return 0;
}

The iconv_open fails when compiled with -static.  Using the workaround in
sysdeps/unix/sysv/linux/getpagesize.c from Fedora git "fixes" the issue:

-#ifdef __ASSUME_AT_PAGESIZE
+#if 0 && defined __ASSUME_AT_PAGESIZE

-- 
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] 13+ messages in thread

* [Bug libc/11929] glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0'
       [not found] <bug-11929-131@http.sourceware.org/bugzilla/>
  2010-10-25 16:10 ` [Bug libc/11929] glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0' allan at archlinux dot org
@ 2010-11-11 14:57 ` lool at dooz dot org
  2010-11-11 15:23 ` allan at archlinux dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: lool at dooz dot org @ 2010-11-11 14:57 UTC (permalink / raw)
  To: glibc-bugs

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

Loïc Minier <lool at dooz dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lool at dooz dot org

--- Comment #3 from Loïc Minier <lool at dooz dot org> 2010-11-11 14:57:00 UTC ---
Allan, is the iconv issue a new one?  Your testcase fails for me even when
Mike's patch isn't applied; I get an assertion failure
"_rtld_global_ro._dl_pagesize != 0".

What failure do you get?  Could you break in __getpagesize() and see what
pagesize you get in the first (static libc.a copy) and second (lib.so) hits?

-- 
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] 13+ messages in thread

* [Bug libc/11929] glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0'
       [not found] <bug-11929-131@http.sourceware.org/bugzilla/>
  2010-10-25 16:10 ` [Bug libc/11929] glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0' allan at archlinux dot org
  2010-11-11 14:57 ` lool at dooz dot org
@ 2010-11-11 15:23 ` allan at archlinux dot org
  2010-11-11 15:33 ` lool at dooz dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: allan at archlinux dot org @ 2010-11-11 15:23 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #4 from Allan McRae <allan at archlinux dot org> 2010-11-11 15:22:46 UTC ---
Yes...  it is not surprising that you run into the initial bug when not
applying the patch!

The point I was making is that Fedora's hack fix fixes both the "_dl_pagesize"
issue and the "iconv" one that I pointed out.  That leads me to suspect that
some part of the initialisation of static apps is still incomplete after the
application of the proposed patch.  And given that changing on #ifdef fixes
both, these issues were probably introduced at the same time.

-- 
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] 13+ messages in thread

* [Bug libc/11929] glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0'
       [not found] <bug-11929-131@http.sourceware.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2010-11-11 15:23 ` allan at archlinux dot org
@ 2010-11-11 15:33 ` lool at dooz dot org
  2010-11-12  0:13 ` allan at archlinux dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: lool at dooz dot org @ 2010-11-11 15:33 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #5 from Loïc Minier <lool at dooz dot org> 2010-11-11 15:32:45 UTC ---
Sorry, wasn't clear: I did not know whether you iconv issue was there before
the patch, and when reading your first comment, I thought it was a rebuttal for
Mike's patch, but I wanted to confirm that Mike's patch was an immediate net
win (moving arch-specific code to common code and fixing at least one class of
issues), even if it doesn't fix all instances of this class of bugs.

Hope this makes more sense now  :)

I understand that the Fedora change is just meant to be a workaround rather
than a fix?  There might be other random issues if the vdso isn't setup
properly in the static+dynamic case, so it would be best to init libc properly
in this case rather than fix just the getpagesize() issue?

-- 
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] 13+ messages in thread

* [Bug libc/11929] glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0'
       [not found] <bug-11929-131@http.sourceware.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2010-11-11 15:33 ` lool at dooz dot org
@ 2010-11-12  0:13 ` allan at archlinux dot org
  2010-11-12  1:56 ` me at matthewblair dot net
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: allan at archlinux dot org @ 2010-11-12  0:13 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #6 from Allan McRae <allan at archlinux dot org> 2010-11-12 00:13:28 UTC ---
Yes, the patch is an improvement but it either:
1) is incomplete
2) introduces a new big (with iconv test case)

I am leaning towards #1, but have not had time to investigate further.

-- 
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] 13+ messages in thread

* [Bug libc/11929] glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0'
       [not found] <bug-11929-131@http.sourceware.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2010-11-12  0:13 ` allan at archlinux dot org
@ 2010-11-12  1:56 ` me at matthewblair dot net
  2010-11-22 18:58 ` vapier at gentoo dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: me at matthewblair dot net @ 2010-11-12  1:56 UTC (permalink / raw)
  To: glibc-bugs

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

Matt Blair <me at matthewblair dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |me at matthewblair dot net

-- 
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] 13+ messages in thread

* [Bug libc/11929] glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0'
       [not found] <bug-11929-131@http.sourceware.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2010-11-12  1:56 ` me at matthewblair dot net
@ 2010-11-22 18:58 ` vapier at gentoo dot org
  2011-12-27  5:50 ` allan at archlinux dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: vapier at gentoo dot org @ 2010-11-22 18:58 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #7 from Mike Frysinger <vapier at gentoo dot org> 2010-11-22 18:57:59 UTC ---
the iconv code calls the gconv code which attempts to dynamically load shared
objects from /usr/lib64/gconv/.  i havent dug past that so far, but it seems to
boil down to the same issue -- dlopening shared objects from static objects is
broken.

-- 
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] 13+ messages in thread

* [Bug libc/11929] glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0'
       [not found] <bug-11929-131@http.sourceware.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2010-11-22 18:58 ` vapier at gentoo dot org
@ 2011-12-27  5:50 ` allan at archlinux dot org
  2012-01-09  1:41 ` drepper.fsp at gmail dot com
  2014-06-30  8:15 ` fweimer at redhat dot com
  9 siblings, 0 replies; 13+ messages in thread
From: allan at archlinux dot org @ 2011-12-27  5:50 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #8 from Allan McRae <allan at archlinux dot org> 2011-12-27 05:49:57 UTC ---
>From some quick testing, it appears this bug is fixed in glibc-2.15.  Possibly
by commit 02d46fc4.

-- 
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] 13+ messages in thread

* [Bug libc/11929] glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0'
       [not found] <bug-11929-131@http.sourceware.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2011-12-27  5:50 ` allan at archlinux dot org
@ 2012-01-09  1:41 ` drepper.fsp at gmail dot com
  2014-06-30  8:15 ` fweimer at redhat dot com
  9 siblings, 0 replies; 13+ messages in thread
From: drepper.fsp at gmail dot com @ 2012-01-09  1:41 UTC (permalink / raw)
  To: glibc-bugs

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

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

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

--- Comment #9 from Ulrich Drepper <drepper.fsp at gmail dot com> 2012-01-09 01:40:26 UTC ---
I went ahead and marked the change as the fix.

-- 
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] 13+ messages in thread

* [Bug libc/11929] glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0'
       [not found] <bug-11929-131@http.sourceware.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2012-01-09  1:41 ` drepper.fsp at gmail dot com
@ 2014-06-30  8:15 ` fweimer at redhat dot com
  9 siblings, 0 replies; 13+ messages in thread
From: fweimer at redhat dot com @ 2014-06-30  8:15 UTC (permalink / raw)
  To: glibc-bugs

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

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] 13+ 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: " 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; 13+ 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] 13+ 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: " 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; 13+ 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] 13+ 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: " 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; 13+ 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] 13+ messages in thread

end of thread, other threads:[~2014-06-30  8:15 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-11929-131@http.sourceware.org/bugzilla/>
2010-10-25 16:10 ` [Bug libc/11929] glibc-2.12: static binaries: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0' allan at archlinux dot org
2010-11-11 14:57 ` lool at dooz dot org
2010-11-11 15:23 ` allan at archlinux dot org
2010-11-11 15:33 ` lool at dooz dot org
2010-11-12  0:13 ` allan at archlinux dot org
2010-11-12  1:56 ` me at matthewblair dot net
2010-11-22 18:58 ` vapier at gentoo dot org
2011-12-27  5:50 ` allan at archlinux dot org
2012-01-09  1:41 ` drepper.fsp at gmail dot com
2014-06-30  8:15 ` fweimer at redhat dot com
2010-08-19 22:41 [Bug libc/11929] New: " 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).