Comment 5 for bug 1732030

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

I hit this today in a Bionic container trying to use "apt-get download".
Found this bug and based on this trying to provide the debug data that was requested back then.

So I gathered the crash file with JulianK's hint and then used Tamas workaround to get all apport tools as needed.

# apport-retrace --rebuild-package-info --stdout /var/crash/_usr_lib_apt_methods_http.0.crash
dpkg-source: info: extracting apt in apt-1.6~alpha5
dpkg-source: info: unpacking apt_1.6~alpha5.tar.xz
W: Download is performed unsandboxed as root as file 'apt_1.6~alpha5.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
--- stack trace ---
#0 0x00007faff80f04eb in __getdents (fd=3, buf=0x561fff2a96d0 "\035g\233", <incomplete sequence \305>, nbytes=32768) at ../sysdeps/unix/sysv/linux/getdents.c:96
        resultvar = 78
        retval = <optimized out>
#1 0x00007faff80f00b5 in __readdir (dirp=0x561fff2a96a0) at ../sysdeps/posix/readdir.c:65
        maxread = <optimized out>
        bytes = <optimized out>
        reclen = <optimized out>
        dp = <optimized out>
        saved_errno = 0
#2 0x00007faff55e826e in ?? () from /lib/x86_64-linux-gnu/libnss_libvirt.so.2
No symbol table info available.
#3 0x00007faff55cebdf in ?? () from /lib/x86_64-linux-gnu/libnss_libvirt.so.2
No symbol table info available.
#4 0x00007faff55cf657 in _nss_libvirt_gethostbyname4_r () from /lib/x86_64-linux-gnu/libnss_libvirt.so.2
No symbol table info available.
#5 0x00007faff81155df in gaih_inet (name=name@entry=0x561fff26cba0 "archive.ubuntu.com", service=<optimized out>, req=req@entry=0x7fffa2434860, pai=pai@entry=0x7fffa2434328, naddrs=naddrs@entry=0x7fffa2434324, tmpbuf=tmpbuf@entry=0x7fffa2434390) at ../sysdeps/posix/getaddrinfo.c:790
        fct4 = 0x7faff55cf5f0 <_nss_libvirt_gethostbyname4_r>
        pat = 0x7fffa2434118
        no_inet6_data = <optimized out>
        nip = 0x561fff2a93d0
        status = <optimized out>
        no_more = 0
        no_data = 0
        inet6_status = NSS_STATUS_UNAVAIL
        res_ctx = 0x561fff295a00
        res_enable_inet6 = false
        tp = <optimized out>
        st = 0x7fffa2434040
        at = 0x7fffa2434000
        got_ipv6 = false
        canon = 0x0
        orig_name = 0x561fff26cba0 "archive.ubuntu.com"
        alloca_used = <optimized out>
        port = <optimized out>
        malloc_name = false
        addrmem = 0x0
        canonbuf = 0x0
        result = 0
#6 0x00007faff81175c7 in __GI_getaddrinfo (name=<optimized out>, service=<optimized out>, hints=0x7fffa2434860, pai=0x561ffdb8b370) at ../sysdeps/posix/getaddrinfo.c:2304
        tmpbuf = {data = 0x7fffa24343a0, length = 1024, __space = "\377\002", '\000' <repeats 13 times>, "\003\240CC\242\377\177\000\000\000\000\000\000\000\000\000\000ff02::3\000ip6-allhosts", '\000' <repeats 28 times>, "able hosts\n\000\257\177\000\000\030\000\000\000\000\000\000\000\000<\360\251\300\071s\362\230|?\370\257\177\000\000\000\000\000\000\000\000\000\000\260\346(\377\037V\000\000\000\350(\377\037V\000\000\220m)\377\037V\000\000ps)\377\037V\000\000\000\000\000\000\000\000\000\000\376\263\n\370\257\177\000\000\240b+\377\037V\000\000\006\000\000\000\000\000\000\000\272\375\033\370\257\177\000\000"...}
        i = 0
        last_i = 0
        nresults = 0
        p = 0x0
        gaih_service = {name = 0x7fffa2434aa0 "http", num = -1}
        pservice = <optimized out>
        local_hints = {ai_flags = 1, ai_family = 0, ai_socktype = 0, ai_protocol = 0, ai_addrlen = 4280870576, ai_addr = 0x561fff28e800, ai_canonname = 0x561fff296d90 "@m)\377\037V", ai_next = 0x561fff297370}
        in6ai = 0x561fff28e8f8
        in6ailen = 6
        seen_ipv4 = true
        seen_ipv6 = true
        check_pf_called = true
        end = 0x7fffa2434328
        naddrs = 0
        __PRETTY_FUNCTION__ = "getaddrinfo"
