I've an odd problem building the emacs 22.1 binary without X11 support. The compiling works without any problems. But in a late stage of the build process the new emacs binary is called in batch mode to compile some of the lisp files of the distribution. There the process hangs.
I checked the new binary. It ever hangs and uses 100%CPU when started. I've tried to debug it with gdb without success: % gdb emacs GNU gdb 6.5.50.20060706-cvs (cygwin-special) Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-cygwin"... DISPLAY = 127.0.0.1:0.0 TERM = xterm Breakpoint 1 at 0x20056bf6: file emacs.c, line 431. Breakpoint 2 at 0x2006eecf: file sysdep.c, line 1385. (gdb) break main Breakpoint 3 at 0x20057b0e: file emacs.c, line 804. (gdb) run Starting program: /usr/src/emacs-22.1/src/emacs.exe -geometry 80x40+0+0 Loaded symbols for /cygdrive/c/WINDOWS/system32/ntdll.dll Loaded symbols for /cygdrive/c/WINDOWS/system32/kernel32.dll Loaded symbols for /usr/bin/cygncurses-8.dll Loaded symbols for /usr/bin/cygwin1.dll Loaded symbols for /cygdrive/c/WINDOWS/system32/advapi32.dll Loaded symbols for /cygdrive/c/WINDOWS/system32/rpcrt4.dll Here it hangs and never reaches main. :( Then i tried strace: ********************************************** Program name: C:\cygwin\usr\src\emacs-22.1\src\emacs.exe (pid 1016, ppid 1) App version: 1005.24, api: 0.156 DLL version: 1005.24, api: 0.156 DLL build: 2007-01-31 10:57 OS version: Windows NT-5.1 Heap size: 402653184 Date/Time: 2007-06-26 22:47:56 ********************************************** 61 458 [main] emacs 1016 set_myself: myself->dwProcessId 1016 56 514 [main] emacs 1016 time: 1182890876 = time (0) 734 1248 [main] emacs 1016 environ_init: GetEnvironmentStrings returned 0x2452E0 - "=C:=C:\Cygwin\bin" 135 1383 [main] emacs 1016 environ_init: 0x20464000: !C:=C:\Cygwin\bin 113 1496 [main] emacs 1016 environ_init: 0x203D8240: ALLUSERSPROFILE=C:\Dokumente und Einstellungen\All Users 98 1594 [main] emacs 1016 environ_init: 0x20322A00: APPDATA=C:\Dokumente und Einstellungen\Administrator\Anwendungsdaten 388 1982 [main] emacs 1016 environ_init: 0x203D8440: APR_ICONV_PATH=C:\Programme\Subversion\iconv 104 2086 [main] emacs 1016 environ_init: 0x203D8B00: CLASSPATH=.;C:\Programme\Java\jre1.5.0_11\lib\ext\QTJava.zip 100 2186 [main] emacs 1016 environ_init: 0x204642E0: CLIENTNAME=Console ......... something snipped out here 95 139757 [main] emacs 1016 pinfo_init: Set nice to 0 54 139811 [main] emacs 1016 pinfo_init: pid 1016, pgid 1016 1035 140846 [main] emacs 1016 set_privilege: 0 = set_privilege ((token 734) SeRestorePrivilege, 1) 934 141780 [main] emacs 1016 set_privilege: 0 = set_privilege ((token 734) SeBackupPrivilege, 1) 110 141890 [main] emacs 1016 set_privilege: 1 = set_privilege ((token 734) SeChangeNotifyPrivilege, 1) 152 142042 [main] emacs 1016 dtable::extend: size 32, fds 0x611676C0 90 142132 [main] emacs 1016 normalize_posix_path: src /etc/passwd 55 142187 [main] emacs 1016 normalize_posix_path: /etc/passwd = normalize_posix_path (/etc/passwd) 55 142242 [main] emacs 1016 mount_info::conv_to_win32_path: conv_to_win32_path (/etc/passwd) 56 142298 [main] emacs 1016 set_flags: flags: binary (0x2) 51 142349 [main] emacs 1016 mount_info::conv_to_win32_path: src_path /etc/passwd, dst C:\cygwin\etc\passwd, flags 0xA, rc 0 119 142468 [main] emacs 1016 symlink_info::check: not a symlink 57 142525 [main] emacs 1016 symlink_info::check: 0 = symlink.check (C:\cygwin\etc\passwd, 0x22C610) (0xA) 59 142584 [main] emacs 1016 path_conv::check: this->path(C:\cygwin\etc\passwd), has_acls(1) 188 142772 [main] emacs 1016 etc::test_file_change: FindFirstFile succeeded And here it hangs. Every try to cancel it using Ctrl-C shows --- Process 1016, exception 40010005 at 7C87534D 284186670 284329442 [unknown (0xF34)] emacs 1016 _cygtls::remove: wait 0x0 65 284329507 [unknown (0xF34)] emacs 1016 _cygtls::remove: removed 0x1865CE64 element 1 What's wrong here? A bug in cygwin1.dll? Or cygncurses-8.dll? Thx for any help, Steffen PS: Building emacs with X11 support works fine. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/