[Bug 1863590] Re: Chrony test hangs with libpcap2 1:2.31-1

Christian Ehrhardt  1863590 at bugs.launchpad.net
Tue Mar 10 06:36:17 UTC 2020


Both migrated, issue resolved.
 libcap2 | 1:2.32-1        | focal   | source, amd64, arm64, armhf, i386, ppc64el, s390x
 bubblewrap | 0.4.0-1ubuntu3   | focal           | source, amd64, arm64, armhf, i386, ppc64el, s390x


** Changed in: libcap2 (Ubuntu)
       Status: New => Fix Released

** Changed in: chrony (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to libcap2 in Ubuntu.
https://bugs.launchpad.net/bugs/1863590

Title:
  Chrony test hangs with libpcap2 1:2.31-1

Status in chrony package in Ubuntu:
  Fix Released
Status in libcap2 package in Ubuntu:
  Fix Released
Status in bubblewrap package in Debian:
  Unknown
Status in libcap2 package in Debian:
  Fix Released

Bug description:
  Tests are blocking and failing eventually with a timeout.
  Hits all architectures and is reproducible.

  Locally reproducible in autopkgtest:

  sudo ~/work/autopkgtest/autopkgtest/runner/autopkgtest --no-built-
  binaries --apt-upgrade --apt-pocket=proposed=src:libpcap2 --shell-fail
  chrony_3.5-5ubuntu1.dsc -- qemu --qemu-options='-cpu host' --ram-
  size=2048 --cpus 2 ~/work/autopkgtest-focal-amd64.img

  
  Seems to be a block on network on __skb_wait_for_more_packets

  $cat /proc/3833/wchan
  __skb_wait_for_more_packets

  From strace POV that is a wait in accept that does not unblock:

  $ sudo strace -rT -p 3833
  strace: Process 3833 attached
       0.000000 accept(6, NULL, NULL
  <hangs>

  The logs are no help:
  /tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-stderr => empty
  /tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-stdout => matches the console

  $ cat /tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-stdout
  make: Entering directory '/tmp/autopkgtest.epy1pq/autopkgtest_tmp'
  cc -O2 -Wall -g -fPIC   -c -o client.o client.c
  cc -O2 -Wall -g -fPIC -shared -o clknetsim.so client.o  -ldl -lm
  g++ -O2 -Wall -g -fPIC   -c -o clock.o clock.cc
  g++ -O2 -Wall -g -fPIC   -c -o node.o node.cc
  g++ -O2 -Wall -g -fPIC   -c -o generator.o generator.cc
  g++ -O2 -Wall -g -fPIC   -c -o network.o network.cc
  g++ -O2 -Wall -g -fPIC   -c -o server.o server.cc
  g++ -O2 -Wall -g -fPIC   -c -o stats.o stats.cc
  g++ -O2 -Wall -g -fPIC -o clknetsim clock.o node.o generator.o network.o server.o stats.o
  make: Leaving directory '/tmp/autopkgtest.epy1pq/autopkgtest_tmp'
  001-defaults
  <hang>

  Noisy PS output:

  4     0     506       1  20   0   2600  1920 -      Ss   ttyS1      0:00 /bin/sh
  1     0    3690     506  20   0   2600   128 -      S+   ttyS1      0:00  \_ /bin/sh
  4     0    3691    3690  20   0   8172  3660 -      S+   ttyS1      0:00      \_ su -s /bin/bash ubuntu -c set -e; export USER=`id -nu`; . /etc/profile >/dev/null 2>&1 || true;  . ~/.profile
   >/dev/null 2>&1 || true; buildtree="/tmp/autopkgtest.epy1pq/build.KhE/src"; mkdir -p -m 1777 -- "/tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-artifacts"; export AUTOPKGTEST_ARTIFA
  CTS="/tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-artifacts"; export ADT_ARTIFACTS="$AUTOPKGTEST_ARTIFACTS"; mkdir -p -m 755 "/tmp/autopkgtest.epy1pq/autopkgtest_tmp"; export AUTOP
  KGTEST_TMP="/tmp/autopkgtest.epy1pq/autopkgtest_tmp"; export ADTTMP="$AUTOPKGTEST_TMP"; export DEBIAN_FRONTEND=noninteractive; export LANG=C.UTF-8; export DEB_BUILD_OPTIONS=parallel=2; unset
   LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE   LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS   LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION LC_ALL;rm -f /tmp/autopkgtest_script_pi
  d; set -C; echo $$ > /tmp/autopkgtest_script_pid; set +C; trap "rm -f /tmp/autopkgtest_script_pid" EXIT INT QUIT PIPE; cd "$buildtree"; chmod +x /tmp/autopkgtest.epy1pq/build.KhE/src/debian/
  tests/upstream-simulation-test-suite; touch /tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-stdout /tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-stderr; /tmp/autopkgtest.epy1
  pq/build.KhE/src/debian/tests/upstream-simulation-test-suite 2> >(tee -a /tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-stderr >&2) > >(tee -a /tmp/autopkgtest.epy1pq/upstream-simula
  tion-test-suite-stdout);
  4  1000    3720    3691  20   0   8608  3852 do_wai Ss   ?          0:00          \_ bash -c set -e; export USER=`id -nu`; . /etc/profile >/dev/null 2>&1 || true;  . ~/.profile >/dev/null 2>
  &1 || true; buildtree="/tmp/autopkgtest.epy1pq/build.KhE/src"; mkdir -p -m 1777 -- "/tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-artifacts"; export AUTOPKGTEST_ARTIFACTS="/tmp/auto
  pkgtest.epy1pq/upstream-simulation-test-suite-artifacts"; export ADT_ARTIFACTS="$AUTOPKGTEST_ARTIFACTS"; mkdir -p -m 755 "/tmp/autopkgtest.epy1pq/autopkgtest_tmp"; export AUTOPKGTEST_TMP="/t
  mp/autopkgtest.epy1pq/autopkgtest_tmp"; export ADTTMP="$AUTOPKGTEST_TMP"; export DEBIAN_FRONTEND=noninteractive; export LANG=C.UTF-8; export DEB_BUILD_OPTIONS=parallel=2; unset LANGUAGE LC_C
  TYPE LC_NUMERIC LC_TIME LC_COLLATE   LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS   LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION LC_ALL;rm -f /tmp/autopkgtest_script_pid; set -C; ech
  o $$ > /tmp/autopkgtest_script_pid; set +C; trap "rm -f /tmp/autopkgtest_script_pid" EXIT INT QUIT PIPE; cd "$buildtree"; chmod +x /tmp/autopkgtest.epy1pq/build.KhE/src/debian/tests/upstream
  -simulation-test-suite; touch /tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-stdout /tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-stderr; /tmp/autopkgtest.epy1pq/build.KhE/s
  rc/debian/tests/upstream-simulation-test-suite 2> >(tee -a /tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-stderr >&2) > >(tee -a /tmp/autopkgtest.epy1pq/upstream-simulation-test-suit
  e-stdout);
  0  1000    3728    3720  20   0   2600   732 do_wai S    ?          0:00              \_ /bin/sh /tmp/autopkgtest.epy1pq/build.KhE/src/debian/tests/upstream-simulation-test-suite
  1  1000    3729    3728  20   0   8608  1896 do_wai S    ?          0:00                  \_ bash -c set -e; export USER=`id -nu`; . /etc/profile >/dev/null 2>&1 || true;  . ~/.profile >/dev
  /null 2>&1 || true; buildtree="/tmp/autopkgtest.epy1pq/build.KhE/src"; mkdir -p -m 1777 -- "/tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-artifacts"; export AUTOPKGTEST_ARTIFACTS="/
  tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-artifacts"; export ADT_ARTIFACTS="$AUTOPKGTEST_ARTIFACTS"; mkdir -p -m 755 "/tmp/autopkgtest.epy1pq/autopkgtest_tmp"; export AUTOPKGTEST
  _TMP="/tmp/autopkgtest.epy1pq/autopkgtest_tmp"; export ADTTMP="$AUTOPKGTEST_TMP"; export DEBIAN_FRONTEND=noninteractive; export LANG=C.UTF-8; export DEB_BUILD_OPTIONS=parallel=2; unset LANGU
  AGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE   LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS   LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION LC_ALL;rm -f /tmp/autopkgtest_script_pid; set
   -C; echo $$ > /tmp/autopkgtest_script_pid; set +C; trap "rm -f /tmp/autopkgtest_script_pid" EXIT INT QUIT PIPE; cd "$buildtree"; chmod +x /tmp/autopkgtest.epy1pq/build.KhE/src/debian/tests/
  upstream-simulation-test-suite; touch /tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-stdout /tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-stderr; /tmp/autopkgtest.epy1pq/bui
  ld.KhE/src/debian/tests/upstream-simulation-test-suite 2> >(tee -a /tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-stderr >&2) > >(tee -a /tmp/autopkgtest.epy1pq/upstream-simulation-t
  est-suite-stdout);
  0  1000    3730    3729  20   0   7228   848 pipe_w S    ?          0:00                  |   \_ tee -a /tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-stderr
  1  1000    3731    3728  20   0   8608  1756 do_wai S    ?          0:00                  \_ bash -c set -e; export USER=`id -nu`; . /etc/profile >/dev/null 2>&1 || true;  . ~/.profile >/dev
  /null 2>&1 || true; buildtree="/tmp/autopkgtest.epy1pq/build.KhE/src"; mkdir -p -m 1777 -- "/tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-artifacts"; export AUTOPKGTEST_ARTIFACTS="/
  tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-artifacts"; export ADT_ARTIFACTS="$AUTOPKGTEST_ARTIFACTS"; mkdir -p -m 755 "/tmp/autopkgtest.epy1pq/autopkgtest_tmp"; export AUTOPKGTEST
  _TMP="/tmp/autopkgtest.epy1pq/autopkgtest_tmp"; export ADTTMP="$AUTOPKGTEST_TMP"; export DEBIAN_FRONTEND=noninteractive; export LANG=C.UTF-8; export DEB_BUILD_OPTIONS=parallel=2; unset LANGU
  AGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE   LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS   LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION LC_ALL;rm -f /tmp/autopkgtest_script_pid; set
   -C; echo $$ > /tmp/autopkgtest_script_pid; set +C; trap "rm -f /tmp/autopkgtest_script_pid" EXIT INT QUIT PIPE; cd "$buildtree"; chmod +x /tmp/autopkgtest.epy1pq/build.KhE/src/debian/tests/
  upstream-simulation-test-suite; touch /tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-stdout /tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-stderr; /tmp/autopkgtest.epy1pq/bui
  ld.KhE/src/debian/tests/upstream-simulation-test-suite 2> >(tee -a /tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-stderr >&2) > >(tee -a /tmp/autopkgtest.epy1pq/upstream-simulation-t
  est-suite-stdout);
  0  1000    3732    3731  20   0   7228   780 pipe_w S    ?          0:00                  |   \_ tee -a /tmp/autopkgtest.epy1pq/upstream-simulation-test-suite-stdout
  0  1000    3794    3728  20   0   8608  3300 do_wai S    ?          0:00                  \_ /bin/bash ./run -i 20 -m 2
  0  1000    3798    3794  20   0   9136  3992 do_wai S    ?          0:00                      \_ /bin/bash ./001-defaults
  0  1000    3833    3798  20   0   5928  1864 skb_wa S    ?          0:00                          \_ /tmp/autopkgtest.epy1pq/autopkgtest_tmp/clknetsim -o tmp/log.offset -f tmp/log.freq -p tmp/log.packets -R 1 -r 210 -l 10000 -s tmp/sock tmp/conf 2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chrony/+bug/1863590/+subscriptions



More information about the foundations-bugs mailing list