zsh-workers
 help / color / mirror / code / Atom feed
* zsh seg fault when TERM = linux
@ 2009-04-30 12:35 Murilo Opsfelder Araújo
  2009-04-30 13:54 ` Peter Stephenson
  0 siblings, 1 reply; 8+ messages in thread
From: Murilo Opsfelder Araújo @ 2009-04-30 12:35 UTC (permalink / raw)
  To: zsh-workers

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@gmail.com
{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


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

end of thread, other threads:[~2009-05-05 15:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-30 12:35 zsh seg fault when TERM = linux Murilo Opsfelder Araújo
2009-04-30 13:54 ` Peter Stephenson
2009-04-30 21:22   ` Murilo Opsfelder Araújo
2009-05-01  9:18     ` Peter Stephenson
2009-05-04 15:58       ` Murilo Opsfelder Araújo
2009-05-05 15:36         ` Peter Stephenson
2009-05-05 15:40         ` Clint Adams
2009-05-05 15:48           ` Peter Stephenson

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).