delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/01/10:52:16

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: Fri, 1 Oct 2004 10:52:00 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Dave Korn <dk AT artimi DOT com>
cc: cygwin AT cygwin DOT com
Subject: RE: seg-vios from gcc program at execv() on Windows XP
In-Reply-To: <NUTMEGqsJZW2NQ7eAnd000001f7@NUTMEG.CAM.ARTIMI.COM>
Message-ID: <Pine.GSO.4.61.0410011050450.16917@slinky.cs.nyu.edu>
References: <NUTMEGqsJZW2NQ7eAnd000001f7 AT NUTMEG DOT CAM DOT ARTIMI DOT COM>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Fri, 1 Oct 2004, Dave Korn wrote:

> > -----Original Message-----
> > From: cygwin-owner On Behalf Of Igor Pechtchanski
> > Sent: 01 October 2004 15:31
>
> > > 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-
> >
> > Hmm, an extra NULL shouldn't have any effect -- execv stops
> > at the first one, IIRC.
>
>   Yes, but if you've created an argv[] on the stack to pass to execv, and it has
> just the right number of entries, and you go and write an extra NULL into
> it................
>
>   IOW, the extra NULL does have an effect... just not on execv!

Ah.  Argm.  Ungh.  Ehm.  (a whole list of other sounds, that together mean
"thanks for the correction"). :-)
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

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