Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4599 - ncurses breaks either vi or gdb
Summary: ncurses breaks either vi or gdb
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Matthew Kennedy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-05 17:44 UTC by K.J. Wolf
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description K.J. Wolf 2002-07-05 17:44:32 UTC
When I try to start vi under plain TTY terminal, I get a Segmentation fault
(i386 platform, Athlon):

$ vi
Segmentation fault

Surprisingly this doesn't happen under X11 (80x25 xterm), so I guess it might
have to do with libncurses, which would make me very unhappy...
Comment 1 K.J. Wolf 2002-07-06 09:34:29 UTC
kjwolf@golulu:~ $ unset TERM
kjwolf@golulu:~ $ vi
Visual needs addressible cursor or upline capability
:q
kjwolf@golulu:~ $ export TERM=linux
kjwolf@golulu:~ $ vi
Segmentation fault
kjwolf@golulu:~ $ export TERM=xterm
kjwolf@golulu:~ $ vi
... dialog follows ... vi works ...
Comment 2 Spider (RETIRED) gentoo-dev 2002-07-06 12:10:45 UTC
sys-libs/ncurses-5.2.20020511-r1 *
app-editors/vi-3.7-r1
gcc 3.1

this works for me in an aterm with TERM="rxvt" and TERM="linux"
also works in console with TERM="linux"

Comment 3 K.J. Wolf 2002-07-06 14:18:28 UTC
Indeed, ncurses-5.2.20020511-r1 fixes the problem.
Comment 4 K.J. Wolf 2002-08-14 19:51:47 UTC
Aaargh. Either vi-5.7 gets broken (new ncurses), or gdb doesn't compile (old,
masked ncurses).
Comment 5 motown 2002-09-02 16:26:08 UTC
Could this bug actually be the same als bug 3837?

By the way, a new patch rollup shell script just came out for ncurses today,
downloadable at:

ftp://invisible-island.net/ncurses/5.2/patch-5.2-20020901.sh.gz

Ths patch is necessary for succesful compilation of ncurses 5.2 with GCC 3.2.
Comment 6 Michael M Nazaroff (RETIRED) gentoo-dev 2002-09-06 01:15:28 UTC
I'm really busy seemant and this is more of core library issue.. ncurses isn't 
something I know to much about so can you assign this to someone that handles 
system libs?  That would fantastic if you could, sorry to burden you with 
this :o( Thanx

Naz
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-08 09:12:59 UTC
I fixed this some time ago, and finalized it with libtermcap-compat the other
day.