[Bug 674704] Re: "restart udev" hangs

David Baehrens david.baehrens at physiologie.uni-freiburg.de
Fri Mar 22 10:50:10 UTC 2013


I confirm this issue on Ubuntu Server 12.04.2 LTS with udev version
175-0ubuntu9.3

Here, apt-get dist-upgrade hangs in udev start of update post-install
phase with the same strace as in the description.

Reading through the Turnkey Linux forum thread referenced in comment #1,
I was able to resolve the deadlock by "service udev stop" in another
terminal, while the update still hangs in udev start. This hangs too,
but now the update continues and succeeds. Last, I had to terminate the
stop command  by hitting  Ctrl-C

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

Title:
  "restart udev" hangs

Status in “udev” package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: udev

  On two headless servers "restart udev" just hangs.  When the udev
  package gets updated the only way to get aptitude to complete the
  upgrade is to kill the 'restart udev' process from the outside.

  The last thing 'strace restart udev' shows is:
  ocket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC, 0) = 3
  connect(3, {sa_family=AF_FILE, path=@"/com/ubuntu/upstart"}, 22) = 0
  fcntl(3, F_GETFL)                       = 0x2 (flags O_RDWR)
  fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
  geteuid()                               = 0
  getsockname(3, {sa_family=AF_FILE, NULL}, [2]) = 0
  poll([{fd=3, events=POLLOUT}], 1, 0)    = 1 ([{fd=3, revents=POLLOUT}])
  write(3, "\0", 1)                       = 1
  sendto(3, "AUTH EXTERNAL 30\r\n", 18, MSG_NOSIGNAL, NULL, 0) = 18
  poll([{fd=3, events=POLLIN}], 1, -1)    = 1 ([{fd=3, revents=POLLIN}])
  read(3, "OK d71fcfbb5e2671f0f0575cf800000"..., 2048) = 37
  poll([{fd=3, events=POLLOUT}], 1, -1)   = 1 ([{fd=3, revents=POLLOUT}])
  sendto(3, "NEGOTIATE_UNIX_FD\r\n", 19, MSG_NOSIGNAL, NULL, 0) = 19
  poll([{fd=3, events=POLLIN}], 1, -1)    = 1 ([{fd=3, revents=POLLIN}])
  read(3, "AGREE_UNIX_FD\r\n", 2048)      = 15
  poll([{fd=3, events=POLLOUT}], 1, -1)   = 1 ([{fd=3, revents=POLLOUT}])
  sendto(3, "BEGIN\r\n", 7, MSG_NOSIGNAL, NULL, 0) = 7
  poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}])
  sendmsg(3, {msg_name(0)=NULL, msg_iov(2)=[{"l\1\2\1\t\0\0\0\1\0\0\0_\0\0\0\1\1o\0\23\0\0\0/com/ubu"..., 112}, {"\4\0\0\0udev\0", 9}], msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 121
  poll([{fd=3, events=POLLIN}], 1, 25000) = 1 ([{fd=3, revents=POLLIN}])
  recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"l\2\1\1\"\0\0\0\1\0\0\0\17\0\0\0\5\1u\0\1\0\0\0\10\1g\0\1o\0\0"..., 2048}], msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 66
  recvmsg(3, 0x7fffee846a60, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
  sendmsg(3, {msg_name(0)=NULL, msg_iov(2)=[{"l\1\2\1\10\0\0\0\2\0\0\0i\0\0\0\1\1o\0\35\0\0\0/com/ubu"..., 128}, {"\0\0\0\0\1\0\0\0", 8}], msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 136
  poll([{fd=3, events=POLLIN}], 1, -1

  
  I can only reproduce the problem on servers (with sshd, apache2, mysql, ... no dbus).  On desktop installations the restart command works fine.
  I first saw the problem on lucid but it still occurs on maverick.

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




More information about the foundations-bugs mailing list