From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mohammed Imaduddin Humayun 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: Sun, 14 Oct 2012 15:03:33 +0200 Message-ID: <507AB825.6070002@uni-muenster.de> 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> <83r4p37ltn.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1350219847 31371 80.91.229.3 (14 Oct 2012 13:04:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Oct 2012 13:04:07 +0000 (UTC) To: 12587@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 14 15:04:14 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 1TNNrZ-0005tL-0X for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Oct 2012 15:04:13 +0200 Original-Received: from localhost ([::1]:38322 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNNrS-0008BL-BK for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Oct 2012 09:04:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNNrO-0008Af-Nu for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 09:04:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNNrN-0007Y9-Be for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 09:04:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNNrN-0007Y5-8G for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 09:04:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TNNsL-00055W-Ri for bug-gnu-emacs@gnu.org; Sun, 14 Oct 2012 09:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mohammed Imaduddin Humayun Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Oct 2012 13:05: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.135021988119531 (code B ref 12587); Sun, 14 Oct 2012 13:05:01 +0000 Original-Received: (at 12587) by debbugs.gnu.org; 14 Oct 2012 13:04:41 +0000 Original-Received: from localhost ([127.0.0.1]:43383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TNNs0-00054x-FH for submit@debbugs.gnu.org; Sun, 14 Oct 2012 09:04:40 -0400 Original-Received: from secmail.uni-muenster.de ([128.176.192.141]:36962) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TNNrw-00054n-RF for 12587@debbugs.gnu.org; Sun, 14 Oct 2012 09:04:38 -0400 Original-Received: from [128.176.133.253] (GIN-HUMAYUN3650.UNI-MUENSTER.DE [128.176.133.253]) by SECMAIL.UNI-MUENSTER.DE (Postfix) with ESMTP id 1F4F5BF40A; Sun, 14 Oct 2012 15:03:33 +0200 (CEST) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 In-Reply-To: <83r4p37ltn.fsf@gnu.org> 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:65594 Archived-At: On 10/12/2012 5:27 PM, Eli Zaretskii wrote: > 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. Thanks. I will try this once the next snapshot binaries are released or earlier if I manage to build it myself. >> 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. Just so we're on the same page this is roughly the timeline: (start emacs)----------------(GUI appears)----------------------------------------------------(welcome screen) 0s ------------------------------- ~2 min --------------------------------------------------------------- ~7 min >> 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'm not clear on this. Wouldn't the backtrace be the same if I just produce it for the latter time instance (welcome screen) given that this happens only after the GUI shows up? > I'd still like to see this information, to make sure there isn't any > other place that slows down the startup. Sorry I couldn't find time to do this sooner, but the following steps didn't give the backtrace as expected ... : cd \path\to\emacs.exe gdb ./emacs.exe (gdb) break CreateThread (Answer 'y' when GDB asks whether to make this breakpoint pending on future shared library load) (gdb) commands backtrace continue end (gdb) run -Q ... and below is the log, but no backtrace was shown: ------------------------------------------------------ Function "CreateThread" not defined. Make breakpoint pending on future shared library load? (y or [n]) Breakpoint 1 (CreateThread) pending. Type commands for breakpoint(s) 1, one per line. End with a line saying just "end". Starting program: C:\emacs-24.2.50\bin\emacs.exe [New Thread 9940.0x2db0] [New Thread 9940.0x2bbc] [New Thread 9940.0x2c0c] [New Thread 9940.0x2ed0] [New Thread 9940.0x2840] [New Thread 9940.0xe8c] [New Thread 9940.0x7e8] [New Thread 9940.0xe3c] [New Thread 9940.0x1284] [New Thread 9940.0x11d4] [Inferior 1 (process 9940) exited normally] ------------------------------------------------------------- What do I need to rectify here?