GNU bug report logs -
#9291
23.3.50; Emacs takes long time to start up due to DNS
Previous Next
Reported by: Leo <sdl.web <at> gmail.com>
Date: Sat, 13 Aug 2011 02:01:01 UTC
Severity: normal
Found in version 23.3.50
Done: Chong Yidong <cyd <at> stupidchicken.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On my machine, emacs -q -nw normally takes 0.1 seconds. But I have just
found that it could take more than 10 seconds on some network. I have
this device that provides wifi/wapi through the telencom network here,
so the behaviour is readily reproducible. Let me know how I may provide
more information for debugging. AFAICT this happens in 24.0.50 too.
I am running emacs 23.3.50 on OSX 10.6.8.
leo <at> bogon ~$ time emacs -q -nw
real 0m11.347s
user 0m0.207s
sys 0m0.037s
Backtrace in GDB reveals this:
#0 0x00007fff85677c0a in kevent ()
#1 0x00007fff856b69fa in _mdns_query_mDNSResponder ()
#2 0x00007fff856b5db7 in _mdns_search ()
#3 0x00007fff856b4ffc in _mdns_addrinfo ()
#4 0x00007fff856b4059 in search_addrinfo ()
#5 0x00007fff856b3a7a in si_addrinfo ()
#6 0x00007fff856b348d in getaddrinfo ()
#7 0x000000010012915e in init_system_name () at sysdep.c:1793
#8 0x00000001001a4b9d in init_editfns () at editfns.c:154
#9 0x00000001001021bc in main (argc=3, argv=0x7fff5fbff5f8) at emacs.c:1768
BTW, is it possible for init_system_name to be done async?
Leo
This bug report was last modified 13 years and 344 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.