zsh-workers
 help / color / mirror / code / Atom feed
* zsh-4.0.7 memory fault in IRIX 6.5
@ 2003-09-09  6:30 Joachim Backes
  2003-09-09 16:15 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Joachim Backes @ 2003-09-09  6:30 UTC (permalink / raw)
  To: zsh-workers


Hi,

having problems with zsh-4.0.7 (and earlier) on IRIX-6.5:

if I have an (very old) /etc/zshenv with the contents

        setopt shwordsplit

then zsh dies directly after start with "memory fault". The reason
seems to be the (invalid ??) contents of /etc/zshenv.

I made a system trace of zsh and got the following (the first lines
are omitted) result:

...


   18mS[  3]                 : ioctl(10, TIOCGSID, 0x7ffb7de0) OK
   18mS[  3]                 : getsid(0) = 8340897
   18mS[  3]                 : ioctl(10, TIOCSPGRP, 8971885) OK
   18mS[  3]                 : sigprocmask(SIG_UNBLOCK, [SIGINT SIGQUIT], [<none>]) OK
   19mS[  3]                 : brk(0x100b8000) OK
   19mS[  3]                 : stat("/etc/zshenv.zwc", 0x7ffb7c50) errno = 2 (No such file or directory)
   19mS[  3]                 : stat("/etc/zshenv", 0x7ffb7ce8) OK
   19mS[  3]                 : open("/etc/zshenv", O_RDONLY|O_NOCTTY, 0) = 3
   19mS[  3]                 : fcntl(3, F_DUPFD, 10) = 11
   19mS[  3]                 : close(3) OK
   19mS[  3]                 : fstat(11, 0x7ffb7d10) OK
   19mS[  3]                 : sigaction(SIGINT, {flags=0 handler=0x1006b0d0 mask=[<none>]}, 0) OK
   19mS[  3]                 : fstat(11, 0x7ffb6b10) OK
   19mS[  3]                 : ioctl(11, __OLD_TCGETA, 0x7ffb6ac0) errno = 25 (Inappropriate I/O control opera
tion)
   19mS[  3]                 : read(11, "setopt shwordsplit\n", 4096) = 19
   20mS[  3]                 : sigprocmask(SIG_BLOCK, [SIGCLD], [<none>]) OK
   20mS[  3]                 : received signal SIGSEGV

An empty /etc/zshenv makes no trouble.

Regards


Joachim Backes

--

Joachim Backes <backes@rhrk.uni-kl.de>
Technical University of Kaiserslautern,
Computer Center, High Performance Computing,
D-67653 Kaiserslautern, PO Box 3049, Germany
--------------------------------------------------
Phone: +49-631-205-2438, FAX: +49-631-205-3056
http://hlrwm.rhrk.uni-kl.de/home/staff/backes.html  



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: zsh-4.0.7 memory fault in IRIX 6.5
  2003-09-09  6:30 zsh-4.0.7 memory fault in IRIX 6.5 Joachim Backes
@ 2003-09-09 16:15 ` Bart Schaefer
  0 siblings, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 2003-09-09 16:15 UTC (permalink / raw)
  To: zsh-workers

On Sep 9,  8:30am, Joachim Backes wrote:
} 
} if I have an (very old) /etc/zshenv with the contents
} 
}         setopt shwordsplit

I can't imagine anything that would confuse zsh users more (I can think
of a few that would confuse them just as badly) but I suppose if you are
the only one on the system ...

} then zsh dies directly after start with "memory fault". The reason
} seems to be the (invalid ??) contents of /etc/zshenv.

Does it matter _what_ the contents are?  That is, if you change it to
something other than 'setopt shwordsplit' does it still crash?

Just because I have it in the SGI section of my own .zshenv, try this
as the very first thing in /etc/zshenv:

if [[ -n "$ENVONLY" ]]
then
    unsetopt zle
fi


^ permalink raw reply	[flat|nested] 3+ messages in thread

* zsh-4.0.7 memory fault in IRIX 6.5
@ 2003-09-09  6:16 Joachim Backes
  0 siblings, 0 replies; 3+ messages in thread
From: Joachim Backes @ 2003-09-09  6:16 UTC (permalink / raw)
  To: zsh-workers

Hi,

having problems with zsh-4.0.7 (and earlier) on IRIX-6.5:

if I have an (very old) /etc/zshenv with the contents

        setopt shwordsplit

then zsh dies directly after start with "memory fault". The reason
seems to be the (invalid ??) contents of /etc/zshenv.

I made a system trace of zsh and got the following (the first lines
are omitted) result:

...


   18mS[  3]                 : ioctl(10, TIOCGSID, 0x7ffb7de0) OK
   18mS[  3]                 : getsid(0) = 8340897
   18mS[  3]                 : ioctl(10, TIOCSPGRP, 8971885) OK
   18mS[  3]                 : sigprocmask(SIG_UNBLOCK, [SIGINT SIGQUIT], [<none>]) OK
   19mS[  3]                 : brk(0x100b8000) OK
   19mS[  3]                 : stat("/etc/zshenv.zwc", 0x7ffb7c50) errno = 2 (No such file or directory)
   19mS[  3]                 : stat("/etc/zshenv", 0x7ffb7ce8) OK
   19mS[  3]                 : open("/etc/zshenv", O_RDONLY|O_NOCTTY, 0) = 3
   19mS[  3]                 : fcntl(3, F_DUPFD, 10) = 11
   19mS[  3]                 : close(3) OK
   19mS[  3]                 : fstat(11, 0x7ffb7d10) OK
   19mS[  3]                 : sigaction(SIGINT, {flags=0 handler=0x1006b0d0 mask=[<none>]}, 0) OK
   19mS[  3]                 : fstat(11, 0x7ffb6b10) OK
   19mS[  3]                 : ioctl(11, __OLD_TCGETA, 0x7ffb6ac0) errno = 25 (Inappropriate I/O control opera
tion)
   19mS[  3]                 : read(11, "setopt shwordsplit\n", 4096) = 19
   20mS[  3]                 : sigprocmask(SIG_BLOCK, [SIGCLD], [<none>]) OK
   20mS[  3]                 : received signal SIGSEGV

An empty /etc/zshenv makes no trouble.

Regards


Joachim Backes

--

Joachim Backes <backes@rhrk.uni-kl.de>
Technical University of Kaiserslautern,
Computer Center, High Performance Computing,
D-67653 Kaiserslautern, PO Box 3049, Germany
--------------------------------------------------
Phone: +49-631-205-2438, FAX: +49-631-205-3056
http://hlrwm.rhrk.uni-kl.de/home/staff/backes.html  


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-09-09 16:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-09  6:30 zsh-4.0.7 memory fault in IRIX 6.5 Joachim Backes
2003-09-09 16:15 ` Bart Schaefer
  -- strict thread matches above, loose matches on Subject: below --
2003-09-09  6:16 Joachim Backes

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).