Bug 1193944 - dhclient & dhcpd don't work with bind-9.10 when running in background
Summary: dhclient & dhcpd don't work with bind-9.10 when running in background
Keywords:
Status: CLOSED DUPLICATE of bug 1184173
Alias: None
Product: Fedora
Classification: Fedora
Component: dhcp
Version: 22
Hardware: All
OS: Linux
high
urgent
Target Milestone: ---
Assignee: Jiri Popelka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1181562
TreeView+ depends on / blocked
 
Reported: 2015-02-18 15:36 UTC by Jiri Popelka
Modified: 2015-02-23 11:59 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-19 14:57:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jiri Popelka 2015-02-18 15:36:29 UTC
Using dhcp-4.3.1/2 together with bind-9.10.1/2

Run 'dhclient em1', dhclient obtains an address, then goes to running in background and stops reacting. Once the address lifetime decreases to 0, it's removed from interface and machine is left without address.

When I prevent it from daemonizing by using -d, i.e. 'dhclient -d em1', it works, but it's impossible to stop it (Ctrl+C) and I have to 'kill -9' it.

Dhcpd seems to have the same problem.

strace shows a lot of futex() calls, but I don't know if that's related.

Comment 1 Jiri Popelka 2015-02-18 15:59:08 UTC
http://fedoraproject.org/wiki/Changes/BIND_9.10
says that:
Adaptive mutex locks are now used on systems which support them.

If that's related, maybe we can try to disable them somehow.

Comment 2 Jiri Popelka 2015-02-18 16:29:07 UTC
The only work-around until we have a fix is to downgrade back to bind-9.9
https://koji.fedoraproject.org/koji/buildinfo?buildID=598877
https://koji.fedoraproject.org/koji/buildinfo?buildID=599854

I put the x86_64 rpms also to
https://jpopelka.fedorapeople.org/dhcp/bz1193944/
in case the koji builds are deleted any time soon.

Comment 3 Jiri Popelka 2015-02-18 17:16:25 UTC
(In reply to Jiri Popelka from comment #1)
> http://fedoraproject.org/wiki/Changes/BIND_9.10
> says that:
> Adaptive mutex locks are now used on systems which support them.
> 
> If that's related, maybe we can try to disable them somehow.

Building bind neither with 
--with-locktype=standard
nor
--with-locktype=adaptive
makes any change.

Comment 4 Jiri Popelka 2015-02-19 08:38:05 UTC
(In reply to Jiri Popelka from comment #2)
> The only work-around until we have a fix is to downgrade back to bind-9.9

Or to start playing with internal dhcp client in NetworkManager:
# echo "dhcp=internal" >> /etc/NetworkManager/NetworkManager.conf

Comment 5 Jiri Popelka 2015-02-19 14:57:50 UTC

*** This bug has been marked as a duplicate of bug 1184173 ***


Note You need to log in before you can comment on or make changes to this bug.