Bug 102634 - res_query reports error in multi threaded application
Summary: res_query reports error in multi threaded application
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: glibc
Version: 8.0
Hardware: i586
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-08-19 06:35 UTC by Saurabh Mathur
Modified: 2016-11-24 15:23 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-11-05 18:52:53 UTC
Embargoed:


Attachments (Terms of Use)

Description Saurabh Mathur 2003-08-19 06:35:29 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.2) Gecko/20030208
Netscape/7.02

Description of problem:
We have written a simple application for doing SMTP MX record query using   the
res_query function. This API returns error "No such process" (error number 3)
whenever it is called from a thread that has been invoked. From the main thread
or single threaded application, this API works fine. 

The same sample test applicaiton works fine when compiled and run on 6.2 redhat
Linux installation in single and multi threaded application but fails on the
Redhat 8.0 release.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Write a multi threaded program.
2. From the new thread, call res_query for MX records. 
3. In case, error is returned, print the error string.
    

Actual Results:  The program retuns "No Such Process"

Expected Results:  It must have done the DNS resolution for MX record and
returned the IP address of the machine.

Additional info:

Comment 1 Than Ngo 2003-08-19 17:32:14 UTC
i assign it to correct component 

Comment 2 Jakub Jelinek 2003-08-25 16:06:43 UTC
Please supply a minimal testcase to show what exactly you're doing and
what you expect it to do.

Comment 3 Ulrich Drepper 2003-10-03 18:25:48 UTC
Ping.  Without a test case we cannot do anything.   I'll keep the bug open for a
bit longer.

Comment 4 Ulrich Drepper 2003-11-05 18:52:53 UTC
No response in a month.  No bug in sight.  Closing.


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