Subject: bug#12587: 24.2; Delayed startup, unresponsive Emacs in MS Windows when netlogon services is running in a domain

From: Mohammed Imaduddin Humayun <[email-masked]>
Date: Wed, 17 Oct 2012 10:47:44 +0200

On 10/14/2012 4:53 PM, Eli Zaretskii wrote:
> No, that's fine. I think the issue with CreateThread is a red herring 
> anyway, sorry. The only additional information I'd like to see is the 
> backtrace during the time between the instance the GUI shows up and 
> the welcome screen. Thanks. 

Here it is:
--------------------------------------------------------------
Thread 7 (Thread 12476.0x27f8):
#0 0x770e000d in ntdll!LdrFindResource_U ()
from C:\Windows\SysWOW64\ntdll.dll
#1 0x7716f896 in ntdll!RtlQueryTimeZoneInformation ()
from C:\Windows\SysWOW64\ntdll.dll
#2 0x236775da in ?? ()
#3 0x00000000 in ?? ()

Thread 6 (Thread 12476.0xb4c):
#0 0x74ee78d7 in USER32!IsDialogMessage ()
from C:\Windows\syswow64\user32.dll
#1 0x74ee78d7 in USER32!IsDialogMessage ()
from C:\Windows\syswow64\user32.dll
#2 0x74ee790d in USER32!GetCursorPos () from C:\Windows\syswow64\user32.dll
#3 0x72bffec0 in ?? ()
#4 0x011490bd in w32_msg_pump (msg_buf=0x72bfff28) at w32fns.c:2263
#5 0x011492fb in w32_msg_worker@4 (arg=0x0) at w32fns.c:2485
#6 0x74c033aa in KERNEL32!BaseCleanupAppcompatCacheSupport ()
from C:\Windows\syswow64\kernel32.dll
#7 0x72bfffd4 in ?? ()
#8 0x77109ef2 in ntdll!RtlpNtSetValueKey ()
from C:\Windows\SysWOW64\ntdll.dll
#9 0x00000000 in ?? ()

Thread 5 (Thread 12476.0x2e70):
#0 0x770f1f26 in ntdll!LdrQueryProcessModuleInformation ()
from C:\Windows\SysWOW64\ntdll.dll
#1 0x770f1f26 in ntdll!LdrQueryProcessModuleInformation ()
from C:\Windows\SysWOW64\ntdll.dll
#2 0x77123352 in ntdll!RtlCreateTagHeap () from 
C:\Windows\SysWOW64\ntdll.dll
#3 0x0000012c in ?? ()
#4 0x7183fedc in ?? ()
#5 0x74c033aa in KERNEL32!BaseCleanupAppcompatCacheSupport ()
from C:\Windows\syswow64\kernel32.dll
#6 0x7183ffd4 in ?? ()
#7 0x77109ef2 in ntdll!RtlpNtSetValueKey ()
from C:\Windows\SysWOW64\ntdll.dll
#8 0x00cb2ef8 in ?? ()
#9 0x77109ec5 in ntdll!RtlpNtSetValueKey ()
from C:\Windows\SysWOW64\ntdll.dll
#10 0x77123e45 in ntdll!RtlSidIsHigherLevel ()
from C:\Windows\SysWOW64\ntdll.dll
#11 0x00cb2ef8 in ?? ()
#12 0x00000000 in ?? ()

Thread 4 (Thread 12476.0x30a4):
#0 0x770f1f26 in ntdll!LdrQueryProcessModuleInformation ()
from C:\Windows\SysWOW64\ntdll.dll
#1 0x770f1f26 in ntdll!LdrQueryProcessModuleInformation ()
from C:\Windows\SysWOW64\ntdll.dll
#2 0x77123352 in ntdll!RtlCreateTagHeap () from 
C:\Windows\SysWOW64\ntdll.dll
#3 0x0000013c in ?? ()
#4 0x7203fedc in ?? ()
#5 0x74c033aa in KERNEL32!BaseCleanupAppcompatCacheSupport ()
from C:\Windows\syswow64\kernel32.dll
#6 0x7203ffd4 in ?? ()
#7 0x77109ef2 in ntdll!RtlpNtSetValueKey ()
from C:\Windows\SysWOW64\ntdll.dll
#8 0x00cb2ef8 in ?? ()
#9 0x77109ec5 in ntdll!RtlpNtSetValueKey ()
from C:\Windows\SysWOW64\ntdll.dll
#10 0x77123e45 in ntdll!RtlSidIsHigherLevel ()
from C:\Windows\SysWOW64\ntdll.dll
#11 0x00cb2ef8 in ?? ()
#12 0x00000000 in ?? ()

