X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.1 required=5.0 	tests=AWL,BAYES_00,RCVD_IN_JMF_BL,SPF_NEUTRAL
X-Spam-Check-By: sourceware.org
Message-ID: <4B38BA90.7030704@cornell.edu>
Date: Mon, 28 Dec 2009 09:02:56 -0500
From: Ken Brown <kbrown@cornell.edu>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: run2.exe segfaults when GDI and X11 elements are present
References: <4B262E7E.4090001@cornell.edu> <4B280C6C.90902@cwilson.fastmail.fm> <4B35E98A.3090500@cwilson.fastmail.fm> <4B3621EE.4090108@cornell.edu> <4B363968.1090609@cornell.edu> <4B364DCA.2030601@cwilson.fastmail.fm> <4B365F6A.1090605@cornell.edu> <4B366863.9070803@cwilson.fastmail.fm> <4B36E851.5060205@cwilson.fastmail.fm> <4B372F4A.2000305@cwilson.fastmail.fm> <4B377101.5050602@cornell.edu> <4B37C69A.7070003@cwilson.fastmail.fm> <4B37E04D.7080201@cornell.edu> <4B37E2B9.8020801@cornell.edu> <4B386A9E.9030102@cwilson.fastmail.fm>
In-Reply-To: <4B386A9E.9030102@cwilson.fastmail.fm>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 12/28/2009 3:21 AM, Charles Wilson wrote:
> Ken Brown wrote:
>> On 12/27/2009 5:31 PM, Ken Brown wrote:
>>> I still get a segfault with r23. I'm running XP SP3 if that's relevant.
>>
>> I also now get a segfault with the following simpler xml file, which
>> I've been using for a long time for starting emacs under X:
>
> This was just a thinko on my part. I forgot to add the following to the
> 'global node specifies a target' section:
>
> Index: src/run2_main.c
> ===================================================================
> --- src/run2_main.c     (revision 22)
> +++ src/run2_main.c     (working copy)
> @@ -560,6 +560,7 @@ core_impl (run2_confdata_t *data, s_opts
>         run2_env (data, 0);
>         startin = run2_get_startin_directory (tgtspec);
>         cmd = run2_create_cmdline_from_tgtspec (tgtspec);
> +      run2_create_argv_from_tgtspec (tgtspec,&tgt_argc,&tgt_argv);
>         which="Global";
>       }
>     else
>
> Fixed in r24. Thanks for the report.

Yes, that fixed it.

> I can't reproduce your segfault with r23/r24 and the original dual xml
> file.

Did you try test1.xml from 
http://cygwin.com/ml/cygwin/2009-12/msg00871.html ?  It's the one where 
mintty is called with the argument '-'.

> I'm using Vista...I'll test on XP later today. Can you build with
> debugging symbols, run under gdb, and generate a backtrace?

OK, I'll try it later if you can't reproduce the segfault with test1.xml.

Ken

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

