[Nagiosplug-devel] [ nagiosplug-Bugs-1891143 ] popen test runs "forever" (workaraound)

SourceForge.net noreply at sourceforge.net
Mon Feb 11 17:09:39 CET 2008


Bugs item #1891143, was opened at 2008-02-11 08:43
Message generated for change (Comment added) made by dermoth
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1891143&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Compilation
Group: Release (specify)
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Henry78 (henry78)
Assigned to: Nobody/Anonymous (nobody)
Summary: popen test runs "forever" (workaraound)

Initial Comment:
Using nagios-plugins-1.4.11 I run a plain ./configure, which is stuck at "checking for redhat spopen problem".

The part getting stuck is the child_test, which takes 10 seconds to fail. As you see from the Makefile in the dir config_test the caller script (run_test) invokes the child_test 10 000 times.

I attached an starce output of a manual child_test run. If anyone guides my (I'm no big C programmer), I'd be welcome to debug/track down this problem further. 

----------------------------------------------------------------------

>Comment By: Thomas Guyot (dermoth)
Date: 2008-02-11 11:09

Message:
Logged In: YES 
user_id=375623
Originator: NO

Why not printing out this link with a sort note just before running the
test?

----------------------------------------------------------------------

Comment By: Ton Voon (tonvoon)
Date: 2008-02-11 10:43

Message:
Logged In: YES 
user_id=664364
Originator: NO

Henry,

Does this answer your questions? http://nagiosplugins.org/node/7

Ton

----------------------------------------------------------------------

Comment By: Sascha Runschke (srunschke)
Date: 2008-02-11 09:29

Message:
Logged In: YES 
user_id=2006232
Originator: NO

The type of check cannot be changed, since the Redhat spopen bug evolves
around a futex race condition in combination with the ISC DNS libraries.
Those are linked with bind, nslookup, dig and the like. If you change the
actual check binary, then the check itself is foobar.
It'll be better to implement a "pre-check" if DNS resolving is possible at
all and bail out if not.

S

----------------------------------------------------------------------

Comment By: Henry78 (henry78)
Date: 2008-02-11 09:04

Message:
Logged In: YES 
user_id=885432
Originator: YES

Finally had a look into the code of child_test, and of course it take
forever, it's running nslookup from there, and nagios isn't attached to the
internet. So i changed (removed/added comments) the executed command to
'date' (hope the test still does what it should do), now the test runs in a
reasonable time.
However, imho the test should be fixed to run something
internet-independent. So leave the bug open.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1891143&group_id=29880




More information about the Devel mailing list