Comment 3 for bug 647527

Revision history for this message
Richard Kapolnai (richardkapolnai) wrote :

I think bug #672352 at https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/672352 is also related to this bug.

It would be really nice to have a patch for it, it affects some of my colleagues.

Interestingly, on my box it raises a signal 6 instead of signal 11:

(gdb) run
Starting program: /tmp/a.out
a.out: ../sysdeps/unix/sysv/linux/getpagesize.c:32: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0' failed.

Program received signal SIGABRT, Aborted.
0x00110416 in __kernel_vsyscall ()
(gdb) bt
#0 0x00110416 in __kernel_vsyscall ()
#1 0x00147941 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2 0x0014ae42 in abort () at abort.c:92
#3 0x001408e8 in __assert_fail (assertion=0x259dbc "_rtld_global_ro._dl_pagesize != 0", file=0x259d90 "../sysdeps/unix/sysv/linux/getpagesize.c", line=32,
    function=0x254b88 "__getpagesize") at assert.c:81
#4 0x001e612f in __getpagesize () at ../sysdeps/unix/sysv/linux/getpagesize.c:32
#5 0x00189c85 in ptmalloc_init_minimal () at arena.c:415
#6 ptmalloc_init () at arena.c:485
#7 0x0018e1cc in malloc_hook_ini (sz=352, caller=0x17a11f) at hooks.c:37
#8 0x0018e0b0 in __libc_malloc (bytes=352) at malloc.c:3622
#9 0x0017a11f in __fopen_internal (filename=0x119e74 "/etc/hosts", mode=0x119e24 "re", is32=1) at iofopen.c:76
#10 0x0017a1ec in _IO_new_fopen (filename=0x119e74 "/etc/hosts", mode=0x119e24 "re") at iofopen.c:107
#11 0x00115830 in internal_setent (stayopen=0) at nss_files/files-XXX.c:80
#12 0x001162c0 in _nss_files_gethostbyname2_r (name=0x80bbdcd "localhost", af=2, result=0xbffff4b0, buffer=0xbffff200 "", buflen=512, errnop=0x80e0814,
    herrnop=0xbffff4c8) at nss_files/files-hosts.c:301
#13 0x0805a8b3 in gethostbyname2_r ()
#14 0x08054445 in gaih_inet ()
#15 0x08055e60 in getaddrinfo ()
#16 0x08048324 in main ()
(gdb) quit