Date: Tue, 10 Jun 1997 11:24:43 +0300 (IDT) From: Eli Zaretskii To: Orlando Andico cc: Michael Bukin , djgpp AT delorie DOT com Subject: Re: One for the Gurus In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.