NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/59945: nvi coredump in libcurses
The following reply was made to PR lib/59945; it has been noted by GNATS.
From: RVP <rvp%SDF.ORG@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: lib/59945: nvi coredump in libcurses
Date: Tue, 17 Feb 2026 07:06:13 +0000 (UTC)
On Mon, 26 Jan 2026, Simon Burge via gnats wrote:
> nvi gets a segmentation fault in libcurses when you follow the
> steps in "how to repeat" section. This segfault happens with
> screen when the terminal type is "screen". If you set the
> terminal type to "xterm" it works normally.
>
As an FYI: the difference is due to different code paths[1] being taken. The
"screen" terminfo entry exports the `am' (automatic margins) capability, but
no strings for `smam' (turn on auto margins) and `rmam' (turn off auto
margins)[2] are. (Also in the 5.0.1 official tarball.)
-RVP
[1]: https://github.com/NetBSD/src/blob/trunk/lib/libcurses/refresh.c#L1079
[2]: https://github.com/NetBSD/src/blob/trunk/share/terminfo/terminfo#L8146
Home |
Main Index |
Thread Index |
Old Index