Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3207 - Vi Seg-Faults After Default emerge
Summary: Vi Seg-Faults After Default emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Highest critical (vote)
Assignee: Michael M Nazaroff (RETIRED)
URL:
Whiteboard:
Keywords:
: 3682 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-05-29 21:56 UTC by Omkhar Arasaratnam (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
4 users (show)

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


Attachments
strace for vi-3.7 (vi.txt,5.33 KB, text/plain)
2002-06-21 09:30 UTC, Martin Holzer (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Omkhar Arasaratnam (RETIRED) gentoo-dev 2002-05-29 21:56:12 UTC
I emerged vi using the P6 (mach=i686) opts as suggested in the /etc/make.conf
file. Every time I try and spawn vi it seg faults. Vi/Vim is a must for any
distro!!!
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-05-29 22:14:47 UTC
gcc-2.95.3 or gcc-3.1?
Comment 2 Nathan Nichols 2002-05-30 00:12:29 UTC
I'm having the same problem.

I'm running i686 as well, with suggested defaults listed in /etc/make.conf.

gcc --version reports 2.95.3
Comment 3 Michael M Nazaroff (RETIRED) gentoo-dev 2002-06-03 00:51:49 UTC
Can you strace the startup.. I cannot recreate the problem on my machine so far.
I have the same i686 compile flags.
Comment 4 Robert DiPietro 2002-06-17 01:11:58 UTC
I also have this problem, i686 suggested defaults in /etc/make.conf too!  Just so you know vim still works fine (or at least for me).  It was funny one of the first things I tried to install was vi and it gave me an EVIL first impression of gentoo, but everything since then has been perfect=] See ya 
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2002-06-21 09:29:25 UTC
same problem with app-editors/vi-3.7

gcc --version 2.95.3
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=i586 -O3 -pipe"
CXXFLAGS="-march=i586 -O3 -pipe"


strace is attached
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2002-06-21 09:30:05 UTC
Created attachment 1668 [details]
strace for vi-3.7
Comment 7 Martin Holzer (RETIRED) gentoo-dev 2002-06-21 09:32:07 UTC
forgotten

app-editors/vim-6.1-r7 works fine
Comment 8 Guillaume APOSTOLY 2002-06-21 09:51:48 UTC
*** Bug 3682 has been marked as a duplicate of this bug. ***
Comment 9 Matt Behrens 2002-06-23 18:44:23 UTC
The problem is the "linux" TERM setting.  Setting TERM to "vt220", for example,
works just great.

vi also works fine in an xterm.  AFAICT, it has absolutely nothing to do with
build optimizations.
Comment 10 Martin Holzer (RETIRED) gentoo-dev 2002-06-26 01:32:43 UTC
yeah guy you are right.
i've done

 export TERM=vt100

and vi started without segfault
Comment 11 Michael M Nazaroff (RETIRED) gentoo-dev 2002-07-02 14:38:49 UTC
Ok.. What term are you having the most issue's with? aterm seems to give me the
most problems.. it works in xterm becuase it has a termcap file..

But get back to me with your terminal type aterm or Eterm whatever ..

Please
Comment 12 Guillaume APOSTOLY 2002-07-02 15:39:57 UTC
In fact the issue is when no TERM is selected
If you do "export TERM=VT100" by example, before running vi, it works, vi also 
works in XTerm.
This is not really a problem so, but i suggest that a default term be set in 
the profiles by the install of "vi" ...
What do you think about it ?
Comment 13 Michael M Nazaroff (RETIRED) gentoo-dev 2002-07-12 02:24:41 UTC
Probably not a bad idea.. though it seems to be a ncurses issue.. which the
newest version seems to fix the problem on some peoples machines, but not mine
:-/, so I'm assuming it will be a issue on others as well.. the best thing to do
at this point while I work on a solution is not use TERM=linux.. not a very good
solution but it works
Comment 14 Michael M Nazaroff (RETIRED) gentoo-dev 2002-07-20 19:02:36 UTC
From what I starting to understand using TERM=linux inside of X is a very bad
idea.. it triggers ncurses aware applications to expect a linux TERM which most
x based terms do not fully implament for example vcs,vcsa which no X based term
can do.

Naz
Comment 15 Michael M Nazaroff (RETIRED) gentoo-dev 2002-07-20 19:10:18 UTC
vcs,vcsa or located in /dev.. 


This is none critical..  and please inform me of any Terms that set TERM to
linux.. those need to be modified not to do so