Report information
The Basics
Id:
41977
Status:
open
Priority:
Medium/Medium
Queue:

People
Owner:
Nobody in particular
Cc:
AdminCc:

BugTracker
Version Fixed:
(no value)
Version Found:
(no value)
Versions Affected:
(no value)
Versions Planned:
(no value)
Priority:
P3 Low
Severity:
S3 Low
CVSS Score:
(no value)
CVE ID:
(no value)
Component:
BIND Server
Area:
bug

Dates
Created:Fri, 18 Mar 2016 23:02:17 -0400
Updated:Tue, 25 Jul 2017 12:29:31 -0400
Closed:Not set



This bug tracker is no longer active.

Please go to our Gitlab to submit issues (both feature requests and bug reports) for active projects maintained by Internet Systems Consortium (ISC).

Due to security and confidentiality requirements, full access is limited to the primary maintainers.

Subject: bind-9.9.9b1 - when started with -u named daemon ignores -n 2 and runs single-threaded
Date: Sat, 19 Mar 2016 03:01:47 +0000
To: bind-bugs@isc.org
From: "David Lawless" <mail.2016q1@david-lawless.net>
Bug Report from www.isc.org: Name: David Lawless Email: mail.2016q1@david-lawless.net Software Version: bind-9.9.9b1 OS: Linux x86_64 Subject:when started with -u named daemon ignores -n 2 and runs single-threaded Bug Detail =========== Got it working running 'root' on a 4-core system with -n2 command parameter. Two threads as expected. Then added -u named and it refused to come up multi-threaded. Noticed the CPU count in the /var/log/messages was missing after establishing non-root operation. --- This email was received through isc.org Bug Submission Form All information within this email is considered confidential and for internal use only.
Hello David, Could you provide logs taken from both runs? Do I understand correctly that it did not shown the 'found n CPUs, using n worker threads' in the second run? Witold
Subject: Re: [ISC-Bugs #41977] bind-9.9.9b1 - when started with -u named daemon ignores -n 2 and runs single-threaded
Date: Tue, 12 Apr 2016 15:23:33 -0400
To: bind9-bugs@isc.org
From: "David Lawless" <mail.2016q2@david-lawless.net>
At 18:14 4/12/2016 +0000, you wrote: >Could you provide logs taken from both runs? Do I understand >correctly that it did not shown the 'found n CPUs, using n >worker threads' in the second run? Hi Witold, I've attached the startup messages. I confused 9.10.4 and 9.9.9 somewhat, but the observation holds that 9.9.9 is running one thread under SUID when it should be running two threads. Possibly 9.10.4 works correctly, but I'm not certain. I started with 9.10 and it quickly failed with a SEGV trap do I switched to 9.9.9. I'm not sure exactly when I turned on the SUID named, but it is definitely in effect for 9.9.9b2 where only one thread is observed. Regards, David

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

CC:
Subject: Re: [ISC-Bugs #41977] bind-9.9.9b1 - when started with -u named daemon ignores -n 2 and runs single-threaded
Date: Tue, 12 Apr 2016 22:25:38 +0000
To: "David Lawless via RT" <bind9-bugs@isc.org>
From: "Evan Hunt" <each@isc.org>
Here's your problem: > Mar 18 22:47:14.579 5 named[]: running on Linux x86_64 2.6.32.67 #1 SMP Sat Aug 29 13:24:08 EDT 2015 > Mar 18 22:47:14.579 5 named[]: built with '--enable-full-report' '--with-openssl=/usr/local/openssl-1.0.2' '--with-libxml2=no' 'LDFLAGS=-L/usr/local/lib64' Prior to 9.10, "--enable-threads" was not turned on by default on Linux. Build 9.9 with that option and it should get better.
Subject: Re: [ISC-Bugs #41977] bind-9.9.9b1 - when started with -u named daemon ignores -n 2 and runs single-threaded
Date: Wed, 13 Apr 2016 08:36:21 +1000
To: bind9-bugs@isc.org
From: "Mark Andrews" <marka@isc.org>
9.9 has threads disabled by default *-linux*) # Threads are disabled on Linux by default because most # Linux kernels produce unusable core dumps from multithreaded # programs, and because of limitations in setuid(). use_threads=false ;; 9.10 enables threads by default *-linux*) use_threads=true ;; Note threads are not explictly enabled in either build. In message <rt-4.2.8-97406-1460489200-1717.41977-4-0@isc.org>, "David Lawless via RT" writes: > Mar 18 22:47:14.579 5 named[]: starting BIND 9.10.4b2 <id:d36f894> -c /usr/local/etc/named.conf -n 2 > Mar 18 22:47:14.579 5 named[]: running on Linux x86_64 2.6.32.67 #1 SMP Sat Aug 29 13:24:08 EDT 2015 > Mar 18 22:47:14.579 5 named[]: built with '--enable-full-report' '--with-openssl=/usr/local/openssl-1.0.2' '--with-libxml2=no' 'LDFLAGS=-L > /usr/local/lib64' > Apr 10 19:04:45.058 5 named[]: starting BIND 9.9.9b2 (Extended Support Version) <id:d6d860e> -c /usr/local/etc/named.conf -n 2 -4 -S 8192 > -u named > Apr 10 19:04:45.058 5 named[]: running on Linux x86_64 2.6.32.67 #1 SMP Sat Aug 29 13:24:08 EDT 2015 > Apr 10 19:04:45.058 5 named[]: built with '--enable-full-report' '--with-openssl=/usr/local/openssl-1.0.2' '--with-libxml2=no' '--sysconfd > ir=/usr/local/etc' 'LDFLAGS=-L/usr/local/lib64' -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: marka@isc.org
Subject: Re: [ISC-Bugs #41977] bind-9.9.9b1 - when started with -u named daemon ignores -n 2 and runs single-threaded
Date: Tue, 12 Apr 2016 18:47:06 -0400
To: bind9-bugs@isc.org
From: "David Lawless" <mail.2016q2@david-lawless.net>
Thank you--easy to fix. Perhaps a warning about the state of the build should be emitted when the -n option is specified with MT disabled or when SUID semantics prevent it? Regards David