From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Fabrice Niessen" Newsgroups: gmane.emacs.bugs Subject: bug#12832: 24.3.50; Emacs lockup when idle Date: Tue, 13 Nov 2012 14:13:19 +0100 Organization: Mission Critical IT Message-ID: <80r4nxsl1s.fsf@somewhere.org> References: <509BAC2E.2000702@gmail.com> <838vac12kn.fsf@gnu.org> <509BFAE7.8020205@gmail.com> <83liebyu9t.fsf@gnu.org> <509CDF7F.2000409@gmail.com> <83ip9fyqmy.fsf@gnu.org> <83390izlxm.fsf@gnu.org> <509D4DAC.1060901@gmail.com> <83pq3hvet0.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1352812484 23796 80.91.229.3 (13 Nov 2012 13:14:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Nov 2012 13:14:44 +0000 (UTC) Cc: 12832-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org, Andy Moreton To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Tue Nov 13 14:14:51 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 1TYGKI-00012m-Sn for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Nov 2012 14:14:51 +0100 Original-Received: from localhost ([::1]:40458 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYGK9-0007vR-8K for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Nov 2012 08:14:41 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYGK3-0007uG-KA for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 13 Nov 2012 08:14:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYGK0-0000zZ-FQ for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 13 Nov 2012 08:14:35 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55896) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYGK0-0000zV-Bd for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 13 Nov 2012 08:14:32 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TYGKT-0005PN-TF for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 13 Nov 2012 08:15:01 -0500 X-Loop: help-debbugs-mXXj517/zsQ@public.gmane.org In-Reply-To: <509BAC2E.2000702-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Resent-From: "Fabrice Niessen" Original-Sender: debbugs-submit-bounces-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org Resent-CC: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org Resent-Date: Tue, 13 Nov 2012 13:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs-mXXj517/zsQ@public.gmane.org X-GNU-PR-Message: followup 12832 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: Original-Received: via spool by 12832-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org id=B12832.135281244620721 (code B ref 12832); Tue, 13 Nov 2012 13:15:01 +0000 Original-Received: (at 12832) by debbugs.gnu.org; 13 Nov 2012 13:14:06 +0000 Original-Received: from localhost ([127.0.0.1]:37914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TYGJW-0005O6-Qi for submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Tue, 13 Nov 2012 08:14:06 -0500 Original-Received: from 81-188-7-133.sdsl.easynet.be ([81.188.7.133]:37468 helo=mail.missioncriticalit.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TYGJK-0005NN-2j for 12832-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Tue, 13 Nov 2012 08:14:01 -0500 Original-Received: from MEDIACENTER. (mediacenter [10.10.10.51]) by mail.missioncriticalit.com (Postfix) with ESMTPSA id 14C1450118C; Tue, 13 Nov 2012 14:13:19 +0100 (CET) X-Archive: encrypt User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (windows-nt) X-Spam-Score: 1.8 (+) X-BeenThere: debbugs-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: -0.9 (/) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs-mXXj517/zsQ@public.gmane.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-mXXj517/zsQ@public.gmane.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.bugs:66863 Archived-At: Dear Eli, Eli Zaretskii wrote: > It looks like Fabrice just saw a very similar, if not identical, > lockup: > >> Thread 8 (Thread 6696.0x20fc): >> #0 0x7c91120f in ntdll!DbgUiConnectToDbg () from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #1 0x7c962119 in ntdll!KiIntSystemCall () from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #2 0x00000005 in ?? () >> #3 0x00000004 in ?? () >> #4 0x00000001 in ?? () >> #5 0x5adcffd0 in ?? () >> #6 0x00000000 in ?? () >> >> Lisp Backtrace: >> "redisplay_internal (C function)" (0x167d33c) >> >> Thread 7 (Thread 6696.0x4b8): >> #0 0x7c91e514 in ntdll!LdrAccessResource () from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #1 0x7c91df5a in ntdll!ZwWaitForSingleObject () from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #2 0x7199402b in ?? () from /cygdrive/c/WINDOWS/System32/mswsock.dll >> #3 0x719957c9 in ?? () from /cygdrive/c/WINDOWS/System32/mswsock.dll >> #4 0x719f67de in WSACancelAsyncRequest () from /cygdrive/c/WINDOWS/system32/Ws2_32.dll >> #5 0x0108d925 in _sys_read_ahead (fd=4) at w32.c:6079 >> #6 0x01033127 in reader_thread (arg=0x167dc98) at w32proc.c:838 >> #7 0x7c80b729 in KERNEL32!GetModuleFileNameA () from /cygdrive/c/WINDOWS/system32/kernel32.dll >> #8 0x00000000 in ?? () >> >> Lisp Backtrace: >> "redisplay_internal (C function)" (0x167d33c) >> >> Thread 6 (Thread 6696.0x1114): >> #0 0x7c91e514 in ntdll!LdrAccessResource () from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #1 0x7c91d9da in ntdll!ZwReadFile () from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #2 0x7c801879 in ReadFile () from /cygdrive/c/WINDOWS/system32/kernel32.dll >> #3 0x000005fc in ?? () >> #4 0x00000000 in ?? () >> >> Lisp Backtrace: >> "redisplay_internal (C function)" (0x167d33c) >> >> Thread 5 (Thread 6696.0x2344): >> #0 0x7c91e514 in ntdll!LdrAccessResource () from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #1 0x7c91df5a in ntdll!ZwWaitForSingleObject () from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #2 0x7199402b in ?? () from /cygdrive/c/WINDOWS/System32/mswsock.dll >> #3 0x719957c9 in ?? () from /cygdrive/c/WINDOWS/System32/mswsock.dll >> #4 0x719f67de in WSACancelAsyncRequest () from /cygdrive/c/WINDOWS/system32/Ws2_32.dll >> #5 0x0108d925 in _sys_read_ahead (fd=5) at w32.c:6079 >> #6 0x01033127 in reader_thread (arg=0x167dc40) at w32proc.c:838 >> #7 0x7c80b729 in KERNEL32!GetModuleFileNameA () from /cygdrive/c/WINDOWS/system32/kernel32.dll >> #8 0x00000000 in ?? () >> >> Lisp Backtrace: >> "redisplay_internal (C function)" (0x167d33c) >> >> Thread 4 (Thread 6696.0x15e4): >> #0 0x7c91e514 in ntdll!LdrAccessResource () from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #1 0x7c91df5a in ntdll!ZwWaitForSingleObject () from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #2 0x7c8025db in WaitForSingleObjectEx () from /cygdrive/c/WINDOWS/system32/kernel32.dll >> #3 0x0000060c in ?? () >> #4 0x00000000 in ?? () >> >> Lisp Backtrace: >> "redisplay_internal (C function)" (0x167d33c) >> >> Thread 3 (Thread 6696.0xc28): >> #0 0x7c91e514 in ntdll!LdrAccessResource () from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #1 0x7c91df5a in ntdll!ZwWaitForSingleObject () from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #2 0x7c929b23 in ntdll!RtlpWaitForCriticalSection () from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #3 0x7c911046 in ntdll!RtlEnumerateGenericTableLikeADirectory () from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #4 0x006811a0 in ?? () >> #5 0x012e871e in post_msg (lpmsg=0x5b8cfa94) at w32xfns.c:279 >> #6 0x01147b48 in my_post_msg (wmsg=0x5b8cfa94, hwnd=0x2cec0092, msg=0, >> wParam=103, lParam=2228225) at w32fns.c:1942 >> #7 0x01148c58 in post_character_message (hwnd=0x2cec0092, msg=0, wParam=103, >> lParam=2228225, modifiers=67108864) at w32fns.c:2686 >> #8 0x01149a12 in w32_wnd_proc (hwnd=0x2cec0092, msg=258, wParam=103, lParam=2228225) at w32fns.c:3064 >> #9 0x7e398734 in USER32!GetDC () from /cygdrive/c/WINDOWS/system32/USER32.dll >> #10 0x2cec0092 in ?? () >> #11 0x00000102 in ?? () >> #12 0x00000067 in ?? () >> #13 0x00220001 in ?? () >> #14 0x01148c5a in post_character_message (hwnd=0x0, msg=1535966776, >> wParam=18123866, lParam=1535966820, modifiers=2117699606) >> at w32fns.c:2687 >> #15 0xdcbaabcd in ?? () >> #16 0x00000000 in ?? () >> >> Lisp Backtrace: >> "redisplay_internal (C function)" (0x167d33c) >> >> Thread 2 (Thread 6696.0x1788): >> #0 0x7c91e514 in ntdll!LdrAccessResource () from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #1 0x7c91d21a in ntdll!ZwDelayExecution () from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #2 0x7c8023f1 in SleepEx () from /cygdrive/c/WINDOWS/system32/kernel32.dll >> #3 0x00000000 in ?? () >> >> Lisp Backtrace: >> "redisplay_internal (C function)" (0x167d33c) >> >> Thread 1 (Thread 6696.0x4d0): >> #0 0x7c91e514 in ntdll!LdrAccessResource () from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #1 0x7e3eceba in USER32!SetInternalWindowPos () from /cygdrive/c/WINDOWS/system32/USER32.dll >> #2 0x7e3cf408 in USER32!SetMenu () from /cygdrive/c/WINDOWS/system32/USER32.dll >> #3 0x012c6395 in set_frame_menubar (f=0x3926840 >> <__register_frame_info+59926592>, first_time=false, deep_p=false) at >> w32menu.c:610 >> #4 0x01200075 in update_menu_bar (f=0x3926840 >> <__register_frame_info+59926592>, save_match_data=0, hooks_run=1) at >> xdisp.c:11327 >> #5 0x011ffa95 in prepare_menu_bars () at xdisp.c:11205 >> #6 0x012055fa in redisplay_internal () at xdisp.c:13081 >> #7 0x012034a1 in redisplay () at xdisp.c:12653 >> #8 0x0103b2a2 in read_char (commandflag=1, nmaps=3, maps=0x82f9b0, >> prev_event=57358362, used_mouse_menu=0x82fa83, end_time=0x0) >> at keyboard.c:2428 >> #9 0x0104eef4 in read_key_sequence (keybuf=0x82fc00, bufsize=30, prompt=57358362, dont_downcase_last=false, >> can_return_switch_frame=true, fix_current_buffer=true) at keyboard.c:9230 >> #10 0x010385c4 in command_loop_1 () at keyboard.c:1458 >> #11 0x01010e86 in internal_condition_case (bfun=0x10380de , >> handlers=57408946, hfun=0x10378fd ) >> at eval.c:1288 >> #12 0x01037d57 in command_loop_2 (ignore=57358362) at keyboard.c:1167 >> #13 0x010108e3 in internal_catch (tag=57398802, func=0x1037d33 , arg=57358362) at eval.c:1059 >> #14 0x01037d11 in command_loop () at keyboard.c:1146 >> #15 0x010372cb in recursive_edit_1 () at keyboard.c:778 >> #16 0x010375f8 in Frecursive_edit () at keyboard.c:842 >> #17 0x01002920 in main (argc=1, argv=0xa44480) at emacs.c:1552 >> >> Lisp Backtrace: >> "redisplay_internal (C function)" (0x167d33c) >> (gdb) >> (gdb) xbacktrace >> "redisplay_internal (C function)" (0x167d33c) > > This backtrace is more informative. I'm beginning to think that > there's some deadlock between threads that use a critical section, > because all of the threads are parked at the same interface: > ntdll!LdrAccessResource, and at least one of them waits for a critical > section: > >> Thread 3 (Thread 6696.0xc28): >> #0 0x7c91e514 in ntdll!LdrAccessResource () from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #1 0x7c91df5a in ntdll!ZwWaitForSingleObject () from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #2 0x7c929b23 in ntdll!RtlpWaitForCriticalSection () from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #3 0x7c911046 in ntdll!RtlEnumerateGenericTableLikeADirectory () from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #4 0x006811a0 in ?? () >> #5 0x012e871e in post_msg (lpmsg=0x5b8cfa94) at w32xfns.c:279 >> #6 0x01147b48 in my_post_msg (wmsg=0x5b8cfa94, hwnd=0x2cec0092, msg=0, >> wParam=103, lParam=2228225) at w32fns.c:1942 > > Fabrice, what bzr revision did you compile I did not compile it myself. I took a version compiled (on 22 October) by Dani Moncayo, downloaded from https://www.dropbox.com/sh/7jr3vbv9tm1zod0/jPuvfrJAe8. However, eval'ing emacs-bzr-version returns: "110618 monnier-CRDzTM1onBSWkKpYnGOUKhc95p6a78TbeXGMcDWol4xM7RDeeHvltMWNcNhuwuIV@public.gmane.org" > and with what version of GCC? No idea, sorry... Does his recipe (https://www.dropbox.com/sh/7jr3vbv9tm1zod0/qpjXONObVR/emacs-build-recipe.txt) give you valuable information? Best regards, Fabrice