glXMakeCurrent() call crashes X server

2014-06-02 Thread Chris Marshall
Resend 2...

Great.  Now I appear to have hit the spam filter.  Maybe the
no-attachments version will make it through.  Someone will have to
check the spam tray to retrieve the original message.

--Chris

On Thu, May 29, 2014 at 1:00 PM, Chris Marshall devel.chm...@gmail.com wrote:

 [Resent with bzip2 compressed cygcheck output file---too big for list]

 I've been unable to debug the following failure because it results in the 
 entire cygwin X server crashing.  The code involved is from building the 
 Prima::OpenGL module which fails running test t/02_basic.t in the call to 
 glXMakeCurrent() in the x11.c file.

 I've attached an edited version of the cygcheck output, the XWin.0.log, and 
 the output error message from the mintty console which appears to have the 
 final gasp message which does not make it into XWin.0.log (presumably 
 because of the crash):


  winGetWindowInfo: forcing window to exist
  assertion pWin-parent failed: file
  
 /wip/cygport-git/xorg-server/xorg-server-1.15.0-3/src/xserver-cygwin-1.15.0-3/hw/xwin/winmultiwindowwindow.c,
  line 63, function: isToplevelWindow



 Here follows the perl/CPAN steps to reproduce the problem:

  1. Install the perl OpenGL module from CPAN

  http://search.cpan.org/CPAN/authors/id/C/CH/CHM/OpenGL-0.6703.tar.gz

 2. Install the Prima module from CPAN with the option
 CYGWIN_X11=1 at the perl Makefile.PL stage as the
 current cygwin default was before cygwinX supported
 WGL through a GLX pass-through.

 http://search.cpan.org/CPAN/authors/id/K/KA/KARASIK/Prima-1.39.tar.gz

 3. Build the Prima::OpenGL module from CPAN and
 run the failing test:  perl -Mblib t/02_basic.t

 
 http://search.cpan.org/CPAN/authors/id/K/KA/KARASIK/Prima-OpenGL-0.05.tar.gz


 Apologies for the perl-based report.   I've included links to the current 
 distribution files for the 3 main modules but there may be other dependencies 
 required to complete a full manual build.  The simplest would be to use an 
 automated install client such as cpan, cpanm,...

 --Chris


--
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/



Re: glXMakeCurrent() call crashes X server

2014-06-02 Thread Jon TURNEY

On 02/06/2014 13:04, Chris Marshall wrote:

On Thu, May 29, 2014 at 1:00 PM, Chris Marshall wrote:

I've been unable to debug the following failure because it results in the 
entire cygwin X server crashing.  The code involved is from building the 
Prima::OpenGL module which fails running test t/02_basic.t in the call to 
glXMakeCurrent() in the x11.c file.

I've attached an edited version of the cygcheck output, the XWin.0.log, and the output 
error message from the mintty console which appears to have the final gasp 
message which does not make it into XWin.0.log (presumably because of the crash):



  winGetWindowInfo: forcing window to exist
  assertion pWin-parent failed: file
  
/wip/cygport-git/xorg-server/xorg-server-1.15.0-3/src/xserver-cygwin-1.15.0-3/hw/xwin/winmultiwindowwindow.c,
  line 63, function: isToplevelWindow


Thanks for the bug report and reproduction steps.

I think this looks like a bug I fixed in 1.15.1-1, where the X server 
would crash if OpenGL was used on the (hidden) root window in 
multiwindow mode. [1]


In any case, can you please retry with the latest X server version.

[1] https://cygwin.com/ml/cygwin-xfree-announce/2014-04/msg3.html

--
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/
FAQ:   http://x.cygwin.com/docs/faq/



Re: glXMakeCurrent() call crashes X server

2014-06-02 Thread Chris Marshall
Just tested with XWin.exe version 1.15.1-2 built 2014-05-06
and no crash (yea!).

--Chris

On Mon, Jun 2, 2014 at 8:29 AM, Jon TURNEY jon.tur...@dronecode.org.uk wrote:
 On 02/06/2014 13:04, Chris Marshall wrote:

 On Thu, May 29, 2014 at 1:00 PM, Chris Marshall wrote:

 I've been unable to debug the following failure because it results in the
 entire cygwin X server crashing.  The code involved is from building the
 Prima::OpenGL module which fails running test t/02_basic.t in the call to
 glXMakeCurrent() in the x11.c file.

 I've attached an edited version of the cygcheck output, the XWin.0.log,
 and the output error message from the mintty console which appears to have
 the final gasp message which does not make it into XWin.0.log (presumably
 because of the crash):


   winGetWindowInfo: forcing window to exist
   assertion pWin-parent failed: file

 /wip/cygport-git/xorg-server/xorg-server-1.15.0-3/src/xserver-cygwin-1.15.0-3/hw/xwin/winmultiwindowwindow.c,
   line 63, function: isToplevelWindow


 Thanks for the bug report and reproduction steps.

 I think this looks like a bug I fixed in 1.15.1-1, where the X server would
 crash if OpenGL was used on the (hidden) root window in multiwindow mode.
 [1]

 In any case, can you please retry with the latest X server version.

 [1] https://cygwin.com/ml/cygwin-xfree-announce/2014-04/msg3.html

 --
 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/
FAQ:   http://x.cygwin.com/docs/faq/