From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.60; emacs hangs on WinXP with --disable-font-backend, and backtrace Date: Fri, 09 May 2008 10:22:11 +0300 Message-ID: References: <4821EE06.9040409@gmail.com> <48225056.7030100@gmail.com> <48231C03.2050201@gmail.com> <482322A9.6080109@gmail.com> <4823A345.8090601@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1210320584 5963 80.91.229.12 (9 May 2008 08:09:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 May 2008 08:09:44 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: "Kyle M. Lee" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 09 10:10:18 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JuNgH-0002SI-Dy for ged-emacs-devel@m.gmane.org; Fri, 09 May 2008 10:10:17 +0200 Original-Received: from localhost ([127.0.0.1]:42383 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JuNfY-0007Xs-PW for ged-emacs-devel@m.gmane.org; Fri, 09 May 2008 04:09:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JuNfH-0007Pm-IU for emacs-devel@gnu.org; Fri, 09 May 2008 04:09:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JuNf8-0007H5-HV for emacs-devel@gnu.org; Fri, 09 May 2008 04:09:06 -0400 Original-Received: from [199.232.76.173] (port=38331 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JuNf7-0007G7-CF for emacs-devel@gnu.org; Fri, 09 May 2008 04:09:05 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:38230) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JuNf6-00031p-GC for emacs-devel@gnu.org; Fri, 09 May 2008 04:09:04 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]:53861) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JuMw7-00019b-C9 for emacs-pretest-bug@gnu.org; Fri, 09 May 2008 03:22:35 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JuMwl-0007Is-2W for emacs-pretest-bug@gnu.org; Fri, 09 May 2008 03:23:19 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:56430) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JuMwk-0007Ih-Hh for emacs-pretest-bug@gnu.org; Fri, 09 May 2008 03:23:14 -0400 Original-Received: from mtaout4.012.net.il ([84.95.2.10]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JuMwj-0000Zr-Sn for emacs-pretest-bug@gnu.org; Fri, 09 May 2008 03:23:14 -0400 Original-Received: from HOME-C4E4A596F7 ([83.130.255.47]) by i_mtaout4.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K0L00FY4BT08Q80@i_mtaout4.012.net.il> for emacs-pretest-bug@gnu.org; Fri, 09 May 2008 10:36:37 +0300 (IDT) In-reply-to: <4823A345.8090601@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-kernel: by mx20.gnu.org: Solaris 9.1 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:96863 gmane.emacs.pretest.bugs:22230 Archived-At: > Date: Fri, 09 May 2008 09:05:09 +0800 > From: "Kyle M. Lee" > CC: emacs-pretest-bug@gnu.org > > (gdb) r --disable-font-backend > Starting program: e:\emacs_gcc_std_install\bin\emacs.exe --disable-font-backend > [New thread 3376.0x30c] > [New thread 3376.0x388] > [New thread 3376.0xd80] > [New thread 3376.0xa10] > [Switching to thread 3376.0xa10] > Quit (expect signal SIGINT when the program is resumed) > (gdb) bt There's a strange anomaly here: when I do the same, I only see 3 threads, not 4. And 3 is what I'd expect: there are 2 threads in a normally running Emacs (on Windows): one thread that reads input, the other that runs the normal Emacs code. The third thread is created by Windows when you type C-c into the GDB window, because that's how Windows handles SIGINT. Please tell me when did you see the third thread, announced by this line in GDB output: > [New thread 3376.0xd80] Was it when you typed C-c, or before? Also, are you running GDB from a Command Prompt window, or in some other manner? > #0 0x7c810659 in KERNEL32!CreateThread () > from C:\WINDOWS\system32\kernel32.dll > Cannot access memory at address 0x3 > (gdb) xbacktrace > (gdb) backtrace > #0 0x7c810659 in KERNEL32!CreateThread () > from C:\WINDOWS\system32\kernel32.dll > Cannot access memory at address 0x3 > (gdb) c > Continuing. > [New thread 3376.0xc10] > [Switching to thread 3376.0xc10] > 0x7c810659 in KERNEL32!CreateThread () from C:\WINDOWS\system32\kernel32.dll > Quit (expect signal SIGINT when the program is resumed) > (gdb) bt > #0 0x7c810659 in KERNEL32!CreateThread () > from C:\WINDOWS\system32\kernel32.dll > #1 0x90909090 in ?? () > #2 0x001165b8 in ?? () > #3 0x0300ba00 in ?? () > #4 0x12ff7ffe in ?? () > #5 0x900004c2 in ?? () > #6 0x90909090 in ?? () Oops, sorry: I forgot to tell you one important detail. After you type C-c into the GDB window, GDB delivers SIGINT to Emacs, and that causes Windows to start another thread (see the "New thread" message above). When a new thread is started, GDB automatically switches to that thread. So after typing C-c you are in the thread created by Windows to handle SIGINT. But that thread is not the one whose backtrace we need, which is why you see meaningless frames. To see an interesting thread, type "thread 1" before "bt". The first thread in the running Emacs is the one where most processing happens. (The GDB command "info threads" will show you all the threads GDB knows about.)