From: "Murilo Opsfelder Araújo" <mopsfelder@gmail.com>
To: Peter Stephenson <pws@csr.com>
Cc: zsh-workers@sunsite.dk
Subject: Re: zsh seg fault when TERM = linux
Date: Thu, 30 Apr 2009 18:22:26 -0300 [thread overview]
Message-ID: <e17dc37a0904301422h5e1445c2l34c26e28218e7f4e@mail.gmail.com> (raw)
In-Reply-To: <200904301354.n3UDsoNM021549@news01.csr.com>
On Thu, Apr 30, 2009 at 10:54 AM, Peter Stephenson <pws@csr.com> wrote:
> =?ISO-8859-1?Q?Murilo_Opsfelder_Ara=FAjo?= wrote:
>> TERM env var on client side is set to 'linux':
>>
>> server$ gdb zsh
>> (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?
>
> Yes, the backtrace makes sense. However, the crash is down inside the
> library code, where zsh calls tgetent(). The shell simply passes down
> the terminal name, i.e. the string "linux", and maybe a buffer. It's
> going through calls to ncursesw and libc, which is correct.
>
> Do you have the configuration for this version of zsh? Can you see if
> the option TGETENT_ACCEPTS_NULL is #define'd in config.h? It should be
> under Linux, but if it wasn't it might be that the 2048-byte buffer was
> too short. If the option is set, it's hard to see how the shell could
> be causing this. Indeed, I see in the manual page for tgetent that the
> buffer pointer is ignored, although it wasn't specially about ncursesw.
>
> Can you post the output of "infocmp -C linux" on the system where it's
> crashing?
>
> Thanks.
>
> --
> Peter Stephenson <pws@csr.com> Software Engineer
> CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
> Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
>
The server side /etc/zshrc:
http://pastebin.com/m65da7ea1
How can I see in zsh of server side if TGETENT_ACCEPTS_NULL is set?
On the server side (where zsh crashes) there is no command 'infocmp'.
The server is running FreeBSD. On the client side, here is the output
of 'infocmp -C linux':
http://pastebin.com/m352212c1
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
next prev parent reply other threads:[~2009-04-30 21:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-30 12:35 Murilo Opsfelder Araújo
2009-04-30 13:54 ` Peter Stephenson
2009-04-30 21:22 ` Murilo Opsfelder Araújo [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e17dc37a0904301422h5e1445c2l34c26e28218e7f4e@mail.gmail.com \
--to=mopsfelder@gmail.com \
--cc=pws@csr.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).