Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80197 - Segmentation faults with app-editors/vim
Summary: Segmentation faults with app-editors/vim
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: High normal (vote)
Assignee: ppc64 architecture team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-31 05:17 UTC by Jacob Lindberg
Modified: 2005-02-10 11:47 UTC (History)
0 users

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 Jacob Lindberg 2005-01-31 05:17:54 UTC
app-editors/vim-6.3-r2
app-editors/vim-6.3-r4

----
gdme0 vim # emerge info
Portage 2.0.51-r15 (default-ppc64-2004.3, gcc-3.4.1, glibc-2.3.4.20041102-r0, 2.6.8-gentoo-r3 ppc64)
=================================================================
System uname: 2.6.8-gentoo-r3 ppc64 POWER4 (gp)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.3-r1 [2.3.3 (#1, Jan 27 2005, 18:17:24)]
dev-lang/python:     2.3.3-r1
sys-devel/autoconf:  2.59-r5
sys-devel/automake:  1.8.5-r1
sys-devel/binutils:  2.15.90.0.3-r3
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="ppc64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -mcpu=power4 -mtune=power4"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=power4 -mtune=power4"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks nostrip"
GENTOO_MIRRORS="http://ftp.du.se/os/gentoo http://mirror.gentoo.no"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="berkdb crypt f77 hardened nls nptl pam perl ppc64 python readline ssl tcpd"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
---

.. at the end of emerging:
 * Updating documentation tags in /usr/share/vim/vim63
/usr/lib/portage/bin/ebuild.sh: line 1858:  6072 Segmentation fault      DISPLAY= $vim -u NONE -U NONE -T xterm -X -n -f '+set nobackup nomore' "+helptags $d/doc" '+qa!' </dev/null >&/dev/null
>>> original instance of package unmerged safely.
 * Updating documentation tags in /usr/share/vim/vim63
/usr/lib/portage/bin/ebuild.sh: line 1858:  6123 Segmentation fault      DISPLAY= $vim -u NONE -U NONE -T xterm -X -n -f '+set nobackup nomore' "+helptags $d/doc" '+qa!' </dev/null >&/dev/null

.. and if I just do 'vim' and exit:
Vim: Caught deadly signal SEGV
Vim: Finished.
Segmentation fault
gdme0 vim #

app-editors/vim-6.2-* worked fine but has been removed from portage :/

Tell me if you need some more info, thanks.
Comment 1 Jacob Lindberg 2005-02-02 00:57:23 UTC
Same situation with vim-7.0 alpha versions :-(

I'm gonna do some more testing with other flags.
Comment 2 Jacob Lindberg 2005-02-02 01:24:56 UTC
I found a solution for this. If I do a 'USE="-perl" emerge vim-core vim' I get a working vim. Everytime I add perl to USE flag it segfaults.

This machine, which is segfaulting, is using dev-lang/perl-5.8.5-r3.

I have another machine running dev-lang/perl-5.8.2-r1 which is working fine using the perl USE flag and vim-core & vim.

What to do eh?
Comment 3 Jacob Lindberg 2005-02-02 01:31:38 UTC
Also vim-7.0 alpha works without the perl USE flag. So clearly it must be something with the perl libs.
Comment 4 Tom Gall (RETIRED) gentoo-dev 2005-02-02 07:33:36 UTC
excellent detective work!
Comment 5 Yuta SATOH (RETIRED) gentoo-dev 2005-02-05 07:51:35 UTC
I solved this problem by compiling vim-6.3-r2 using gcc-3.4.3-r1. 
It seems that it operates normally even if perl is contained in USE Flag. 

The step for solution :
1. ACCEPT_KEYWORDS=~ppc64 emerge =sys-devel/gcc-3.4.3-r1
2. ACCEPT_KEYWORDS=~ppc64 emerge abiword
3. emerge gcc (back to stable version of gcc)
Comment 6 Yuta SATOH (RETIRED) gentoo-dev 2005-02-05 07:58:21 UTC
i'm sorry. my bad...
The following is my mistake:
2. ACCEPT_KEYWORDS=~ppc64 emerge abiword

The right command is the following:
2. ACCEPT_KEYWORDS=~ppc64 emerge vim
Comment 7 Markus Rothe (RETIRED) gentoo-dev 2005-02-10 11:47:00 UTC
gcc-3.4.3-r1 is stable now. this bug should be fixed then.
Comment 8 Markus Rothe (RETIRED) gentoo-dev 2005-02-10 11:47:09 UTC
closing