GNU bug report logs - #35069
runtest takes too long on get_local_hostname

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: dejagnu; Reported by: Tom de Vries <tdevries@HIDDEN>; dated Mon, 1 Apr 2019 10:06:01 UTC; Maintainer for dejagnu is bug-dejagnu@HIDDEN.

Message received at 35069 <at> debbugs.gnu.org:


Received: (at 35069) by debbugs.gnu.org; 1 Apr 2019 14:55:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 01 10:55:15 2019
Received: from localhost ([127.0.0.1]:39840 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hAyLD-0001S7-Iz
	for submit <at> debbugs.gnu.org; Mon, 01 Apr 2019 10:55:15 -0400
Received: from mx2.suse.de ([195.135.220.15]:52966 helo=mx1.suse.de)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tdevries@HIDDEN>) id 1hAyL9-0001Rl-6U
 for 35069 <at> debbugs.gnu.org; Mon, 01 Apr 2019 10:55:14 -0400
X-Virus-Scanned: by amavisd-new at test-mx.suse.de
Received: from relay2.suse.de (unknown [195.135.220.254])
 by mx1.suse.de (Postfix) with ESMTP id 17C36AE88
 for <35069 <at> debbugs.gnu.org>; Mon,  1 Apr 2019 14:55:05 +0000 (UTC)
Subject: Re: bug#35069: runtest takes too long on get_local_hostname
To: Andreas Schwab <schwab@HIDDEN>
References: <abfcef90-6746-63be-301d-35825553f783@HIDDEN>
 <mvm1s2lrgje.fsf@HIDDEN>
From: Tom de Vries <tdevries@HIDDEN>
Message-ID: <32942076-658f-8f88-a412-6f431749acdc@HIDDEN>
Date: Mon, 1 Apr 2019 15:55:59 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.5.1
MIME-Version: 1.0
In-Reply-To: <mvm1s2lrgje.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 35069
Cc: 35069 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

On 01-04-19 15:39, Andreas Schwab wrote:
> On Apr 01 2019, Tom de Vries <tdevries@HIDDEN> wrote:
> 
>> Usually the testsuite runs in 12 seconds, but sometimes it takes more
>> than a minute (I managed to reproduce the same problem by running a
>> single gcc testsuite test-case).
>>
>> I tracked this down to tcl info hostname taking a long time, when:
>> - having a vpn session active, and
>> - having no network connection
> 
> Tcl calls gethostbyname on your hostname, so you should make sure that
> it is resolvable (by adding it to /etc/hosts, for example, or installing
> nss-myhostname).  That's probably a good idea anyway, since there may be
> other programs trying to do that too.

Hi,

that works for me, thanks.

FTR, I do consider this a workaround though. If my internet connection
or configuration is broken in some way, I still expect say, ls to work
reliably, with the same speed. And I would expect the same for dejagnu
runtest (unless I would be testing network functionality, or remote
boards or some such).

Thanks,
- Tom




Information forwarded to bug-dejagnu@HIDDEN:
bug#35069; Package dejagnu. Full text available.

Message received at 35069 <at> debbugs.gnu.org:


Received: (at 35069) by debbugs.gnu.org; 1 Apr 2019 13:39:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 01 09:39:26 2019
Received: from localhost ([127.0.0.1]:38949 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hAx9q-0007kl-2q
	for submit <at> debbugs.gnu.org; Mon, 01 Apr 2019 09:39:26 -0400
Received: from mx2.suse.de ([195.135.220.15]:39330 helo=mx1.suse.de)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <schwab@HIDDEN>) id 1hAx9n-0007kT-R8
 for 35069 <at> debbugs.gnu.org; Mon, 01 Apr 2019 09:39:24 -0400
X-Virus-Scanned: by amavisd-new at test-mx.suse.de
Received: from relay2.suse.de (unknown [195.135.220.254])
 by mx1.suse.de (Postfix) with ESMTP id B9CC1AE25
 for <35069 <at> debbugs.gnu.org>; Mon,  1 Apr 2019 13:39:17 +0000 (UTC)
From: Andreas Schwab <schwab@HIDDEN>
To: Tom de Vries <tdevries@HIDDEN>
Subject: Re: bug#35069: runtest takes too long on get_local_hostname
References: <abfcef90-6746-63be-301d-35825553f783@HIDDEN>
X-Yow: Here is my refrigerator full of FLANK STEAK...and over there is my
 UPHOLSTERED CANOE...I don't know WHY I OWN them!!
