delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/28/03:22:21

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4B386A9E.9030102@cwilson.fastmail.fm>
Date: Mon, 28 Dec 2009 03:21:50 -0500
From: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: run2.exe segfaults when GDI and X11 elements are present
References: <4B262E7E DOT 4090001 AT cornell DOT edu> <4B280C6C DOT 90902 AT cwilson DOT fastmail DOT fm> <4B35E98A DOT 3090500 AT cwilson DOT fastmail DOT fm> <4B3621EE DOT 4090108 AT cornell DOT edu> <4B363968 DOT 1090609 AT cornell DOT edu> <4B364DCA DOT 2030601 AT cwilson DOT fastmail DOT fm> <4B365F6A DOT 1090605 AT cornell DOT edu> <4B366863 DOT 9070803 AT cwilson DOT fastmail DOT fm> <4B36E851 DOT 5060205 AT cwilson DOT fastmail DOT fm> <4B372F4A DOT 2000305 AT cwilson DOT fastmail DOT fm> <4B377101 DOT 5050602 AT cornell DOT edu> <4B37C69A DOT 7070003 AT cwilson DOT fastmail DOT fm> <4B37E04D DOT 7080201 AT cornell DOT edu> <4B37E2B9 DOT 8020801 AT cornell DOT edu>
In-Reply-To: <4B37E2B9.8020801@cornell.edu>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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.

I can't reproduce your segfault with r23/r24 and the original dual xml
file. I'm using Vista...I'll test on XP later today. Can you build with
debugging symbols, run under gdb, and generate a backtrace?

"./libtool --mode=execute gdb --args src/run2.exe --debug=4
/path/to/test.xml"

(I'm using a self-built gdb; I'm not sure stock gdb supports the
"--args" option. If it does not, then:

"./libtool --mode=execute gdb src/run2.exe"

and you have to do this after gdb starts up:

set args --debug=4 /path/to/test.xml

--
Chuck


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019