Comment 26 for bug 1101779

Revision history for this message
In , Petr (petr-redhat-bugs) wrote :

It segfaults on F16. The nfs.englab.brq.redhat.com has one IPv4 and one IPv6 address:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fc5bc718700 (LWP 13939)]
0x00007fc5bb276d29 in __memcmp_sse4_1 () from /lib64/libc.so.6
(gdb) bt full
#0 0x00007fc5bb276d29 in __memcmp_sse4_1 () from /lib64/libc.so.6
No symbol table info available.
#1 0x00007fc5b9eb1fde in get_proximity (host_addr=<optimized out>)
    at replicated.c:177
        msk6_addr = <optimized out>
        addr_len = 16
        ifa = 0x7fc5ac003500
        addr = <optimized out>
        msk_addr = <optimized out>
        if_addr = <optimized out>
        if6_addr = <optimized out>
        mask6 = 0x0
        addr6 = <optimized out>
        hst_addr = 0x0
        hst6_addr = 0x7fc5ac000c68
        ha = 0
        buf = "\000\000\377\377\n\"\030\232", '\000' <repeats 40 times>, "P1q\274\305\177\000\000\002\000\000\000\000\000\000\000\060\f\000\254\305\177\000\000 \000\000\254\305\177\000\000`\v\000\254\305\177\000\000\000\000\000\000\000\000\000\000\005\000\000\000\000\000\000\000\310\065q\274\305\177\000\000\002\000\000\000\305\177\000\000\265\034\032\273\305\177\000"
        mask = <optimized out>
        ia6 = 0x0
---Type <return> to continue, or q <return> to quit---
        ret = <optimized out>
        this = 0x7fc5ac003728
        ha6 = 0x7fc5ac000c68
        ia = <optimized out>
#2 add_new_host (list=0x7fc5bc7135c8,
    host=0x7fc5ac000b20 "nfs.englab.brq.redhat.com", weight=0,
    host_addr=0x7fc5ac000c30, rr=0, options=0) at replicated.c:1003
        prx = <optimized out>
#3 0x00007fc5b9eb24d6 in add_host_addrs (list=0x7fc5bc7135c8,
    host=0x7fc5ac000b20 "nfs.englab.brq.redhat.com", weight=0, options=0)
    at replicated.c:1121
        hints = {ai_flags = 32, ai_family = 0, ai_socktype = 2,
          ai_protocol = 0, ai_addrlen = 0, ai_addr = 0x0, ai_canonname = 0x0,
          ai_next = 0x0}
        ni = 0x7fc5ac000c30
        this = 0x7fc5ac000c30
        n_ptr = 0x7fc5ac000a40 "nfs.englab.brq.redhat.com"
        name = 0x7fc500000000 <Address 0x7fc500000000 out of bounds>
        len = <optimized out>
        buf = "\000\000:", '\000' <repeats 124 times>
        rr = <optimized out>
        rr4 = <optimized out>
        rr6 = <optimized out>
        ret = <optimized out>
        __FUNCTION__ = "add_host_addrs"
#4 0x00007fc5b9eb2d3e in parse_location (logopt=<optimized out>,
    hosts=0x7fc5bc7135c8, list=<optimized out>, options=0) at replicated.c:1271
        path = 0x7fc5ac000b3a "/exports/scratch"
        next = 0x7fc5ac000b4a ""
        weight = <optimized out>
        str = 0x7fc5ac000b20 "nfs.englab.brq.redhat.com"
        p = <optimized out>
        delim = 0x7fc5ac000b39 ""
        empty = <optimized out>