Thread 3 (Thread 12476.0x1a74):
#0 0x770f1f26 in ntdll!LdrQueryProcessModuleInformation ()
from C:\Windows\SysWOW64\ntdll.dll
#1 0x770f1f26 in ntdll!LdrQueryProcessModuleInformation ()
from C:\Windows\SysWOW64\ntdll.dll
#2 0x77123352 in ntdll!RtlCreateTagHeap () from 
C:\Windows\SysWOW64\ntdll.dll
#3 0x0000017c in ?? ()
#4 0x7103fedc in ?? ()
#5 0x74c033aa in KERNEL32!BaseCleanupAppcompatCacheSupport ()
from C:\Windows\syswow64\kernel32.dll
#6 0x7103ffd4 in ?? ()
#7 0x77109ef2 in ntdll!RtlpNtSetValueKey ()
from C:\Windows\SysWOW64\ntdll.dll
#8 0x00cb3b88 in ?? ()
#9 0x77109ec5 in ntdll!RtlpNtSetValueKey ()
from C:\Windows\SysWOW64\ntdll.dll
#10 0x77123e45 in ntdll!RtlSidIsHigherLevel ()
from C:\Windows\SysWOW64\ntdll.dll
#11 0x00cb3b88 in ?? ()
#12 0x00000000 in ?? ()

Thread 2 (Thread 12476.0x2d54):
#0 0x770f013d in ntdll!RtlEnableEarlyCriticalSectionEventCreation ()
from C:\Windows\SysWOW64\ntdll.dll
#1 0x770f013d in ntdll!RtlEnableEarlyCriticalSectionEventCreation ()
from C:\Windows\SysWOW64\ntdll.dll
#2 0x77122f51 in ntdll!RtlWeaklyEnumerateEntryHashTable ()
from C:\Windows\SysWOW64\ntdll.dll
#3 0x00000003 in ?? ()
#4 0x00c61820 in ?? ()
#5 0x74c033aa in KERNEL32!BaseCleanupAppcompatCacheSupport ()
from C:\Windows\syswow64\kernel32.dll
#6 0x7083ffd4 in ?? ()
#7 0x77109ef2 in ntdll!RtlpNtSetValueKey ()
from C:\Windows\SysWOW64\ntdll.dll
#8 0x00c617f0 in ?? ()
#9 0x77109ec5 in ntdll!RtlpNtSetValueKey ()
from C:\Windows\SysWOW64\ntdll.dll
#10 0x77122e25 in ntdll!RtlWeaklyEnumerateEntryHashTable ()
from C:\Windows\SysWOW64\ntdll.dll
#11 0x00c617f0 in ?? ()
#12 0x00000000 in ?? ()

