unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: dhruva <dhruva@ymail.com>
To: Emacs Development <emacs-devel@gnu.org>
Subject: Emacs from HEAD hangs on M$ (built with MinGW)
Date: Thu, 31 Jul 2008 20:01:28 +0530 (IST)	[thread overview]
Message-ID: <104458.16219.qm@web95014.mail.in2.yahoo.com> (raw)

Hi,
 I just did a 'make bootstrap', emacs freezes but consumes 45% CPU and becomes non-responsive. I have build using GCC (MinGW) and running it on WXP.

Here is the back trace:
Thread 3 (thread 3692.0x1234):
#0  0x7c810659 in KERNEL32!CreateThread () from C:\WINDOWS\system32\kernel32.dll

Thread 2 (thread 3692.0x90c):
#0  0x7c90eb94 in ntdll!LdrAccessResource () from C:\WINDOWS\system32\ntdll.dll
#1  0x7e4191be in USER32!GetProcessWindowStation () from C:\WINDOWS\system32\user32.dll
#2  0x7e42e042 in USER32!GetMessageA () from C:\WINDOWS\system32\user32.dll
#3  0x011c71ee in w32_msg_pump (msg_buf=0x20dbff5c) at w32fns.c:2481
#4  0x011c73ad in w32_msg_worker (arg=0x0) at w32fns.c:2700
#5  0x7c80b683 in KERNEL32!GetModuleFileNameA () from C:\WINDOWS\system32\kernel32.dll
#6  0x00000000 in ?? ()

Thread 1 (thread 3692.0x15d4):
#0  0x7c90eb94 in ntdll!LdrAccessResource () from C:\WINDOWS\system32\ntdll.dll
#1  0x7c90e9ab in ntdll!ZwWaitForMultipleObjects () from C:\WINDOWS\system32\ntdll.dll
#2  0x7c8094e2 in KERNEL32!CreateFileMappingA () from C:\WINDOWS\system32\kernel32.dll
#3  0x7e4195f9 in USER32!GetLastInputInfo () from C:\WINDOWS\system32\user32.dll
#4  0x7e4196a8 in USER32!MsgWaitForMultipleObjects () from C:\WINDOWS\system32\user32.dll
#5  0x01089571 in sys_select (nfds=1, rfds=0x82f5a8, wfds=0x0, efds=0x0, timeout=0x82f5a0) at w32proc.c:1270
#6  0x01083703 in wait_reading_process_output (time_limit=0, microsecs=0, read_kbd=-1, do_display=1, wait_for_cell=44644353, wait_proc=0x0, just_wait_proc=0) at process.c:4806
#7  0x0100b58a in kbd_buffer_get_event (kbp=0x82f720, used_mouse_menu=0x82fa44, end_time=0x0) at keyboard.c:4041
#8  0x01009878 in read_char (commandflag=1, nmaps=3, maps=0x82f8a0, prev_event=44644353, used_mouse_menu=0x82fa44, end_time=0x0) at keyboard.c:3004
#9  0x01012c2a in read_key_sequence (keybuf=0x82fc58, bufsize=30, prompt=44644353, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9349
#10 0x010063fa in command_loop_1 () at keyboard.c:1620
#11 0x01021a56 in internal_condition_case (bfun=0x10060cf <command_loop_1>, handlers=44708081, hfun=0x1005acc <cmd_error>) at eval.c:1511
#12 0x01005e18 in command_loop_2 () at keyboard.c:1338
#13 0x01021566 in internal_catch (tag=44704153, func=0x1005df8 <command_loop_2>, arg=44644353) at eval.c:1247
#14 0x01005dcf in command_loop () at keyboard.c:1317
#15 0x010056d2 in recursive_edit_1 () at keyboard.c:942
#16 0x01005840 in Frecursive_edit () at keyboard.c:1004
#17 0x010027dc in main (argc=2, argv=0xa343a8) at emacs.c:1687
#0  0x7c810659 in KERNEL32!CreateThread () from C:\WINDOWS\system32\kernel32.dll

I continue, emacs window is white washed, I type C-g to get back initial screen and interrupt again to take a trace:
Thread 4 (thread 3692.0x16e8):
#0  0x7c810659 in KERNEL32!CreateThread () from C:\WINDOWS\system32\kernel32.dll
Cannot access memory at address 0x3

Thread 2 (thread 3692.0x90c):
#0  0x7c90eb94 in ntdll!LdrAccessResource () from C:\WINDOWS\system32\ntdll.dll
#1  0x7e4191be in USER32!GetProcessWindowStation () from C:\WINDOWS\system32\user32.dll
#2  0x7e42e042 in USER32!GetMessageA () from C:\WINDOWS\system32\user32.dll
#3  0x011c71ee in w32_msg_pump (msg_buf=0x20dbff5c) at w32fns.c:2481
#4  0x011c73ad in w32_msg_worker (arg=0x0) at w32fns.c:2700
#5  0x7c80b683 in KERNEL32!GetModuleFileNameA () from C:\WINDOWS\system32\kernel32.dll
#6  0x00000000 in ?? ()

Thread 1 (thread 3692.0x15d4):
#0  wait_reading_process_output (time_limit=0, microsecs=0, read_kbd=-1, do_display=1, wait_for_cell=44644353, wait_proc=0x0, just_wait_proc=0) at process.c:4830
#1  0x0100b58a in kbd_buffer_get_event (kbp=0x82f720, used_mouse_menu=0x82fa44, end_time=0x0) at keyboard.c:4041
#2  0x01009878 in read_char (commandflag=1, nmaps=3, maps=0x82f8a0, prev_event=44644353, used_mouse_menu=0x82fa44, end_time=0x0) at keyboard.c:3004
#3  0x01012c2a in read_key_sequence (keybuf=0x82fc58, bufsize=30, prompt=44644353, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9349
#4  0x010063fa in command_loop_1 () at keyboard.c:1620
#5  0x01021a56 in internal_condition_case (bfun=0x10060cf <command_loop_1>, handlers=44708081, hfun=0x1005acc <cmd_error>) at eval.c:1511
#6  0x01005e18 in command_loop_2 () at keyboard.c:1338
#7  0x01021566 in internal_catch (tag=44704153, func=0x1005df8 <command_loop_2>, arg=44644353) at eval.c:1247
#8  0x01005dcf in command_loop () at keyboard.c:1317
#9  0x010056d2 in recursive_edit_1 () at keyboard.c:942
#10 0x01005840 in Frecursive_edit () at keyboard.c:1004
#11 0x010027dc in main (argc=2, argv=0xa343a8) at emacs.c:1687
#0  0x7c810659 in KERNEL32!CreateThread () from C:\WINDOWS\system32\kernel32.dll

I feel the keyboard is not being read except for C-g sequence. I was building emacs with MSVC 2003 till yesterday and had to upgrade to MSVC 8 with which emacs does not build. I therefore decided to use GCC (MinGW) to build and started seeing these issues today (may not be related to GCC). I can switch back to MSVC 2003 as I have removed it!

-dhruva



      Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/





             reply	other threads:[~2008-07-31 14:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-31 14:31 dhruva [this message]
2008-07-31 15:02 ` Emacs from HEAD hangs on M$ (built with MinGW) Lennart Borgman (gmail)
2008-07-31 15:47   ` Jason Rumney
2008-07-31 16:23     ` Lennart Borgman (gmail)
2008-07-31 18:11     ` Juanma Barranquero
2008-07-31 19:44       ` Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=104458.16219.qm@web95014.mail.in2.yahoo.com \
    --to=dhruva@ymail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).