Subject: lib/32065: crash in libcurses
To: None <,,>
From: None <>
List: netbsd-bugs
Date: 11/13/2005 17:28:00
>Number:         32065
>Category:       lib
>Synopsis:       crash in libcurses
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 13 17:28:00 +0000 2005
>Originator:     Christoph Egger
>Release:        NetBSD 3.99.11/i386 and /sparc64
NetBSD GENERIC kernel on i386 and sparc64

libcurses crashs when TERM is unknown

1. Install editors/nano from pkgsrc.

2. Change the TERM env. variable to an unknown value:


(/bin/sh claims about an unknown terminal type but sets the value anyway)

3. Open an ASCII file with nano

You see this:

[1]   Segmentation fault (core dumped) nano <filename>