This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: vi and glibc 2.12: Assertion `_rtld_global_ro._dl_pagesize != 0
- From: Arkadiusz Miskiewicz <arekm at maven dot pl>
- To: libc-help at sourceware dot org
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 21 May 2010 20:42:00 +0200
- Subject: Re: vi and glibc 2.12: Assertion `_rtld_global_ro._dl_pagesize != 0
- References: <201005132108.47735.arekm@maven.pl>
On Thursday 13 of May 2010, Arkadiusz Miskiewicz wrote:
> With glibc 2.12 vi (from vim 7.2.422) started dying here with:
>
> 188679 write(2, "vi: ../sysdeps/unix/sysv/linux/getpagesize.c:32:
> __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0' failed.\n",
> 118) = 118
>
> Vim: Caught deadly signal ABRT
>
> Has anyone seen this?
Simple reproducer for:
[arekm@carme-pld ~]$ ./a.out
a.out: ../sysdeps/unix/sysv/linux/getpagesize.c:32: __getpagesize: Assertion
`_rtld_global_ro._dl_pagesize != 0' failed.
[arekm@carme-pld ~]$ cat a.c
#include <sys/types.h>
#include <pwd.h>
int main() {
getpwnam("root");
return 0;
}
[arekm@carme-pld ~]$ gcc a.c -static
/home/users/arekm/tmp/ccedPM2o.o: In function `main':
a.c:(.text+0xa): warning: Using 'getpwnam' in statically linked applications
requires at runtime the shared libraries from the glibc version used for
linking
[arekm@carme-pld ~]$ ./a.out
a.out: ../sysdeps/unix/sysv/linux/getpagesize.c:32: __getpagesize: Assertion
`_rtld_global_ro._dl_pagesize != 0' failed.
zsh: abort ./a.out
[arekm@carme-pld ~]$ gcc --version
gcc (PLD-Linux) 4.5.0 20100520 (release)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[arekm@carme-pld ~]$ /lib64/libc.so.6
GNU C Library stable release version 2.12, by Roland McGrath et al.
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.5.0 20100416 (release).
Compiled on a Linux 2.6.33 system on 2010-05-05.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
--
Arkadiusz MiÅkiewicz PLD/Linux Team
arekm / maven.pl http://ftp.pld-linux.org/