Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

zsh seg fault when TERM = linux



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