delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/10/04:28:19

Date: Tue, 10 Jun 1997 11:24:43 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Orlando Andico <orly AT gibson DOT eee DOT upd DOT edu DOT ph>
cc: Michael Bukin <bukinm AT inp DOT nsk DOT su>, djgpp AT delorie DOT com
Subject: Re: One for the Gurus
In-Reply-To: <Pine.SGI.3.93.970610132325.25315A-100000@gibson.eee.upd.edu.ph>
Message-ID: <Pine.SUN.3.91.970610112238.3067X-100000@is>
MIME-Version: 1.0

On Tue, 10 Jun 1997, Orlando Andico wrote:

> The execXX() functions and spawnXX() functions have versions in which
> you're supposed to pass a pointer to the environment you're giving the
> child. Perhaps DJGPP programs set some environment variable (probably TERM
> or something) that normal DOS programs don't. getenv() returns NULL if no
> variable found, but A LOT of code looks like this:
> 
>   strcpy (term_var, getenv ("TERM"));
> 
> which _would_ cause a SIGSEGV if TERM was not defined.

This is a possibility, but you need to actually locate such a code 
fragment to explain a crash.  Emacs doesn't have such fragment anywhere 
(yes, I've looked).

This also doesn't explain at all why Emacs only crashes when exactly 22 
environment variables are defined.

- Raw text -


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