🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98880

"empty" environment variable causes emacs crash

#98880
From: Keenan Ross
Date: Fri, 25 Jan 1991 21:36
31 lines
2001 bytes
I'm not an emacs user, but I recently helped someone track down a
problem. I hope this information helps you improve emacs.

We are running GnuEmacs 18.52.3. The problem occurs on a Sun3 running
SunOS 4.1.1 and on a Sun Sparcserver (400 something) running SunOS 4.0.3.

If there is an environment setting consisting solely of an equals-sign
character, ie the variable and its value are both empty strings, emacs
dies during initialization (before the screen is drawn) with an Illegal
Instruction message. The problem can be reproduced with the following
script:
    43 keenan@inmet> setenv ''
    44 keenan@inmet> emacs
    Illegal instruction
    45 keenan@inmet>

It appears that emacs places special interpretation on environment
variables that start with an equals-sign. Although I haven't looked
at the code, I assume that once it finds an equals-sign at the beginning
of an environment setting, it then looks for another to delimit the
value. Unfortunately, it never considered that the leading one could
be the only one.

Please take my interpretation with a grain of salt, but it does seem
consistant. We are in no rush for the fix, but do look forward to
seeing it in a forthcomming release. Thanks,

--keenan ross           keenan@inmet.inmet.com
 Intermetrics, Inc.     uunet!inmet!keenan
 733 Concord Ave.
 Cambridge, MA  02138   PHONE:    (617) 661-1840
Technical Details
Message-ID: <9101252136.AA11106@inmet.inmet.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!inmet.ai.mit.edu!keenan

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,745a951521b7641c,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-01-25 13:36:39 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!inmet.ai.mit.edu!keenan
From: keenan@inmet.ai.mit.edu (Keenan Ross)
Newsgroups: gnu.emacs.bug
Subject: "empty" environment variable causes emacs crash
Message-ID: <9101252136.AA11106@inmet.inmet.com>
Date: 25 Jan 91 21:36:39 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 31
Approved: bug-gnu-emacs@prep.ai.mit.edu