id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
86	savannah: slow starting of mc	nijman	angel_il	"Original: http://savannah.gnu.org/bugs/?24038

||Submitted by:||Ies Nijman <nijman>||Submitted on:||Mon 11 Aug 2008 03:21:54 PM UTC||
||Category:||Core||Severity:||3 - Normal||
||Status:||None||Privacy:||Public||
||Assigned to:||None||Open/Closed:||Open||
||Release:||4.6.2-pre1||Operating System:||Other||

Original submission:
{{{
On openSuse 11 starting mc takes a very long time: about 30s. IpV6 
is disabled but VMware player is installed and so virtual network 
devices are present.

nslookup and netstat work immidiately so it isn't the gethostbyname 
issue.

A solution would be greatly appreciated.
}}}

Comment 1 by Oswald Buddenhagen <ossi> at Tue 12 Aug 2008 10:07:17 AM UTC:
{{{
you should attach the strace of such a startup.
}}}

Comment 2 by Ies Nijman <nijman> at Tue 12 Aug 2008 11:26:57 AM UTC:
{{{
Strace output added. Funny thing is that with strace, MC starts up 
rightaway...

(file #16277)
}}}

Comment 3 by Ies Nijman <nijman> at Tue 12 Aug 2008 12:43:53 PM UTC:
{{{
Previous results were from MC 4.6.1 (fast starting).

Next slow results from MC 4.6.2 and a strace file.
}}}

Comment 4 by Ies Nijman <nijman> at Tue 12 Aug 2008 02:28:09 PM UTC:
{{{
New strace file attached, now with timestamps.

It seems to timeout several times on
""RESOLVE-HOSTNAME-IPV4""

Strange because if I do nslookup with this host name it returns 
immediately..

(file #16281)
}}}

Comment 5 by Irakli <ika256> at Wed 03 Sep 2008 07:29:31 AM UTC:
{{{
I had this problem too
Solution is:
add ""options no_tld_query"" in resolv.conf
}}}

Comment 6 by Sorin Sbarnea <sorin> at Tue 07 Oct 2008 10:54:29 AM UTC:
{{{
I can confirm the same issue on multiple platform: OS X, Fedora and Ubuntu.

It's a real pain and this should be solved inside mc - mc is used as
a configuration tools and it's supposed to work even on systems 
where configuration is not ""well done"".

BTW. The solution with ""options no_tld_query"" in resolv.conf does 
not solves the problem in my case.

I don't remember exactly but I think it's somewhat related to 
/etc/hosts
}}}

Comment 7 by Sorin Sbarnea <sorin> at Thu 18 Dec 2008 10:48:06 AM UTC:
{{{
I can (re)confirm this problem on RHEL also.

The DNS is well configured. There is no delay running ""netstat -a""

I wasn't able to locate any other program with simmilar behaviour on
 these machines.

Possible hint: some partitions are mounted using NIS.

If you are searching on google after ""midnight commander slow start""
 you'll see that a lot of people are encountering this issue.
}}}

Comment 8 by Sorin Sbarnea <sorin> at Thu 18 Dec 2008 10:58:47 AM UTC:
{{{
I would like to add that I have the same problem with version 
4.6.1-pre1a and that ""options no_tld_query"" in resolv.conf does not 
work (tested even after system restart)
}}}

Comment 9 by Sorin Sbarnea <sorin> at Thu 18 Dec 2008 11:17:09 AM UTC:
{{{
If this helps: I have some NFS mounted drives but none of them if in
 one of the mc panes.
}}}
"	defect	closed	major	4.8.2	mc-core	master	fixed					merged	committed-master committed-stable
