[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#881875: apt: newline in Suites field in deb822 sources format causes apt to hang



Package: apt
Version: 1.6~alpha4
Severity: normal

When I include a newline in the Suites field in the deb822 sources
format, `apt update` hangs at the end of the download phase:

pabs@chianamo ~ $ chdist create test
Now edit /home/pabs/.chdist/test/etc/apt/sources.list
Run chdist apt test update
And enjoy.
pabs@chianamo ~ $ cat > /home/pabs/.chdist/test/etc/apt/sources.list.d/02-debian.sources
Types: deb
URIs: http://deb.debian.org/debian/
Suites: oldoldstable oldoldstable-updates
Components: main
pabs@chianamo ~ $ chdist apt test update
Ign:1 http://deb.debian.org/debian oldoldstable InRelease
Get:2 http://deb.debian.org/debian oldoldstable-updates InRelease [157 kB]
Get:3 http://deb.debian.org/debian oldoldstable Release [191 kB]
Get:4 http://deb.debian.org/debian oldoldstable-updates/main amd64 Packages [7,047 B]
Get:5 http://deb.debian.org/debian oldoldstable-updates/main Translation-en [4,879 B]
Get:6 http://deb.debian.org/debian oldoldstable Release.gpg [2,373 B]
Get:7 http://deb.debian.org/debian oldoldstable/main amd64 Packages [5,839 kB]
Get:8 http://deb.debian.org/debian oldoldstable/main Translation-en [3,846 kB]
Fetched 10.0 MB in 24s (417 kB/s)
Reading package lists... Done
Building dependency tree... Done
All packages are up to date.
pabs@chianamo ~ $ cat > /home/pabs/.chdist/test/etc/apt/sources.list.d/02-debian.sources
Types: deb
URIs: http://deb.debian.org/debian/
Suites: oldoldstable
 oldoldstable-updates
Components: main
pabs@chianamo ~ $ chdist apt test update
Hit:1 http://deb.debian.org/debian oldoldstable-updates InRelease
0% [Working]
<nothing happens from here on>

I then ran this in another terminal:

pabs@chianamo ~ $ ps auxf | grep -A2 'apt update'
pabs     10269  0.1  0.0  38912  6788 pts/11   S+   08:30   0:00  |   \_ apt update
pabs     10271  0.0  0.0  70432  7952 pts/11   S+   08:30   0:00  |       \_ /usr/lib/apt/methods/http
pabs     10273  0.0  0.0  37968  5032 pts/11   S+   08:30   0:00  |       \_ /usr/lib/apt/methods/gpgv
pabs@chianamo ~ $ gdb -p 10269
GNU gdb (Debian 7.12-6+b1) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 10269
Reading symbols from /usr/bin/apt...Reading symbols from /usr/lib/debug/.build-id/22/4ec78ae4cd4c8a99783a071d527c662740a84f.debug...done.
done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0...Reading symbols from /usr/lib/debug/.build-id/8f/0c31ee72f77d3762eebed3789e8bb542342189.debug...done.
done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0...Reading symbols from /usr/lib/debug/.build-id/6a/32c1c74f730b839f3e575412fa308ab39e298c.debug...done.
done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libstdc++.so.6...(no debugging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libgcc_s.so.1...Reading symbols from /usr/lib/debug/.build-id/ed/e0ff960b77b0feaba13c43deef111f9c986be6.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libc.so.6...Reading symbols from /usr/lib/debug/.build-id/ad/f51e0aeadeab97be8477c04b75c4be44c3fc03.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libresolv.so.2...Reading symbols from /usr/lib/debug/.build-id/9a/1d328a27744f241fc56bf97d7fe4d13dd18030.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libpthread.so.0...Reading symbols from /usr/lib/debug/.build-id/d6/ba5b469347b58440a02f811ed1b97e1114bc54.debug...done.
done.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Reading symbols from /lib/x86_64-linux-gnu/libz.so.1...Reading symbols from /usr/lib/debug/.build-id/90/8b5a955d0a73fb8d31e0f927d0cdba810cb300.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libbz2.so.1.0...(no debugging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/liblzma.so.5...Reading symbols from /usr/lib/debug/.build-id/35/cb083cb954dd492478db6c7f9c998dd5053ae5.debug...done.
done.
Reading symbols from /usr/lib/x86_64-linux-gnu/liblz4.so.1...Reading symbols from /usr/lib/debug//usr/lib/x86_64-linux-gnu/liblz4.so.1.7.1...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libudev.so.1...Reading symbols from /usr/lib/debug/.build-id/fe/ea49f207fbd46ef0a73f8c6b8ee44a5550612d.debug...done.
done.
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/.build-id/93/c123cbc9d19f47fb995008fb2c55f0689fea8c.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libm.so.6...Reading symbols from /usr/lib/debug/.build-id/e9/769e5d86c2f2a0652b38041f0e48334d95b570.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libdl.so.2...Reading symbols from /usr/lib/debug/.build-id/f8/30cffc69d2fb86097c4776d397bf58cab2b8fb.debug...done.
done.
0x00007fde2d864393 in __select_nocancel () at ../sysdeps/unix/syscall-template.S:84
84	../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) bt
#0  0x00007fde2d864393 in __select_nocancel () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fde2e134595 in pkgAcquire::Run (this=this@entry=0x7ffdeb2a1380, PulseIntervall=500000) at ./apt-pkg/acquire.cc:682
#2  0x00007fde2e21ba88 in AcquireUpdate (Fetcher=..., PulseInterval=PulseInterval@entry=0, RunUpdateScripts=RunUpdateScripts@entry=true, ListCleanup=ListCleanup@entry=true)
    at ./apt-pkg/update.cc:57
#3  0x00007fde2e21c2a5 in ListUpdate (Stat=..., List=..., PulseInterval=PulseInterval@entry=0) at ./apt-pkg/update.cc:37
#4  0x00007fde2e4b45b4 in DoUpdate (CmdL=...) at ./apt-private/private-update.cc:72
#5  0x00007fde2e15fcf6 in CommandLine::DispatchArg (this=0x7ffdeb2a1950, Map=<optimized out>, NoMatch=NoMatch@entry=true) at ./apt-pkg/contrib/cmndline.cc:369
#6  0x00007fde2e484990 in DispatchCommandLine (CmdL=..., Cmds=...) at ./apt-private/private-cmndline.cc:558
#7  0x0000565069d2d793 in main (argc=2, argv=0x7ffdeb2a1aa8) at ./cmdline/apt.cc:116
(gdb) thread apply all bt full

Thread 1 (Thread 0x7fde2e89e780 (LWP 10269)):
#0  0x00007fde2d864393 in __select_nocancel () at ../sysdeps/unix/syscall-template.S:84
No locals.
#1  0x00007fde2e134595 in pkgAcquire::Run (this=this@entry=0x7ffdeb2a1380, PulseIntervall=500000) at ./apt-pkg/acquire.cc:682
        RFds = {fds_bits = {96, 0 <repeats 15 times>}}
        WFds = {fds_bits = {0 <repeats 16 times>}}
        Highest = 6
        Res = <optimized out>
        WasCancelled = false
        tv = {tv_sec = 0, tv_usec = 454419}
#2  0x00007fde2e21ba88 in AcquireUpdate (Fetcher=..., PulseInterval=PulseInterval@entry=0, RunUpdateScripts=RunUpdateScripts@entry=true, ListCleanup=ListCleanup@entry=true)
    at ./apt-pkg/update.cc:57
        res = <optimized out>
        errorsWereReported = <optimized out>
        Failed = <optimized out>
        TransientNetworkFailure = <optimized out>
        AllFailed = <optimized out>
        Res = <optimized out>
#3  0x00007fde2e21c2a5 in ListUpdate (Stat=..., List=..., PulseInterval=PulseInterval@entry=0) at ./apt-pkg/update.cc:37
        Fetcher = {_vptr.pkgAcquire = 0x7fde2e460550 <vtable for pkgAcquire+16>, LockFD = 4, d = 0x0, Items = std::vector of length 6, capacity 8 = {0x56506b982110, 0x56506b982630, 
            0x56506b92e080, 0x56506b92e600, 0x56506b95bd40, 0x56506b95c760}, Queues = 0x56506b92f8f0, Workers = 0x56506b99f9b0, Configs = 0x56506b9304c0, Log = 0x7ffdeb2a1530, 
          ToFetch = 1, QueueMode = pkgAcquire::QueueHost, Debug = false, Running = true}
#4  0x00007fde2e4b45b4 in DoUpdate (CmdL=...) at ./apt-private/private-update.cc:72
        Stat = {<pkgAcquireStatus2> = {<pkgAcquireStatus> = {_vptr.pkgAcquireStatus = 0x7fde2e6c2690 <vtable for AcqTextStatus+16>, d = 0x0, Time = {tv_sec = 1510792392, 
                tv_usec = 685187}, StartTime = {tv_sec = 1510792212, tv_usec = 10180}, LastBytes = 0, CurrentCPS = 0, CurrentBytes = 0, TotalBytes = 1, FetchedBytes = 0, 
              ElapsedTime = 6, TotalItems = 6, CurrentItems = 5, Percent = 0, Update = false, MorePulses = false}, <No data fields>}, out = @0x565069f2f040, 
          ScreenWidth = @0x7fde2e6c4010, LastLineLength = 12, ID = 2, Quiet = 0}
        Cache = {<pkgCacheFile> = {_vptr.pkgCacheFile = 0x7fde2e6c2b90 <vtable for CacheFile+16>, d = 0x0, ExternOwner = false, Map = 0x0, Cache = 0x0, DCache = 0x0, 
            SrcList = 0x56506b92c110, Policy = 0x0}, UniverseList = std::vector of length 0, capacity 0}
        List = 0x56506b92c110
#5  0x00007fde2e15fcf6 in CommandLine::DispatchArg (this=0x7ffdeb2a1950, Map=<optimized out>, NoMatch=NoMatch@entry=true) at ./apt-pkg/contrib/cmndline.cc:369
        Res = <optimized out>
        I = <optimized out>
#6  0x00007fde2e484990 in DispatchCommandLine (CmdL=..., Cmds=...) at ./apt-private/private-cmndline.cc:558
No locals.
#7  0x0000565069d2d793 in main (argc=2, argv=0x7ffdeb2a1aa8) at ./cmdline/apt.cc:116
        CmdL = {ArgList = 0x56506b92c240, Conf = 0x56506b91dc20, FileList = 0x56506b92bab0}
        Cmds = std::vector of length 27, capacity 32 = {{Match = 0x7fde2e4b735a "help", Handler = 0x7fde2e483f00 <<lambda(CommandLine&)>::_FUN(CommandLine &)>}, {
            Match = 0x565069d2e244 "list", Handler = 0x7fde2e495610 <DoList(CommandLine&)>}, {Match = 0x565069d2e249 "search", Handler = 0x7fde2e4a5330 <DoSearch(CommandLine&)>}, {
            Match = 0x565069d2e250 "show", Handler = 0x7fde2e4a7640 <ShowPackage(CommandLine&)>}, {Match = 0x565069d2e26a "install", Handler = 0x7fde2e4930a0
     <DoInstall(CommandLine&)>}, {Match = 0x565069d2e2a3 "remove", Handler = 0x7fde2e4930a0 <DoInstall(CommandLine&)>}, {Match = 0x565069d2e293 "autoremove", 
            Handler = 0x7fde2e4930a0 <DoInstall(CommandLine&)>}, {Match = 0x565069d2e29e "auto-remove", Handler = 0x7fde2e4930a0 <DoInstall(CommandLine&)>}, {
            Match = 0x565069d2e2aa "purge", Handler = 0x7fde2e4930a0 <DoInstall(CommandLine&)>}, {Match = 0x565069d2e2b0 "update", Handler = 0x7fde2e4b40c0 <DoUpdate(CommandLine&)>}, {
            Match = 0x565069d2e2bc "upgrade", Handler = 0x7fde2e4b5890 <DoUpgrade(CommandLine&)>}, {Match = 0x565069d2e2b7 "full-upgrade", 
            Handler = 0x7fde2e4b5860 <DoDistUpgrade(CommandLine&)>}, {Match = 0x565069d2e2c4 "edit-sources", Handler = 0x7fde2e4b2ab0 <EditSources(CommandLine&)>}, {
            Match = 0x565069d2e2d1 "moo", Handler = 0x7fde2e498980 <DoMoo(CommandLine&)>}, {Match = 0x565069d2e2d5 "dist-upgrade", 
            Handler = 0x7fde2e4b5860 <DoDistUpgrade(CommandLine&)>}, {Match = 0x565069d2e2e2 "showsrc", Handler = 0x7fde2e4a9020 <ShowSrcPackage(CommandLine&)>}, {
            Match = 0x565069d2e2eb "depends", Handler = 0x7fde2e4889c0 <Depends(CommandLine&)>}, {Match = 0x565069d2e2ea "rdepends", 
            Handler = 0x7fde2e4889d0 <RDepends(CommandLine&)>}, {Match = 0x565069d2e2f3 "policy", Handler = 0x7fde2e4a7da0 <Policy(CommandLine&)>}, {
            Match = 0x565069d2e2fa "build-dep", Handler = 0x7fde2e4aeba0 <DoBuildDep(CommandLine&)>}, {Match = 0x565069d2e313 "clean", 
            Handler = 0x7fde2e48b4c0 <DoClean(CommandLine&)>}, {Match = 0x565069d2e304 "autoclean", Handler = 0x7fde2e48bb90 <DoAutoClean(CommandLine&)>}, {
            Match = 0x565069d2e30e "auto-clean", Handler = 0x7fde2e48bb90 <DoAutoClean(CommandLine&)>}, {Match = 0x565069d2e319 "source", 
            Handler = 0x7fde2e4abd50 <DoSource(CommandLine&)>}, {Match = 0x565069d2e320 "download", Handler = 0x7fde2e489af0 <DoDownload(CommandLine&)>}, {
            Match = 0x565069d2e329 "changelog", Handler = 0x7fde2e48ac90 <DoChangelog(CommandLine&)>}, {Match = 0x0, Handler = 0x0}}
        quiet = <optimized out>
(gdb) quit
A debugging session is active.

	Inferior 1 [process 10269] will be detached.

Quit anyway? (y or n) y
Detaching from program: /usr/bin/apt, process 10269
pabs@chianamo ~ $ gdb -p 10271
GNU gdb (Debian 7.12-6+b1) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 10271
Reading symbols from /usr/lib/apt/methods/http...Reading symbols from /usr/lib/debug/.build-id/5e/a04cbf558a08a8b8f2b3f66dc5c981e401a697.debug...done.
done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0...Reading symbols from /usr/lib/debug/.build-id/6a/32c1c74f730b839f3e575412fa308ab39e298c.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libseccomp.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libgnutls.so.30...Reading symbols from /usr/lib/debug/.build-id/b3/61195a814512109af4595fb2e012f47ae05553.debug...done.
done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libstdc++.so.6...(no debugging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libgcc_s.so.1...Reading symbols from /usr/lib/debug/.build-id/ed/e0ff960b77b0feaba13c43deef111f9c986be6.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libc.so.6...Reading symbols from /usr/lib/debug/.build-id/ad/f51e0aeadeab97be8477c04b75c4be44c3fc03.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libresolv.so.2...Reading symbols from /usr/lib/debug/.build-id/9a/1d328a27744f241fc56bf97d7fe4d13dd18030.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libpthread.so.0...Reading symbols from /usr/lib/debug/.build-id/d6/ba5b469347b58440a02f811ed1b97e1114bc54.debug...done.
done.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Reading symbols from /lib/x86_64-linux-gnu/libz.so.1...Reading symbols from /usr/lib/debug/.build-id/90/8b5a955d0a73fb8d31e0f927d0cdba810cb300.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libbz2.so.1.0...(no debugging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/liblzma.so.5...Reading symbols from /usr/lib/debug/.build-id/35/cb083cb954dd492478db6c7f9c998dd5053ae5.debug...done.
done.
Reading symbols from /usr/lib/x86_64-linux-gnu/liblz4.so.1...Reading symbols from /usr/lib/debug//usr/lib/x86_64-linux-gnu/liblz4.so.1.7.1...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libudev.so.1...Reading symbols from /usr/lib/debug/.build-id/fe/ea49f207fbd46ef0a73f8c6b8ee44a5550612d.debug...done.
done.
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/.build-id/93/c123cbc9d19f47fb995008fb2c55f0689fea8c.debug...done.
done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libp11-kit.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libidn2.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libunistring.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libtasn1.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libnettle.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libhogweed.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libgmp.so.10...(no debugging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libm.so.6...Reading symbols from /usr/lib/debug/.build-id/e9/769e5d86c2f2a0652b38041f0e48334d95b570.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libdl.so.2...Reading symbols from /usr/lib/debug/.build-id/f8/30cffc69d2fb86097c4776d397bf58cab2b8fb.debug...done.
done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libffi.so.6...Reading symbols from /usr/lib/debug/.build-id/aa/1401f42d517693444b96c5774a62d4e8c84a35.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libnss_files.so.2...Reading symbols from /usr/lib/debug/.build-id/c9/5adae54f836ed226b24aa84a5c71b2c00f45be.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libnss_myhostname.so.2...Reading symbols from /usr/lib/debug/.build-id/25/32f550c27f5f279899eae509b64da3e4760df2.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2...(no debugging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libnss_dns.so.2...Reading symbols from /usr/lib/debug/.build-id/46/0efe0abbbcacbd76729c4e7954fca9ed5a9399.debug...done.
done.
0x00007f1e0fa61393 in __select_nocancel () at ../sysdeps/unix/syscall-template.S:84
84	../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) bt
#0  0x00007f1e0fa61393 in __select_nocancel () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f1e109161db in WaitFd (Fd=Fd@entry=0, write=write@entry=false, timeout=timeout@entry=0) at ./apt-pkg/contrib/fileutl.cc:789
#2  0x00005634c094588f in BaseHttpMethod::Loop (this=<optimized out>) at ./methods/basehttp.cc:554
#3  0x00005634c0934efb in main (argv=<optimized out>) at ./methods/http_main.cc:16
(gdb) thread apply all bt full

Thread 1 (Thread 0x7f1e10ded600 (LWP 10271)):
#0  0x00007f1e0fa61393 in __select_nocancel () at ../sysdeps/unix/syscall-template.S:84
No locals.
#1  0x00007f1e109161db in WaitFd (Fd=Fd@entry=0, write=write@entry=false, timeout=timeout@entry=0) at ./apt-pkg/contrib/fileutl.cc:789
        Res = <optimized out>
        Set = {fds_bits = {1, 0 <repeats 15 times>}}
        tv = {tv_sec = 0, tv_usec = 0}
#2  0x00005634c094588f in BaseHttpMethod::Loop (this=<optimized out>) at ./methods/basehttp.cc:554
        Result = <optimized out>
        Req = {Major = 1, Minor = 1, Result = 304, 
          Code = " Not Modified\000ntly\000\000\220\221\321\341\376\177", '\000' <repeats 26 times>, "\260\221\321\341\376\177", '\000' <repeats 11 times>, '@' <repeats 15 times>, "Б\321\341\376\177\000\000\016\000\000\000\000\000\000\000deb.debian.org\000 \220A\325\301\064V\000\000,\000\000\000\000\000\000\000,\000\000\000\000\000\000\000p\346\324\301\064V\000\000\000\000\000\000\376\177\000\000\360\350\324\301\064V\000\000`\353\324\301\064V\000\000\360\355\324\301\064V", '\000' <repeats 18 times>, "\240&+\020\036"..., TotalFileSize = 0, 
          DownloadSize = 0, JunkSize = 0, StartPos = 0, MaximumSize = 0, Date = 1510792212, HaveContent = false, Encoding = RequestState::Closes, State = RequestState::Header, 
          Location = "", File = {_vptr.FileFd = 0x7f1e10c0e060 <vtable for FileFd+16>, iFd = -1, Flags = 1, FileName = "", TemporaryFileName = "", d = 0x0}, Owner = 0x7ffee1d19410, 
          Server = 0x5634c1d55e30}
        Res = <incomplete type>
        FailCounter = 0
#3  0x00005634c0934efb in main (argv=<optimized out>) at ./methods/http_main.cc:16
        Binary = "http"
(gdb) quit
A debugging session is active.

	Inferior 1 [process 10271] will be detached.

Quit anyway? (y or n) y
Detaching from program: /usr/lib/apt/methods/http, process 10271
pabs@chianamo ~ $ gdb -p 10273
GNU gdb (Debian 7.12-6+b1) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 10273
Reading symbols from /usr/lib/apt/methods/gpgv...Reading symbols from /usr/lib/debug/.build-id/31/61208aa32904294e34fbf6bbcf50dd8636fb6f.debug...done.
done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0...Reading symbols from /usr/lib/debug/.build-id/6a/32c1c74f730b839f3e575412fa308ab39e298c.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libseccomp.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/lib/x86_64-linux-gnu/libstdc++.so.6...(no debugging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/libgcc_s.so.1...Reading symbols from /usr/lib/debug/.build-id/ed/e0ff960b77b0feaba13c43deef111f9c986be6.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libc.so.6...Reading symbols from /usr/lib/debug/.build-id/ad/f51e0aeadeab97be8477c04b75c4be44c3fc03.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libresolv.so.2...Reading symbols from /usr/lib/debug/.build-id/9a/1d328a27744f241fc56bf97d7fe4d13dd18030.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libpthread.so.0...Reading symbols from /usr/lib/debug/.build-id/d6/ba5b469347b58440a02f811ed1b97e1114bc54.debug...done.
done.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Reading symbols from /lib/x86_64-linux-gnu/libz.so.1...Reading symbols from /usr/lib/debug/.build-id/90/8b5a955d0a73fb8d31e0f927d0cdba810cb300.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libbz2.so.1.0...(no debugging symbols found)...done.
Reading symbols from /lib/x86_64-linux-gnu/liblzma.so.5...Reading symbols from /usr/lib/debug/.build-id/35/cb083cb954dd492478db6c7f9c998dd5053ae5.debug...done.
done.
Reading symbols from /usr/lib/x86_64-linux-gnu/liblz4.so.1...Reading symbols from /usr/lib/debug//usr/lib/x86_64-linux-gnu/liblz4.so.1.7.1...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libudev.so.1...Reading symbols from /usr/lib/debug/.build-id/fe/ea49f207fbd46ef0a73f8c6b8ee44a5550612d.debug...done.
done.
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/.build-id/93/c123cbc9d19f47fb995008fb2c55f0689fea8c.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libm.so.6...Reading symbols from /usr/lib/debug/.build-id/e9/769e5d86c2f2a0652b38041f0e48334d95b570.debug...done.
done.
Reading symbols from /lib/x86_64-linux-gnu/libdl.so.2...Reading symbols from /usr/lib/debug/.build-id/f8/30cffc69d2fb86097c4776d397bf58cab2b8fb.debug...done.
done.
0x00007fb5f4e4a393 in __select_nocancel () at ../sysdeps/unix/syscall-template.S:84
84	../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) bt
#0  0x00007fb5f4e4a393 in __select_nocancel () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fb5f59941db in WaitFd (Fd=Fd@entry=0, write=write@entry=false, timeout=timeout@entry=0) at ./apt-pkg/contrib/fileutl.cc:789
#2  0x00007fb5f595089b in pkgAcqMethod::Run (this=0x7ffc3eff4de0, Single=false) at ./apt-pkg/acquire-method.cc:341
#3  0x000055c73c72762b in main () at ./methods/gpgv.cc:451
(gdb) thread apply all bt full

Thread 1 (Thread 0x7fb5f5e6b780 (LWP 10273)):
#0  0x00007fb5f4e4a393 in __select_nocancel () at ../sysdeps/unix/syscall-template.S:84
No locals.
#1  0x00007fb5f59941db in WaitFd (Fd=Fd@entry=0, write=write@entry=false, timeout=timeout@entry=0) at ./apt-pkg/contrib/fileutl.cc:789
        Res = <optimized out>
        Set = {fds_bits = {1, 0 <repeats 15 times>}}
        tv = {tv_sec = 0, tv_usec = 0}
#2  0x00007fb5f595089b in pkgAcqMethod::Run (this=0x7ffc3eff4de0, Single=false) at ./apt-pkg/acquire-method.cc:341
        Message = "\020@n=\307U\000\000X\v\020\365\265\177\000\000", 'b' <repeats 184 times>...
        End = 0x55c73d6e38e3 "=\307U"
        Number = <optimized out>
#3  0x000055c73c72762b in main () at ./methods/gpgv.cc:451
No locals.
(gdb) quit
A debugging session is active.

	Inferior 1 [process 10273] will be detached.

Quit anyway? (y or n) y
Detaching from program: /usr/lib/apt/methods/gpgv, process 10273

-- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (800, 'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.13.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8), LANGUAGE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages apt depends on:
ii  adduser                 3.116
ii  debian-archive-keyring  2017.6
ii  gpgv                    2.2.2-1
ii  libapt-pkg5.0           1.6~alpha4
ii  libc6                   2.24-17
ii  libgcc1                 1:7.2.0-14
ii  libgnutls30             3.5.16-1
ii  libseccomp2             2.3.1-2.1
ii  libstdc++6              7.2.0-14

Versions of packages apt recommends:
ii  ca-certificates  20170717

Versions of packages apt suggests:
pn  apt-doc         <none>
ii  aptitude        0.8.9-1
ii  dpkg-dev        1.19.0.4
ii  gnupg           2.2.2-1
ii  gnupg1          1.4.22-3
ii  gnupg2          2.2.2-1
ii  powermgmt-base  1.31+nmu1
ii  python-apt      1.4.0~beta3+b1

-- no debconf information

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: