[Bug 1083407] [NEW] subtle upstart race condition with rc-sysinit scripts

ghomem 1083407 at bugs.launchpad.net
Tue Nov 27 02:13:54 UTC 2012


Public bug reported:

In fast machines one can see a race condition related to the old-style
sysinit scripts that upstart runs. I noticed this on a virtual machine.

The symptoms are:

- winbind is hung on a futex  call (only one winbind proc is visible, unlike the usual situation)
- xrdp is not launched because start-stop-daemon is also hanging on a futex call
- ...

Perhaps these daemons are being launched before networking or DNS.

Process 916 attached - interrupt to quit
futex(0xb666cd08, FUTEX_WAIT_PRIVATE, 2, NUL

However if we insert an S10sleep script on rc2.d, with

sleep 5

the problem disappears. That is, winbind and xrdp start up normally.

Notes:

I have the latest upstart package installed.
The problem is reproducible

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

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1083407

Title:
  subtle upstart race condition with rc-sysinit scripts

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



More information about the Ubuntu-server-bugs mailing list