XWin.exe crashes on Windows restart

2013-09-10 Thread Andreas Girgensohn
I start XWin.exe via a shortcut when logging into Windows 7 (64-bit).
Recently, I replaced my Cygwin installation with the 64-bit version.
Now, XWin.exe crashes (SIGSEGV) every time I restart or shutdown
Windows.

I produced a gdb backtrace by cancelling the restart quickly after the
problem occurred.  Additional files are attached.

(gdb) bt full
#0  0x0001004071ea in winMsgWindowProc (hwnd=optimized out,
message=optimized out,
wParam=optimized out, lParam=optimized out)
at /usr/src/debug/xorg-server-1.14.2-2/hw/xwin/winmsgwindow.c:58
pScreen = optimized out
hwnd = optimized out
message = 22
wParam = optimized out
lParam = optimized out
#1  0x77139bd1 in USER32!TranslateMessageEx ()
   from /cygdrive/c/Windows/system32/USER32.dll
No symbol table info available.
#2  0x050c in ?? ()
No symbol table info available.
#3  0x0001 in ?? ()
No symbol table info available.
#4  0x in ?? ()
No symbol table info available.

On a different note, when running gdb, I noticed that XWin.exe twice
receives a SIGSYS when starting.  That does not affect normal
operations.

Please let me know if you need additional information.

Andreas Girgensohn
C:\Users\andreasgtcsh
[andreasg@panoramix ...Users/andreasg]$ gdb --args /usr/bin/XWin -multiwindow
GNU gdb (GDB) 7.6.50.20130728-cvs (cygwin-special)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as x86_64-pc-cygwin.
Type show configuration for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type help.
Type apropos word to search for commands related to word.
..
Reading symbols from /usr/bin/XWin...Reading symbols from 
/usr/lib/debug/usr/bin/XWin.exe.dbg...done
.
done.
(gdb) r
Starting program: /usr/bin/XWin -multiwindow
[New Thread 3312.0xcf4]
[New Thread 3312.0xce8]
[New Thread 3312.0x10b0]
[New Thread 3312.0x10ac]
[New Thread 3312.0x10e0]
[New Thread 3312.0x128c]
[New Thread 3312.0x1288]
[New Thread 3312.0xe60]
[New Thread 3312.0xe5c]
[Thread 3312.0x10ac exited with code 0]
[Thread 3312.0x10e0 exited with code 0]
[Thread 3312.0x128c exited with code 0]
[Thread 3312.0x1288 exited with code 0]
[Thread 3312.0xe60 exited with code 0]
[New Thread 3312.0xe4c]
[New Thread 3312.0xe58]
[New Thread 3312.0xe50]

Program received signal SIGSYS, Bad system call.
CheckForShmSyscall () at /usr/src/debug/xorg-server-1.14.2-2/Xext/shm.c:188
188 if (shmid != -1) {
(gdb) where
#0  CheckForShmSyscall () at /usr/src/debug/xorg-server-1.14.2-2/Xext/shm.c:188
#1  ShmExtensionInit () at /usr/src/debug/xorg-server-1.14.2-2/Xext/shm.c:1257
#2  0x in ?? ()
(gdb)

Program received signal SIGSYS, Bad system call.
CheckForShmSyscall () at 
/usr/src/debug/xorg-server-1.14.2-2/Xext/xf86bigfont.c:118
118 if (shmid != -1) {
(gdb) where
#0  CheckForShmSyscall () at 
/usr/src/debug/xorg-server-1.14.2-2/Xext/xf86bigfont.c:118
#1  XFree86BigfontExtensionInit () at 
/usr/src/debug/xorg-server-1.14.2-2/Xext/xf86bigfont.c:714
#2  0x in ?? ()


(gdb) handle SIGSYS nostop
SignalStop  Print   Pass to program Description
SIGSYSNoYes Yes Bad system call
(gdb) r
Starting program: /usr/bin/XWin -multiwindow
[New Thread 6080.0x17c8]
[New Thread 6080.0x13e4]
[New Thread 6080.0x17dc]
[New Thread 6080.0x14f8]
[New Thread 6080.0x1584]
[New Thread 6080.0x17e8]
[New Thread 6080.0x17ec]
[New Thread 6080.0x1280]
[New Thread 6080.0x1198]
[Thread 6080.0x14f8 exited with code 0]
[Thread 6080.0x1584 exited with code 0]
[Thread 6080.0x17e8 exited with code 0]
[Thread 6080.0x17ec exited with code 0]
[Thread 6080.0x1280 exited with code 0]
[New Thread 6080.0x17a4]
[New Thread 6080.0xe70]
[New Thread 6080.0x143c]

Program received signal SIGSYS, Bad system call.

Program received signal SIGSYS, Bad system call.
[New Thread 6080.0x93c]
[New Thread 6080.0x7f8]
[New Thread 6080.0x177c]
[New Thread 6080.0x1fc]
[New Thread 6080.0x494]
[New Thread 6080.0x754]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 6080.0x17a4]
0x0001004071ea in winMsgWindowProc (hwnd=optimized out, 
message=optimized out,
wParam=optimized out, lParam=optimized out)
at /usr/src/debug/xorg-server-1.14.2-2/hw/xwin/winmsgwindow.c:58
58  PostMessage(pScreenPriv-hwndScreen, WM_GIVEUP, 0, 0);
(gdb) where
#0  0x0001004071ea in winMsgWindowProc (hwnd=optimized out, 
message=optimized out,
wParam=optimized 

Re: XWin.exe crashes on Windows restart

2013-09-10 Thread Larry Hall (Cygwin-X)

On 9/10/2013 5:16 PM, Andreas Girgensohn wrote:

On a different note, when running gdb, I noticed that XWin.exe twice
receives a SIGSYS when starting.  That does not affect normal
operations.


Right.  This is fine.  If you find this annoying or want to use the
facilities provided by Cygserver with the X-server, see
http://cygwin.com/cygwin-ug-net/using-cygserver.html to learn about
it and how to turn it on.

--
Larry

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/