From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12587: 24.2; Delayed startup, unresponsive Emacs in MS Windows when netlogon services is running in a domain Date: Fri, 12 Oct 2012 17:27:00 +0200 Message-ID: <83r4p37ltn.fsf@gnu.org> References: <5070027B.80105@uni-muenster.de> <83ehlb7b2z.fsf@gnu.org> <5071558A.3030202@uni-muenster.de> <83r4pa5yuz.fsf@gnu.org> <507293AC.8090901@uni-muenster.de> <83vcel495w.fsf@gnu.org> <5072E46A.9080403@uni-muenster.de> <83ipal3r0c.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1350055643 25734 80.91.229.3 (12 Oct 2012 15:27:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Oct 2012 15:27:23 +0000 (UTC) Cc: 12587@debbugs.gnu.org To: m_huma01@uni-muenster.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 12 17:27:29 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TMh96-0008B7-Hq for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Oct 2012 17:27:28 +0200 Original-Received: from localhost ([::1]:60128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMh90-0007rP-2C for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Oct 2012 11:27:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMh8r-0007rE-6i for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2012 11:27:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMh8p-000831-N2 for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2012 11:27:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMh8p-00082v-IN for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2012 11:27:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TMh9d-0000c7-Uk for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2012 11:28:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Oct 2012 15:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12587 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 12587-submit@debbugs.gnu.org id=B12587.13500556792350 (code B ref 12587); Fri, 12 Oct 2012 15:28:01 +0000 Original-Received: (at 12587) by debbugs.gnu.org; 12 Oct 2012 15:27:59 +0000 Original-Received: from localhost ([127.0.0.1]:41196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TMh9b-0000br-69 for submit@debbugs.gnu.org; Fri, 12 Oct 2012 11:27:59 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:51804) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TMh9Y-0000bd-Ny for 12587@debbugs.gnu.org; Fri, 12 Oct 2012 11:27:58 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MBS00200DIFN900@a-mtaout20.012.net.il> for 12587@debbugs.gnu.org; Fri, 12 Oct 2012 17:26:59 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MBS002QFDKY0MF0@a-mtaout20.012.net.il>; Fri, 12 Oct 2012 17:26:59 +0200 (IST) In-reply-to: <83ipal3r0c.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:65524 Archived-At: > Date: Mon, 08 Oct 2012 17:47:15 +0200 > From: Eli Zaretskii > Cc: 12587@debbugs.gnu.org > > This part is clear: we are waiting for file security-related system > calls: > > > #21 0x76821e1b in LookupAccountSidW () from C:\Windows\syswow64\advapi32.dll > > #22 0x010572d7 in lookup_account_sid (lpSystemName=0x0, Sid=0xce1bc8, > > Name=0x88f7cf "humayun", cbName=0x88f7c8, > > DomainName=0x88f3c8 "GEOINFORMATIK", cbDomainName=0x88f3c4, > > peUse=0x88f8d0) at w32.c:495 > > #23 0x0105b343 in get_name_and_id (psd=0xce1b98, > > fname=0x88f970 "c:\\emacs-24.2.50\\etc\\GNU", id=0x88fbf4, > > nm=0x88fd14 "/emacs-24.2.50/etc/GNU", what=2) at w32.c:3437 > > #24 0x0105b43c in get_file_owner_and_group (psd=0xce1b98, > > fname=0x88f970 "c:\\emacs-24.2.50\\etc\\GNU", st=0x88fbe0) at > > w32.c:3467 > > #25 0x0105b91c in stat_worker (path=0x164a5c2 "\\emacs-24.2.50\\etc\\GNU", > > buf=0x88fbe0, follow_symlinks=1) at w32.c:3689 > > #26 0x0105bf49 in stat (path=0x39e9e50 "c:/emacs-24.2.50/etc/GNU", > > buf=0x88fbe0) at w32.c:3865 > > #27 0x01067a18 in Ffile_exists_p (filename=59080209) at fileio.c:2506 > > #28 0x010d48f1 in init_callproc () at callproc.c:1582 > > As you see, these calls are originated from a function that needs to > establish whether a certain file exists. In a Windows domain, these > calls go to the domain controller, and are evidently very slow when > the Netlogon service is up and running. I think I can find a solution > for this. I committed a change in trunk revision 110520 which should make this part faster, as these functions now avoid calling 'stat' as much as possible. When the binaries of the next development snapshot appear on http://alpha.gnu.org/gnu/emacs/windows/, or if you can build Emacs yourself, please try that and see if things are better now when the Netlogon service is running. > I see that I misinterpreted your original report about the startup > time line. I now understand that after the welcome screen Emacs is > responsive, and the slowdown is before the welcome screen. > > So please repeat what you did, but do it once before the GUI shows up, > and then again between the time the GUI shows up and the time Emacs > shows its welcome screen. (If you know to which of these two time > instances belongs the first backtrace you show above, you need only to > produce the backtrace for the other time instance.) I'd still like to see this information, to make sure there isn't any other place that slows down the startup. Thanks.