delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/01/00:14:24

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Thu, 30 Sep 2004 21:13:06 -0700 (PDT)
From: Richard Troy <rtroy AT ScienceTools DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Re: seg-vios from gcc program at execv() on Windows XP
In-Reply-To: <Pine.GSO.4.61.0409301121010.14979@slinky.cs.nyu.edu>
Message-ID: <Pine.LNX.4.33.0409302059310.2482-100000@denzel.sciencetools.com>
MIME-Version: 1.0
X-IsSubscribed: yes

On Thu, 30 Sep 2004, Igor Pechtchanski wrote:

>
> > Note that the code is _rock_solid_ on Linux/Unix/Mac OSX, and on all
> > earlier versions of Windows we've ever tried it on. We've _never_ seen it
> > seg-vio before.
>
> Please provide a complete (hopefully simple) testcase, along with the
> compilation flags, etc.  In particular, it'd be interesting to see how
> nargv is allocated, etc.  I suspect you're not placing a NULL at the end
> of the argument list, and Cygwin and Linux allocate nargv differently (so
> that on Linux, nargv just happens to have zeroed memory after it).

Almost; right issue, wrong problem. It turned out not that there wasn't a
terminating NULL but that there was an extra one, one past where it
should have been! This kind of problem is, apparently, _very_ easy to
overlook and I guess we just got away with it in the past. -shrug-

I want to thank you for taking the time to reply, Igor. I was awfully
stressed out about it. Even though it wasn't really a Cygwin problem, you
were supportive and I appreciagte it.

> > (BTW ping and dig utilities would be nice!)
>
> FWIW, XP (and 2k) come with "`cygpath -S`/ping.exe" and
> "`cygpath -S`/nslookup.exe".

??  ...Doesn't do _anything_ on my computer! -smile-

(Maybe I'd better to a hunt for them as they aren't in my path today.)

Richard

-- 
Richard Troy, Chief Scientist
Science Tools Corporation
rtroy AT ScienceTools DOT com, 510-567-9957, http://ScienceTools.com/


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

- Raw text -


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