Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh seg fault when TERM = linux
- X-seq: zsh-workers 26908
- From: Murilo Opsfelder Araújo <mopsfelder@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: zsh seg fault when TERM = linux
- Date: Thu, 30 Apr 2009 09:35:04 -0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type:content-transfer-encoding; bh=0FwT/2+ZMRQhhiwvHHI9YbBKwgmpFVlVE0YMKCDOs1E=; b=VKCGbvMC+9u/dYlAcyWIMWYzkbBcogGmc43tefHKGnWj4UQMOiuX7UqvdfJELfiCB/ ucfIdEd8AyxkTWQ7l7lZeS+X9j/FBC1zvFxyaUw0EWRpYDM8fMc22ABWspL0UH/EMX9h eAENzXf7X6aCOC5hiV5cNVNa31RBCXjLLdkN0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; b=E0gBOrZHOsG1EQkqbZDJnXI4kLm4FWtsANumqwCrPbcyEpJz93856+Ew7L1c4bmRMx 5E0KqY1yv5FDRLXD0ZkwY3seazyWAIE3AhPDh3u36JWRhz9yXo60ntJXaHAQpSyNFQol Z9WqKDxbTRLGMPR7NwUs0aVVJHn5Pe4i4Zz2c=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Hi zsh workers,
I'd like to report a situation for you.
I'm trying to connect in a ssh server with a user using zsh as your
default shell but zsh crashes.
In following, there are some info. If you need more, please, feel free to ask.
TERM env var on client side is set to 'linux':
client$ echo $TERM
linux
On the server I changed the user's shell to csh:
server$ echo $SHELL
/bin/csh
When logged in on server I tried to run zsh:
server$ zsh
Segmentation fault
Exit 139
I tried a gdb with zsh. See the results:
server$ gdb zsh
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging
symbols found)...
(gdb) run
Starting program: /usr/local/bin/zsh
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x283784bd in strlen () from /lib/libc.so.7
(gdb) bt
#0 0x283784bd in strlen () from /lib/libc.so.7
#1 0x282f600e in cgetset () from /lib/libc.so.7
#2 0x282f64f2 in cgetent () from /lib/libc.so.7
#3 0x2824940e in _nc_read_termcap_entry () from /lib/libncursesw.so.7
#4 0x2826accf in _nc_read_entry () from /lib/libncursesw.so.7
#5 0x28268d47 in _nc_setupterm () from /lib/libncursesw.so.7
#6 0x2823d928 in tgetent () from /lib/libncursesw.so.7
#7 0x0807bd29 in init_term ()
#8 0x0809593b in setstrvalue ()
#9 0x08099ba7 in assignsparam ()
#10 0x0809ab3e in createparamtable ()
#11 0x0807b9df in setupvals ()
#12 0x0807d6ce in zsh_main ()
#13 0x08052e32 in main ()
(gdb)
Does gdb seem to be OK?
To resolve the problem I rollbacked user's shell to zsh on server side
and did a env TERM=xterm on client side. See:
client$ env TERM=xterm ssh remoteuser@server
Password: *******
server$
So, I don't know if this situation is a bug or a conf problem. Feel
free to ask more information.
Thanks in advance.
--
Murilo Opsfelder Araujo
mopsfelder@xxxxxxxxx
{murilo,panda}@bsd.com.br
BSD will never die.
"Tempo difícil esse em que estamos, em que é mais fácil quebrar um
átomo do que um preconceito." - Albert Einstein
Messages sorted by:
Reverse Date,
Date,
Thread,
Author