From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7681 invoked by alias); 12 Aug 2010 15:46:11 -0000 Received: (qmail 7665 invoked by uid 22791); 12 Aug 2010 15:46:09 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from smtpout.karoo.kcom.com (HELO smtpout.karoo.kcom.com) (212.50.160.34) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 12 Aug 2010 15:46:05 +0000 Received: from 213-152-38-55.dsl.eclipse.net.uk (HELO [192.168.0.6]) ([213.152.38.55]) by smtpout.karoo.kcom.com with ESMTP; 12 Aug 2010 16:46:02 +0100 Message-ID: <4C64173D.30702@dronecode.org.uk> Date: Thu, 12 Aug 2010 15:46:00 -0000 From: Jon TURNEY User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 Newsgroups: gmane.os.cygwin.xfree To: cygwin-xfree@cygwin.com CC: ryanjohn@ece.cmu.edu Subject: Re: SIGSEGV in xorg-1.8.2.0 during -resize operation References: <4C606FBA.90704@ece.cmu.edu> <4C607B0B.4000401@dronecode.org.uk> <4C60E813.9070208@ece.cmu.edu> In-Reply-To: <4C60E813.9070208@ece.cmu.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com X-SW-Source: 2010-08/txt/msg00080.txt.bz2 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/