Nick Vasilatos | 9 Jun 2012 18:32
Favicon

XWin 1.12.1.0 seg faults on startup?

Hi,

XWin doesn't want to start for me. This is a new install of Cygwin/new 
install of Win7 on an AMD x64 system with an Nvidia gtx-570 GPU; I've 
reinstalled the X components a couple of times; rebasedall a couple of 
times. The log (I installed an XWin.exe w/symbols) says:

    [ 5306.810] winPositionWindowMultiWindow: (x, y) = (0, 0)
    [ 5306.810] immediately return since hWnd is NULL
    [ 5306.810] winMapWindowMultiWindow - pWin: 80062268
    [ 5306.810] winUpdateWindowsWindow
    [ 5306.810] winReshape ()
    [ 5306.826] Segmentation fault at address 0x0
    [ 5306.826] Segmentation fault at address 0x0
    [ 5306.826] Segmentation fault at address 0x0
    [ 5306.826]
    Fatal server error:
    [ 5306.826]
    Fatal server error:
    [ 5306.826]
    Fatal server error:
    [ 5306.826] Caught signal 11 (Segmentation fault). Server aborting
    [ 5306.826] Caught signal 11 (Segmentation fault). Server aborting
    [ 5306.826] Caught signal 11 (Segmentation fault). Server aborting
    [ 5306.826]
    [ 5306.826]
    [ 5306.826]
    [ 5306.826] Server terminated with error (1). Closing log file.

Any ideas/what am I doing wrong?
(Continue reading)

Jon TURNEY | 17 Jun 2012 16:09
Picon
Favicon
Gravatar

Re: XWin 1.12.1.0 seg faults on startup?

On 09/06/2012 17:32, Nick Vasilatos wrote:
> XWin doesn't want to start for me. This is a new install of Cygwin/new install
> of Win7 on an AMD x64 system with an Nvidia gtx-570 GPU; I've reinstalled the
> X components a couple of times; rebasedall a couple of times. The log (I
> installed an XWin.exe w/symbols) says:
> 
>    [ 5306.810] winPositionWindowMultiWindow: (x, y) = (0, 0)
>    [ 5306.810] immediately return since hWnd is NULL
>    [ 5306.810] winMapWindowMultiWindow - pWin: 80062268
>    [ 5306.810] winUpdateWindowsWindow
>    [ 5306.810] winReshape ()
>    [ 5306.826] Segmentation fault at address 0x0
>    [ 5306.826] Segmentation fault at address 0x0
>    [ 5306.826] Segmentation fault at address 0x0
>    [ 5306.826]
>    Fatal server error:
>    [ 5306.826]
>    Fatal server error:
>    [ 5306.826]
>    Fatal server error:
>    [ 5306.826] Caught signal 11 (Segmentation fault). Server aborting
>    [ 5306.826] Caught signal 11 (Segmentation fault). Server aborting
>    [ 5306.826] Caught signal 11 (Segmentation fault). Server aborting
>    [ 5306.826]
>    [ 5306.826]
>    [ 5306.826]
>    [ 5306.826] Server terminated with error (1). Closing log file.
> 
> Any ideas/what am I doing wrong?

(Continue reading)

Nick Vasilatos | 21 Jun 2012 05:39
Favicon

Re: XWin 1.12.1.0 seg faults on startup?

Well... the new server (i1.12.2.0) also seg faults at 0x0 on startup. 
Debugger says ``No Stack''? The log file is attached.

[39]->gdb --args /usr/bin/Xwin -multiwindow
GNU gdb (GDB) 7.3.50.20111026-cvs (cygwin-special)
Copyright (C) 2011 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 "i686-cygwin".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/Xwin...done.
(gdb) r
Starting program: /usr/bin/Xwin -multiwindow
[New Thread 17136.0x3dbc]
[New Thread 17136.0x43c8]
[New Thread 17136.0x40fc]
[New Thread 17136.0x4340]
[New Thread 17136.0x3c98]
[New Thread 17136.0x4164]
[New Thread 17136.0x43c4]
[New Thread 17136.0x43a8]
[New Thread 17136.0x3fb0]
[New Thread 17136.0x4194]
[New Thread 17136.0x4160]
[New Thread 17136.0x3f20]
[New Thread 17136.0x3e9c]
(Continue reading)

