SIGSEGV in xorg-1.8.2.0 during -resize operation

Jon TURNEY jon.turney@dronecode.org.uk
Thu Aug 12 15:49:00 GMT 2010


On 10/08/2010 06:48, Ryan Johnson wrote:
> On 8/10/2010 12:02 AM, Jon TURNEY wrote:
>> On 09/08/2010 22:14, Ryan Johnson wrote:
>>> I was overjoyed to see that the release notes for the new X server release
>>> mention support for resizing the X desktop with the windows desktop.
>>>
>>> Unfortunately, it didn't work :(
>>>
>>> I modified the xwin windows shortcut to run as follows:
>>>> C:\cygwin\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/startxwin.exe --
>>>> -resize
>>
>> You need to quote the entire command you are passing to bash after -c
>>
>> i.e, try C:\cygwin\bin\run.exe /usr/bin/bash.exe -l -c
>> "/usr/bin/startxwin.exe -- -resize"
>>
>>> Then started the server at 1920x1200x32bpp while my ThinkPad was attached to
>>> an external LCD.
>>>
>>> When I detached the monitor to leave the office, X disappeared with signal 11
>>> (log attached). Oddly, the log file didn't mention -resize as an argument to
>>> XWin, but it did attempt to resize so I assume the feature was active.

Oh dear.  Well it seems I only thought I added code to only enable resize 
support in multiwindow mode when requested, so it's always on for multiwindow 
mode at the moment.  That wouldn't be so bad, but it also seems that the 
-resize code completely fails to correctly handle a change of colour depth 
(e.g. from 32 bits to 16 bits or vice versa) leading to this segfault.

Unfortunately, fixing this looks to be quite complex :-(

Thanks for testing, anyhow :-)

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



More information about the Cygwin-xfree mailing list