subtle upstart race condition with rc-sysinit scripts

Bug #1083407 reported by ghomem
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

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

Revision history for this message
Robie Basak (racb) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Which versions of samba and upstart does this apply to? Also please could you run "apport-collect 1083407" to automatically submit relevant information to this bug?

Do you have samba and/or winbind configured any further or differently from defaults, and if so how?

Once you've answered, please change the bug status back to New.

Changed in samba (Ubuntu):
status: New → Incomplete
Revision history for this message
Robie Basak (racb) wrote :

Possibly related to bug 1078699?

Changed in samba (Ubuntu):
status: Incomplete → New
status: New → Incomplete
Revision history for this message
ghomem (gustavo) wrote :

They are possibly related. I will send more info as requested.

Revision history for this message
ghomem (gustavo) wrote :

upstart version is 1.5-0ubuntu7

I think this bug can be merged with bug 1078699

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for samba (Ubuntu) because there has been no activity for 60 days.]

Changed in samba (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.