Date: Mon, 01 Apr 2019 15:39:17 +0200
In-Reply-To: <abfcef90-6746-63be-301d-35825553f783@HIDDEN> (Tom de Vries's
 message of "Mon, 1 Apr 2019 12:05:50 +0200")
Message-ID: <mvm1s2lrgje.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 35069
Cc: 35069 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

On Apr 01 2019, Tom de Vries <tdevries@HIDDEN> wrote:

> Usually the testsuite runs in 12 seconds, but sometimes it takes more
> than a minute (I managed to reproduce the same problem by running a
> single gcc testsuite test-case).
>
> I tracked this down to tcl info hostname taking a long time, when:
> - having a vpn session active, and
> - having no network connection

Tcl calls gethostbyname on your hostname, so you should make sure that
it is resolvable (by adding it to /etc/hosts, for example, or installing
nss-myhostname).  That's probably a good idea anyway, since there may be
other programs trying to do that too.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@HIDDEN
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."




Information forwarded to bug-dejagnu@HIDDEN:
bug#35069; Package dejagnu. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 1 Apr 2019 10:05:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 01 06:05:14 2019
Received: from localhost ([127.0.0.1]:38854 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hAtoY-0000Ch-GQ
	for submit <at> debbugs.gnu.org; Mon, 01 Apr 2019 06:05:14 -0400
Received: from eggs.gnu.org ([209.51.188.92]:38646)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tdevries@HIDDEN>) id 1hAtoV-0000CO-QY
 for submit <at> debbugs.gnu.org; Mon, 01 Apr 2019 06:05:13 -0400
Received: from lists.gnu.org ([209.51.188.17]:58765)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <tdevries@HIDDEN>) id 1hAtoQ-0006z7-6x
 for submit <at> debbugs.gnu.org; Mon, 01 Apr 2019 06:05:06 -0400
Received: from eggs.gnu.org ([209.51.188.92]:53023)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <tdevries@HIDDEN>) id 1hAtoP-0005XW-3f
 for bug-dejagnu@HIDDEN; Mon, 01 Apr 2019 06:05:06 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_20,RCVD_IN_DNSWL_MED,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <tdevries@HIDDEN>) id 1hAtoM-0006vd-VN
 for bug-dejagnu@HIDDEN; Mon, 01 Apr 2019 06:05:04 -0400
Received: from mx2.suse.de ([195.135.220.15]:55392 helo=mx1.suse.de)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <tdevries@HIDDEN>) id 1hAtoK-0006o4-T3
 for bug-dejagnu@HIDDEN; Mon, 01 Apr 2019 06:05:01 -0400
X-Virus-Scanned: by amavisd-new at test-mx.suse.de
Received: from relay2.suse.de (unknown [195.135.220.254])
 by mx1.suse.de (Postfix) with ESMTP id CE8EEACAD
 for <bug-dejagnu@HIDDEN>; Mon,  1 Apr 2019 10:04:55 +0000 (UTC)
To: bug-dejagnu@HIDDEN
From: Tom de Vries <tdevries@HIDDEN>
Subject: runtest takes too long on get_local_hostname
Message-ID: <abfcef90-6746-63be-301d-35825553f783@HIDDEN>
Date: Mon, 1 Apr 2019 12:05:50 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.5.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no
 timestamps) [generic]
X-Received-From: 195.135.220.15
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Hi,

I've setup a dejagnu testsuite for the dwz component (
https://sourceware.org/git/?p=dwz.git;a=summary ).

I'm running into the following problem.

Usually the testsuite runs in 12 seconds, but sometimes it takes more
than a minute (I managed to reproduce the same problem by running a
single gcc testsuite test-case).

I tracked this down to tcl info hostname taking a long time, when:
- having a vpn session active, and
- having no network connection

I manage to work around this by editing /usr/share/dejagnu/runtest.exp
and redefining get_local_hostname like this:
...
proc get_local_hostname { } {
    return [exec hostname]
}
...

I think it's a bug that a testsuite run that tests no network
functionality slows down by a factor of 5 when there's no network
connection.

[ In absence of a fix, I would already be grateful if somebody can point
out to me how I can work around this in a site.exp or board file or some
such, I tried myself but didn't manage to make that work. ]

Thanks,
- Tom




Acknowledgement sent to Tom de Vries <tdevries@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-dejagnu@HIDDEN. Full text available.
Report forwarded to bug-dejagnu@HIDDEN:
bug#35069; Package dejagnu. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 1 Apr 2019 15:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.