Thread 1 (Thread 12476.0x1db0):
#0 0x770f0542 in ntdll!RtlInitOutOfProcessMemoryStream ()
from C:\Windows\SysWOW64\ntdll.dll
#1 0x770f0542 in ntdll!RtlInitOutOfProcessMemoryStream ()
from C:\Windows\SysWOW64\ntdll.dll
#2 0x748775df in RPCRT4!NdrConformantVaryingArrayMarshall ()
from C:\Windows\syswow64\rpcrt4.dll
#3 0x40020000 in ?? ()
#4 0x00caeff8 in ?? ()
#5 0x74877a7f in RPCRT4!NdrConformantVaryingArrayMarshall ()
from C:\Windows\syswow64\rpcrt4.dll
#6 0x00caeff8 in ?? ()
#7 0x74877982 in RPCRT4!NdrConformantVaryingArrayMarshall ()
from C:\Windows\syswow64\rpcrt4.dll
#8 0x00cc7e98 in ?? ()
#9 0x74880071 in RPCRT4!I_RpcEnableWmiTrace ()
from C:\Windows\syswow64\rpcrt4.dll
#10 0x0088d890 in ?? ()
#11 0x74877391 in RPCRT4!NdrConformantVaryingArrayMarshall ()
from C:\Windows\syswow64\rpcrt4.dll
#12 0x0088d8bc in ?? ()
#13 0x7487804b in UuidCreateNil () from C:\Windows\syswow64\rpcrt4.dll
#14 0x7487801a in UuidCreateNil () from C:\Windows\syswow64\rpcrt4.dll
#15 0x75540d3e in SECHOST!LsaLookupGetDomainInfo ()
from C:\Windows\SysWOW64\sechost.dll
#16 0x755345e8 in ?? () from C:\Windows\SysWOW64\sechost.dll
#17 0x75540966 in SECHOST!LsaLookupTranslateNames ()
from C:\Windows\SysWOW64\sechost.dll
#18 0x75540a4c in SECHOST!LsaLookupTranslateSids ()
from C:\Windows\SysWOW64\sechost.dll
#19 0x7554030b in SECHOST!LookupAccountNameLocalW ()
from C:\Windows\SysWOW64\sechost.dll
#20 0x7554050c in SECHOST!LookupAccountSidLocalA ()
from C:\Windows\SysWOW64\sechost.dll
#21 0x76771e1b in LookupAccountSidW () from C:\Windows\syswow64\advapi32.dll
#22 0x010572d7 in lookup_account_sid (lpSystemName=0x0, Sid=0xcba790,
Name=0x88e2af "wéÜ‚t \002", cbName=0x88e2a8,
DomainName=0x88dea8 "<Þ\210", cbDomainName=0x88dea4, peUse=0x88e3b0)
at w32.c:495
#23 0x0105b343 in get_name_and_id (psd=0xcba760,
fname=0x88e450 "c:\\emacs-24.2.50\\info\\", id=0x88e6d4, nm=0x88e7f4 "",
what=2) at w32.c:3437
#24 0x0105b43c in get_file_owner_and_group (psd=0xcba760,
fname=0x88e450 "c:\\emacs-24.2.50\\info\\", st=0x88e6c0) at w32.c:3467
#25 0x0105b91c in stat_worker (path=0x164a5c2 "\\emacs-24.2.50\\info\\",
buf=0x88e6c0, follow_symlinks=1) at w32.c:3689
#26 0x0105bf49 in stat (path=0x367e1bc "c:/emacs-24.2.50/info/", 
buf=0x88e6c0)
at w32.c:3865
#27 0x01067a18 in Ffile_exists_p (filename=60362113) at fileio.c:2506
#28 0x01034973 in eval_sub (form=20511686) at eval.c:2157
#29 0x01030734 in Fcond (args=20511670) at eval.c:343
#30 0x0103453b in eval_sub (form=20511662) at eval.c:2105
#31 0x0103087a in Fprogn (args=20511654) at eval.c:369
#32 0x01031829 in FletX (args=20511486) at eval.c:853
#33 0x0103453b in eval_sub (form=20511478) at eval.c:2105
#34 0x0103087a in Fprogn (args=20511470) at eval.c:369
#35 0x010306fe in Fif (args=20511438) at eval.c:320
#36 0x0103453b in eval_sub (form=20511430) at eval.c:2105
#37 0x0103087a in Fprogn (args=20511422) at eval.c:369
#38 0x01031829 in FletX (args=20510430) at eval.c:853
#39 0x0103453b in eval_sub (form=20510422) at eval.c:2105
#40 0x010340a8 in Feval (form=20510422, lexical=56346650) at eval.c:2022
#41 0x0103670a in Ffuncall (nargs=2, args=0x88f0cc) at eval.c:2799
#42 0x010e0e77 in exec_byte_code (bytestr=20157409, vector=20157461,
maxdepth=20, args_template=56346650, nargs=0, args=0x0) at bytecode.c:899
#43 0x01037624 in funcall_lambda (fun=20157381, nargs=1, 
arg_vector=0x35bc81a)
at eval.c:3028
#44 0x01036abd in Ffuncall (nargs=2, args=0x88f3c8) at eval.c:2845
#45 0x01035e61 in call1 (fn=58045562, arg1=58471714) at eval.c:2590
#46 0x0107bf8c in mapcar1 (leni=16, vals=0x0, fn=58045562, seq=58091126)
at fns.c:2318
#47 0x0107c477 in Fmapc (function=58045562, sequence=58091126) at fns.c:2407
#48 0x0103670a in Ffuncall (nargs=3, args=0x88f524) at eval.c:2799
#49 0x010e0e77 in exec_byte_code (bytestr=20428473, vector=20429309,
maxdepth=72, args_template=0, nargs=0, args=0x88f85c) at bytecode.c:899
#50 0x010371c9 in funcall_lambda (fun=20428445, nargs=0, arg_vector=0x0)
at eval.c:2962
#51 0x01036abd in Ffuncall (nargs=1, args=0x88f858) at eval.c:2845
#52 0x010e0e77 in exec_byte_code (bytestr=20426345, vector=20426573,
maxdepth=32, args_template=0, nargs=0, args=0x88fac0) at bytecode.c:899
#53 0x010371c9 in funcall_lambda (fun=20426317, nargs=0, arg_vector=0x0)
at eval.c:2962
#54 0x01036dfe in apply_lambda (fun=20426317, args=56346650) at eval.c:2905
#55 0x01034dd4 in eval_sub (form=58030934) at eval.c:2202
#56 0x010340a8 in Feval (form=58030934, lexical=56346650) at eval.c:2022
#57 0x010056f7 in top_level_2 () at keyboard.c:1191
#58 0x0103269f in internal_condition_case (bfun=0x10056da <top_level_2>,
handlers=56397234, hfun=0x100526a <cmd_error>) at eval.c:1308
#59 0x0100572b in top_level_1 (ignore=56346650) at keyboard.c:1199
#60 0x010320bb in internal_catch (tag=56387090, func=0x10056f9 
<top_level_1>,
arg=56346650) at eval.c:1069
#61 0x0100565f in command_loop () at keyboard.c:1154
#62 0x01004c27 in recursive_edit_1 () at keyboard.c:782
#63 0x01004f54 in Frecursive_edit () at keyboard.c:846
#64 0x01002b68 in main (argc=1, argv=0xc52c18) at emacs.c:1655
--------------------------------

Please let me know if you need additional debug info. Thanks.