[Bug 1284756] [NEW] debuild sometimes hangs on tee

Dan Kegel dank at kegel.com
Tue Feb 25 18:06:29 UTC 2014


Public bug reported:

On Ubuntu 12.04.2 in an lxc container, twice now I've caught
   debuild -b -uc -us -kfoo at bar > world.log 2>&1
in the act of hanging after printing the line 'Finished running lintian.'.
In both cases, killing the 'tee' process let the process finish.

Here's what I saw this time with ps:

buildbot  1874  0.0  0.0  35716  4764 pts/3    S+   08:57   0:00 /usr/bin/perl /usr/bin/debuild --preserve-envvar=GTEST_FILTER -b -uc -us -kbuildtools at oblong.com -j4
buildbot  1917  0.0  0.0   4312   144 pts/3    S+   08:57   0:00 tee ../mezzanine2.11_2.11-95_amd64.build

buildbot at ubu1204-test:~/src/ob-repobot$ ls -l /proc/1874/fd
total 0
lrwx------ 1 buildbot buildbot 64 Feb 25 15:17 0 -> /dev/pts/3
l-wx------ 1 buildbot buildbot 64 Feb 25 15:17 3 -> /home/buildbot/src/ob-repobot/world.log
l-wx------ 1 buildbot buildbot 64 Feb 25 15:17 4 -> /home/buildbot/src/ob-repobot/world.log

buildbot at ubu1204-test:~/src/ob-repobot$ ls -l /proc/1917/fd
total 0
lr-x------ 1 buildbot buildbot 64 Feb 25 15:17 0 -> pipe:[14619794]
l-wx------ 1 buildbot buildbot 64 Feb 25 15:17 1 -> /home/buildbot/src/ob-repobot/world.log
l-wx------ 1 buildbot buildbot 64 Feb 25 15:14 2 -> /home/buildbot/src/ob-repobot/world.log
l-wx------ 1 buildbot buildbot 64 Feb 25 15:17 3 -> /home/buildbot/src/mezzanine2.11_2.11-95_amd64.build

$ tail -n 1 /home/buildbot/src/ob-repobot/world.log
Finished running lintian.

It's a bit of a mystery.  I guess I should find out what's got the other
end of the pipe open next time?

Maybe I should add prints to /usr/bin/debuild.pl; there aren't many lines between where that message
is printed (line 1251) and where the script exits (line 1304).

** Affects: devscripts (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  debuild sometimes hangs on tee

Status in “devscripts” package in Ubuntu:
  New

Bug description:
  On Ubuntu 12.04.2 in an lxc container, twice now I've caught
     debuild -b -uc -us -kfoo at bar > world.log 2>&1
  in the act of hanging after printing the line 'Finished running lintian.'.
  In both cases, killing the 'tee' process let the process finish.

  Here's what I saw this time with ps:

  buildbot  1874  0.0  0.0  35716  4764 pts/3    S+   08:57   0:00 /usr/bin/perl /usr/bin/debuild --preserve-envvar=GTEST_FILTER -b -uc -us -kbuildtools at oblong.com -j4
  buildbot  1917  0.0  0.0   4312   144 pts/3    S+   08:57   0:00 tee ../mezzanine2.11_2.11-95_amd64.build

  buildbot at ubu1204-test:~/src/ob-repobot$ ls -l /proc/1874/fd
  total 0
  lrwx------ 1 buildbot buildbot 64 Feb 25 15:17 0 -> /dev/pts/3
  l-wx------ 1 buildbot buildbot 64 Feb 25 15:17 3 -> /home/buildbot/src/ob-repobot/world.log
  l-wx------ 1 buildbot buildbot 64 Feb 25 15:17 4 -> /home/buildbot/src/ob-repobot/world.log

  buildbot at ubu1204-test:~/src/ob-repobot$ ls -l /proc/1917/fd
  total 0
  lr-x------ 1 buildbot buildbot 64 Feb 25 15:17 0 -> pipe:[14619794]
  l-wx------ 1 buildbot buildbot 64 Feb 25 15:17 1 -> /home/buildbot/src/ob-repobot/world.log
  l-wx------ 1 buildbot buildbot 64 Feb 25 15:14 2 -> /home/buildbot/src/ob-repobot/world.log
  l-wx------ 1 buildbot buildbot 64 Feb 25 15:17 3 -> /home/buildbot/src/mezzanine2.11_2.11-95_amd64.build

  $ tail -n 1 /home/buildbot/src/ob-repobot/world.log
  Finished running lintian.

  It's a bit of a mystery.  I guess I should find out what's got the
  other end of the pipe open next time?

  Maybe I should add prints to /usr/bin/debuild.pl; there aren't many lines between where that message
  is printed (line 1251) and where the script exits (line 1304).

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



More information about the foundations-bugs mailing list