#7 0x0000561ffd98218e in ?? ()
No symbol table info available.
#8 0x0000561ffd98359d in ?? ()
No symbol table info available.
#9 0x0000561ffd974652 in ?? ()
No symbol table info available.
#10 0x0000561ffd97c0c8 in ?? ()
No symbol table info available.
#11 0x0000561ffd96b73b in ?? ()
No symbol table info available.
#12 0x00007faff803d1c1 in __libc_start_main (main=0x561ffd96b690, argc=1, argv=0x7fffa2435948, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffa2435938) at ../csu/libc-start.c:308
        result = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, -9070595946702466195, 94695398488480, 140735915710784, 0, 0, -3324084521362287763, -3351014314436619411}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x7fffa2435958, 0x7faff953f150}, data = {prev = 0x0, cleanup = 0x0, canceltype = -1572644520}}}
        not_first_call = <optimized out>
#13 0x0000561ffd96b9ca in ?? ()
No symbol table info available.
--- source code stack trace ---
#0 0x00007faff80f04eb in __getdents (fd=3, buf=0x561fff2a96d0 "\035g\233", <incomplete sequence \305>, nbytes=32768) at ../sysdeps/unix/sysv/linux/getdents.c:96
  [Error: getdents.c was not found in source tree]
#1 0x00007faff80f00b5 in __readdir (dirp=0x561fff2a96a0) at ../sysdeps/posix/readdir.c:65
  [Error: readdir.c was not found in source tree]
#2 0x00007faff55e826e in ?? () from /lib/x86_64-linux-gnu/libnss_libvirt.so.2
#3 0x00007faff55cebdf in ?? () from /lib/x86_64-linux-gnu/libnss_libvirt.so.2
#4 0x00007faff55cf657 in _nss_libvirt_gethostbyname4_r () from /lib/x86_64-linux-gnu/libnss_libvirt.so.2
#5 0x00007faff81155df in gaih_inet (name=name@entry=0x561fff26cba0 "archive.ubuntu.com", service=<optimized out>, req=req@entry=0x7fffa2434860, pai=pai@entry=0x7fffa2434328, naddrs=naddrs@entry=0x7fffa2434324, tmpbuf=tmpbuf@entry=0x7fffa2434390) at ../sysdeps/posix/getaddrinfo.c:790
  [Error: getaddrinfo.c was not found in source tree]
#6 0x00007faff81175c7 in __GI_getaddrinfo (name=<optimized out>, service=<optimized out>, hints=0x7fffa2434860, pai=0x561ffdb8b370) at ../sysdeps/posix/getaddrinfo.c:2304
  [Error: getaddrinfo.c was not found in source tree]
#7 0x0000561ffd98218e in ?? ()
#8 0x0000561ffd98359d in ?? ()
#9 0x0000561ffd974652 in ?? ()
#10 0x0000561ffd97c0c8 in ?? ()
#11 0x0000561ffd96b73b in ?? ()
#12 0x00007faff803d1c1 in __libc_start_main (main=0x561ffd96b690, argc=1, argv=0x7fffa2435948, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffa2435938) at ../csu/libc-start.c:308
  [Error: libc-start.c was not found in source tree]
#13 0x0000561ffd96b9ca in ?? ()