#5 0x00007fc5b9eb072c in mount_mount (ap=0x7fc5bd27bff0,
    root=0x7fc5bd27c0d0 "/mnt/redhat", name=0x7fc5bc7146f0 "scratch",
    name_len=7,
    what=0x7fc5bc7146b0 "nfs.englab.brq.redhat.com:/exports/scratch",
    fstype=<optimized out>, options=0x7fc5bc714710 "rw,soft,intr", context=0x0)
    at mount_nfs.c:148
        fullpath = '\000' <repeats 2192 times>"\340, Dq\274\305\177\000\000\320Dq\274\305\177\000\000\bFq\274\305\177\000\000x@\r\272\305\177\000\000\a\000\000\000\000\000\000\000_u\026\273\305\177\000\000\000\000\000\000\000\000\000\000|@\r\272\305\177\000\000\000\000\000\000\000\000\000\000|@\r\272\305\177", '\000' <repeats 82 times>, " ", '\000' <repeats 67 times>, "\001", '\000' <repeats 11 times>, "\a", '\000' <repeats 15 times>"\377, \377\377\377\377\377\377\377", '\000---Type <return> to continue, or q <return> to quit---

Whole stack trace:
(gdb) bt
#0 0x00007fc5bb276d29 in __memcmp_sse4_1 () from /lib64/libc.so.6
#1 0x00007fc5b9eb1fde in get_proximity (host_addr=<optimized out>)
    at replicated.c:177
#2 add_new_host (list=0x7fc5bc7135c8,
    host=0x7fc5ac000b20 "nfs.englab.brq.redhat.com", weight=0,
    host_addr=0x7fc5ac000c30, rr=0, options=0) at replicated.c:1003
#3 0x00007fc5b9eb24d6 in add_host_addrs (list=0x7fc5bc7135c8,
    host=0x7fc5ac000b20 "nfs.englab.brq.redhat.com", weight=0, options=0)
    at replicated.c:1121
#4 0x00007fc5b9eb2d3e in parse_location (logopt=<optimized out>,
    hosts=0x7fc5bc7135c8, list=<optimized out>, options=0) at replicated.c:1271
#5 0x00007fc5b9eb072c in mount_mount (ap=0x7fc5bd27bff0,
    root=0x7fc5bd27c0d0 "/mnt/redhat", name=0x7fc5bc7146f0 "scratch",
    name_len=7,
    what=0x7fc5bc7146b0 "nfs.englab.brq.redhat.com:/exports/scratch",
    fstype=<optimized out>, options=0x7fc5bc714710 "rw,soft,intr", context=0x0)
    at mount_nfs.c:148
#6 0x00007fc5ba0c098d in sun_mount (ap=0x7fc5bd27bff0,
    root=0x7fc5bd27c0d0 "/mnt/redhat", name=0x7fc5bc715a40 "scratch",
    namelen=7,
    loc=0x7fc5ac000ae0 "nfs.englab.brq.redhat.com:/exports/scratch",
    loclen=42, options=0x7fc5bc714710 "rw,soft,intr", ctxt=0x7fc5b4001700)
    at parse_sun.c:699
---Type <return> to continue, or q <return> to quit---
#7 0x00007fc5ba0c38e2 in parse_mount (ap=0x7fc5bd27bff0,
    name=0x7fc5bc715a40 "scratch", name_len=7,
    mapent=0x7fc5bc714a40 "-rw,soft,intr nfs.englab.brq.redhat.com:/exports/scratch", context=<optimized out>) at parse_sun.c:1813
#8 0x00007fc5ba2e5a63 in lookup_mount (ap=0x7fc5bd27bff0,
    name=<optimized out>, name_len=<optimized out>, context=0x7fc5b4001070)
    at lookup_file.c:1074
#9 0x00007fc5bc763205 in lookup_name_file_source_instance (ap=0x7fc5bd27bff0,
    map=0x7fc5bd27c0f0, name=0x7fc5bc715e90 "scratch", name_len=7)
    at lookup.c:718
#10 0x00007fc5bc763a0e in lookup_nss_mount (ap=0x7fc5bd27bff0, source=0x0,
    name=0x7fc5bc715e90 "scratch", name_len=7) at lookup.c:909
#11 0x00007fc5bc75ad7b in do_mount_indirect (arg=0x7fc5b4002e70)
    at indirect.c:777
#12 0x00007fc5bc315d90 in start_thread () from /lib64/libpthread.so.0
#13 0x00007fc5bb21067d in clone () from /lib64/libc.so.6

My glibc is glibc-2.14.90-24.fc16.8.x86_64.