Bug 423741

Summary: resolver library causes segfaults in bind-utils such as dig,ping
Product: Red Hat Enterprise Linux 5 Reporter: Mistral Red Hat Team <redhatadmin>
Component: bindAssignee: Adam Tkac <atkac>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 5.1CC: mludvig, ovasik, sputhenp
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: RHSA-2008-0300 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-21 14:17:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
console screenshot of segfaults
none
core from segfault of dig +trace on rhel5.1 none

Description Mistral Red Hat Team 2007-12-13 17:28:56 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1.11) Gecko/20071204 Ubuntu/7.10 (gutsy) Firefox/2.0.0.11

Description of problem:
Using 'dig +trace' can cause random segfaults.

Version-Release number of selected component (if applicable):
bind-utils-9.3.3-10.el5,  bind-libs-9.3.3-10.el5

How reproducible:
Always


Steps to Reproduce:
1.Install rhel5.0
2. yum update to rhel 5.1
3. as root, 'while true; do dig +trace redhat.com >/dev/null; done'


Actual Results:
Random segmentation faults.



Expected Results:
Nothing, successful dig sent to /dev/null.

Additional info:

Ran gdb against core dump produced by dig:-

(gdb) bt
#0 0x00bc0d7a in bind9_getaddresses@plt () from /usr/bin/dig 
#1 0x00d8f4e2 in isc_taskmgr_create () from /usr/lib/libisc.so.11
#2 0x0038e45b in start_thread () from /lib/libpthread.so.0
#3 0x004ee24e in clone () from /lib/libc.so.6

Download bind-9.4.2.tar.gz from isc.org
untar to /usr/local/src/
cd /usr/local/src/bind-9.4.2
./configure && make && make install
add 'usr/local/lib' to /etc/ld.so.conf
run 'ldconfig'
rpm -e bind-utils-9.3.3-10.el5
rpm -e bind-libs-9.3.3-10.el5
as root, 'while true; do dig +trace redhat.com >/dev/null; done'

No more segfaults.

Comment 1 Mistral Red Hat Team 2007-12-13 17:34:38 UTC
Created attachment 287681 [details]
console screenshot of segfaults

Attached console screenshot for clarity.

Comment 2 Adam Tkac 2007-12-14 11:20:32 UTC
Would it be possible attach core dump? Please try 

$ulimit -c unlimited
$'while true; do dig +trace redhat.com >/dev/null; done'

and then attach core file, please.

Comment 3 Mistral Red Hat Team 2007-12-14 12:08:53 UTC
Created attachment 289061 [details]
core from segfault of dig +trace on rhel5.1

Comment 4 Adam Tkac 2008-01-03 12:14:48 UTC
I think this problem is also fixed in 9.3.4-P1 which will be in 5.2. Would it be
possible test proposed update?
http://people.redhat.com/atkac/bind/bind-9.3.4-2.P1.el5.src.rpm

Thanks

Comment 5 Mistral Red Hat Team 2008-01-09 15:07:02 UTC
Thankyou - this update works fine.

Comment 6 Adam Tkac 2008-01-09 15:11:16 UTC
Thanks for your feedback. Will be fixed in 5.2

Comment 8 RHEL Program Management 2008-01-09 15:15:14 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 12 Michal Ludvig 2008-04-03 02:01:59 UTC
I experience the same problem. Can you please make the src.rpm available again?
(although unofficially) 

The segfault is affects our monitoring scripts. Thanks.

Comment 13 Adam Tkac 2008-04-03 07:57:31 UTC
You can download it from http://people.redhat.com/atkac/bind/ (currently
9.3.4-6.P1.el5). That version should same as final 5.2 version

Comment 14 Michal Ludvig 2008-04-03 09:04:06 UTC
Thanks, I've figured that out right after I submitted the comment as well ;-) As
usual. 

Any chance to push this out as an update? 

Comment 15 Adam Tkac 2008-04-03 09:22:27 UTC
(In reply to comment #14)
> Thanks, I've figured that out right after I submitted the comment as well ;-) As
> usual. 
> 
> Any chance to push this out as an update? 

Will be available in official RHEL 5.2 which is scheduled on 21st May 2008, not
sooner

Comment 16 errata-xmlrpc 2008-05-21 14:17:54 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2008-0300.html