Jon TURNEY | 25 Jun 2012 15:35
Picon
Favicon
Gravatar

Re: XWin 1.12.1.0 seg faults on startup?

On 21/06/2012 04:39, Nick Vasilatos wrote:
> Well... the new server (i1.12.2.0) also seg faults at 0x0 on startup. Debugger
> says ``No Stack''? The log file is attached.

> [Inferior 1 (process 17136) exited with code 01]
> (gdb) bt full
> No stack.
> (gdb)

This says that the XWin process exited, so either gdb somehow failed to catch
it when it segfaulted.  Or did it not segfault at all?

> On 6/17/2012 10:09 AM, Jon TURNEY wrote:
>> On 09/06/2012 17:32, Nick Vasilatos wrote:
>>> XWin doesn't want to start for me. This is a new install of Cygwin/new install
>>> of Win7 on an AMD x64 system with an Nvidia gtx-570 GPU; I've reinstalled the
>>> X components a couple of times; rebasedall a couple of times. The log (I
>>> installed an XWin.exe w/symbols) says:
>>>
>>>     [ 5306.810] winPositionWindowMultiWindow: (x, y) = (0, 0)
>>>     [ 5306.810] immediately return since hWnd is NULL
>>>     [ 5306.810] winMapWindowMultiWindow - pWin: 80062268
>>>     [ 5306.810] winUpdateWindowsWindow
>>>     [ 5306.810] winReshape ()
>>>     [ 5306.826] Segmentation fault at address 0x0

So, this looks like maybe it's failing while trying to create a window, so
this might be a timing condition at startup.

You might try creating an empty ~/.startxwinrc (so the default xterm is not
(Continue reading)

Nick Vasilatos | 27 Jun 2012 17:33
Favicon

Re: XWin 1.12.1.0 seg faults on startup?

> You might try creating an empty ~/.startxwinrc (so the default xterm is not
> started by startxwin) and see if that makes a difference?

Would seem not/seems to fail as before.  See below and log attached.

[29]->cd
[30]->cat /dev/null > .startxwinrc
[31]->cat .startxwinrc
[32]->gdb --args /usr/bin/XWin -multiwindow
GNU gdb (GDB) 7.3.50.20111026-cvs (cygwin-special)
Copyright (C) 2011 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 "i686-cygwin".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/XWin...done.
(gdb) r
Starting program: /usr/bin/XWin -multiwindow
[New Thread 26248.0x5dfc]
[New Thread 26248.0x60e8]
[New Thread 26248.0x22a8]
[New Thread 26248.0x1eec]
[New Thread 26248.0x6dc4]
[New Thread 26248.0x5998]
[New Thread 26248.0x66d0]
[New Thread 26248.0x1d20]
(Continue reading)

Jon TURNEY | 28 Jun 2012 16:05
Picon
Favicon
Gravatar

Re: XWin 1.12.1.0 seg faults on startup?

On 27/06/2012 16:33, Nick Vasilatos wrote:
>> You might try creating an empty ~/.startxwinrc (so the default xterm is not
>> started by startxwin) and see if that makes a difference?
> 
> Would seem not/seems to fail as before.  See below and log attached.

Okay. thanks for trying anyhow.

This is going to be somewhat problematic to debug since the debugger seems
unable to attach to the faulted process.  I'm not sure what might cause that,
if it's some software you have installed which is interfering with Cygwin or
some security policy you have set?  Are you running XWin under a local
Administrator account?

I've uploaded a new snapshot at [1], can you try running that, adding the
-notrapsignals option to your usual command line.

This should generate a XWin.exe.stackdump file when it crashes.  Can you
attach that to an email, please.

[1] ftp://cygwin.com/pub/cygwinx/XWin.20120628-git-59d15f68d4fd9bb8.exe.bz2

--

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
(Continue reading)


Gmane