[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gettext] gettxt 0.18.3.1 `configure` hangs @ "checking for work
Re: [bug-gettext] gettxt 0.18.3.1 `configure` hangs @ "checking for working sleep... " ?
Mon, 20 May 2019 13:27:37 +0300
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1
Bruno Haible (20/05/2019 00.17 Europe/Helsinki):
> address@hidden wrote in
>> I'm building gettext-0.18.3.1 on
>> uname -a
>> Linux jenl.devtest.loc 3.7.10-1.16-desktop #1 SMP
>> PREEMPT Fri May 31 20:21:23 UTC 2013 (97c14ba) x86_64
>> x86_64 x86_64 GNU/Linux
>> checking for working sleep...
>> and just sits there, interminably. Ctrl-C breaks out without issue.
> It is executing the configure test from gnulib/m4/sleep.m4, which just
> exercises a bit of waiting and signal handling (fully POSIX compliant).
Checking the source of sleep.m4 (assuming I found the correct one) shows
> signal (SIGALRM, handle_alarm);
> alarm (1);
> remaining = sleep (pentecost);
If system is under very high load it might take more than 1 second of
wall clock time to get from alarm() to sleep() and this test will then
hang for 50 days. I guess a correct way to fix this is to introduce a
new flag to tell if test is complete and if alarm is triggered before
the test is complete, re-arm the alarm 1 second later.