I should have given two more bits of info: 1) Reverting to 1.7.17 cures the problem; 2) Loading cygwin1.dbg for the 2013-03-01 snapshot shows the following for psql:
(gdb) bt #0 0x003d0000 in ?? () #1 0x610fcf7c in pthread::init_mainthread () at /netrel/src/cygwin-snapshot-20130301-1/winsup/cygwin/thread.cc:336 #2 0x61006cf5 in dll_crt0_1 () at /netrel/src/cygwin-snapshot-20130301-1/winsup/cygwin/dcrt0.cc:861 #3 0x6100537d in _cygtls::call2 (this=<optimized out>, func=0x61006c50 <dll_crt0_1(void*)>, arg=0x0, buf=0x6100551b <_cygtls::call(unsigned long (*)(void*, void*), void*)+91>) at /netrel/src/cygwin-snapshot-20130301-1/winsup/cygwin/cygtls.cc:99 #4 0x0028ff48 in ?? () #5 0x004330c2 in ?? () #6 0x00401015 in ?? () #7 0x752633aa in KERNEL32!BaseCleanupAppcompatCacheSupport () from /c/Windows/syswow64/kernel32.dll #8 0x0028ffd4 in ?? () #9 0x77929ef2 in ntdll!RtlpNtSetValueKey () from /c/Windows/system32/ntdll.dll #10 0xfffde000 in ?? () #11 0x77929ec5 in ntdll!RtlpNtSetValueKey () from /c/Windows/system32/ntdll.dll #12 0x00401000 in ?? () #13 0x00000000 in ?? () and the following for xemacs: #0 0x003d0000 in ?? () #1 0x610fcf7c in pthread::init_mainthread () at /netrel/src/cygwin-snapshot-20130301-1/winsup/cygwin/thread.cc:336 #2 0x61006cf5 in dll_crt0_1 () at /netrel/src/cygwin-snapshot-20130301-1/winsup/cygwin/dcrt0.cc:861 #3 0x6100537d in _cygtls::call2 (this=<optimized out>, func=0x61006c50 <dll_crt0_1(void*)>, arg=0x0, buf=0x6100551b <_cygtls::call(unsigned long (*)(void*, void*), void*)+91>) at /netrel/src/cygwin-snapshot-20130301-1/winsup/cygwin/cygtls.cc:99 #4 0x0028ff48 in ?? () #5 0x00641572 in cygwin_crt0 (f=0x458b7f <main>) at /usr/src/debug/cygwin-1.7.17-1/winsup/cygwin/lib/cygwin_crt0.c:22 #6 0x00401015 in mainCRTStartup () at /usr/src/debug/cygwin-1.7.17-1/winsup/cygwin/crt0.c:29 ht -- Henry S. Thompson, School of Informatics, University of Edinburgh 10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440 Fax: (44) 131 650-4587, e-mail: h...@inf.ed.ac.uk URL: http://www.ltg.ed.ac.uk/~ht/ [mail from me _always_ has a .sig like this -- mail without it is forged spam] -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple