[Nagiosplug-devel] [ nagiosplug-Bugs-1891143 ] popen test runs "forever" (workaraound)
SourceForge.net
noreply at sourceforge.net
Tue Feb 26 04:20:11 CET 2008
Bugs item #1891143, was opened at 2008-02-11 05:43
Message generated for change (Comment added) made by sf-robot
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: Closed
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: SourceForge Robot (sf-robot)
Date: 2008-02-25 19:20
Message:
Logged In: YES
user_id=1312539
Originator: NO
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
----------------------------------------------------------------------
Comment By: Ton Voon (tonvoon)
Date: 2008-02-11 13:24
Message:
Logged In: YES
user_id=664364
Originator: NO
Thomas,
Good idea. Done in svn. Link is now:
http://nagiosplugins.org/faq/compile/configure_appears_to_hang
I'm going to mark this as pending, so this call will auto close after 7
days.
Ton
----------------------------------------------------------------------
Comment By: Thomas Guyot (dermoth)
Date: 2008-02-11 08: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 07: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 06: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 06: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