Subject: lib/24435: libncurses crashs
To: None <gnats-bugs@gnats.netbsd.org>
From: Charlie Root <root@athene.eggernet.de>
List: netbsd-bugs
Date: 02/15/2004 19:33:28
>Number:         24435
>Category:       lib
>Synopsis:       libncurses crashs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 15 18:35:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Christoph Egger
>Release:        NetBSD 1.6.1
>Organization:
	
>Environment:
	
	
System: NetBSD phoenix.eggernet.de 1.6.1 NetBSD 1.6.1 (GENERIC) #0: Mon Apr  7 10:27:16 UTC 2003     autobuild@cs20.apochromatic.org:/autobuilder/build/netbsd-1-6/sparc64/OBJ/autobuilder/build/netbsd-1-6/src/sys/arch/sparc64/compile/GENERIC sparc64
Architecture: sparc64
Machine: sparc64
>Description:

I wanted to run sushi:

phoenix# sushi
Segmentation fault (core dumped)
phoenix# ll
total 533
-rw-r--r--  2 root  wheel     939 Apr  7  2003 .cshrc
-rw-------  1 root  wheel      59 Apr  7  2003 .klogin
-rw-r--r--  1 root  wheel     244 Apr  7  2003 .login
-rw-r--r--  1 root  wheel     493 Apr  7  2003 .profile
-rw-r--r--  1 root  wheel     204 Apr  7  2003 .shrc
-rw-------  1 root  wheel  532480 Feb 15 19:01 sushi.core
phoenix# gdb /usr/sbin/sushi
GNU gdb 5.0nb1
Copyright 2000 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 "sparc64--netbsd"...(no debugging symbols found)...
(gdb) run
Starting program: /usr/sbin/sushi 
(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.
0x40673258 in t_goto () from /usr/lib/libcurses.so.5
(gdb) bt
#0  0x40673258 in t_goto () from /usr/lib/libcurses.so.5
#1  0x4066ae84 in _cursesi_setterm () from /usr/lib/libcurses.so.5
#2  0x40669648 in newterm () from /usr/lib/libcurses.so.5
#3  0x406675b0 in initscr () from /usr/lib/libcurses.so.5
#4  0x104338 in main ()
#5  0x103ffc in _init ()
(gdb) quit
The program is running.  Exit anyway? (y or n) y
phoenix# send-pr
vi: suncons=: unknown terminal type
send-pr: problem report not filled out, therefore not sent
phoenix# echo $TERM
suncons
phoenix# set TERM vt100
phoenix# echo $TERM
vt100
phoenix# send-pr
vi: suncons=: unkown terminal type
send-pr: problem report not filled out, therefore not sent
phoenix# sushi

<sushi runs fine>

I exited sushi and reported the bug from NetBSD/i386 because vi still thinks, I use a different terminal...

	
>How-To-Repeat:

    On NetBSD-1.6.1/sparc64:
    Set the TERM environment variable to suncons and run sushi
    A crash happens immediately.

	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:
 To: gnats-bugs@gnats.netbsd.org
 Subject: 
 From: Christoph_Egger@gmx.de
 Reply-To: 
 X-send-pr-version: 3.95