Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110267 - app-editors/vim "Caught deadly signal SEGV" with perl USE flag enabled
Summary: app-editors/vim "Caught deadly signal SEGV" with perl USE flag enabled
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: High normal (vote)
Assignee: Vim Maintainers
Depends on:
Reported: 2005-10-23 14:21 UTC by Jacob Lindberg
Modified: 2006-01-18 03:34 UTC (History)
1 user (show)

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

test patch for vim.eclass.patch (vim.eclass.patch,824 bytes, patch)
2005-10-24 05:29 UTC, Yuta SATOH (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jacob Lindberg 2005-10-23 14:21:35 UTC
g-pdc ~ # cat /usr/portage/metadata/timestamp
Sun Oct 23 17:06:50 UTC 2005
g-pdc ~ #

g-pdc straces # emerge info
Portage (default-linux/ppc64/2004.3, gcc-3.4.4,
glibc-, 2.6.12-gentoo-r6-PDC ppc64)
System uname: 2.6.12-gentoo-r6-PDC ppc64 POWER4 (gp)
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2, 2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
CFLAGS="-O2 -mcpu=power4 -mtune=power4"
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 -mcpu=power4 -mtune=power4"
FEATURES="autoconfig distlocks sandbox sfperms strict"
USE="acl berkdb crypt cups emboss f77 foomaticdb fortran gd gdbm kerberos ldap
libclamav ncurses nls oav pam perl ppc64 python quotas readline samba ssl tcpd
unicode winbind zlib userland_GNU kernel_linux elibc_glibc"
g-pdc straces #

app-editors/vim emerged with perl USE flag.

g-pdc ~ # vim

Vim: Caught deadly signal SEGV
Vim: Finished.
Segmentation fault
g-pdc straces #

g-pdc straces # perl -v

This is perl, v5.8.7 built for powerpc64-linux


g-pdc straces # ldd /usr/bin/vim => /lib/ (0x0000008000030000) => /lib/ (0x00000080000c8000) => /usr/lib/ (0x00000080000e6000) => /lib/ (0x000000800027a000) => /lib/ (0x000000800028e000) => /lib/ (0x0000008000425000) => /lib/ (0x00000080004d1000) => /lib/ (0x000000800055d000) => /lib/ (0x0000008000572000) => /lib/ (0x0000008000588000) => /lib/ (0x00000080005b7000)
        /lib64/ (0x0000008000000000)
g-pdc straces #

Emerging without perl USE flag:

g-pdc straces # ldd /usr/bin/vim => /lib/ (0x0000008000030000) => /lib/ (0x00000080000c8000) => /lib/ (0x00000080000e6000) => /lib/ (0x0000008000192000) => /lib/ (0x00000080001a6000) => /lib/ (0x00000080001bb000) => /lib/ (0x0000008000247000) => /lib/ (0x00000080003dd000)
        /lib64/ (0x0000008000000000)
g-pdc straces #

No SEGV signals when entering vim.

All straces (done with -d -v) and emerge logfiles (emerge teed to a logfile) are
placed on

Lemme know if you need anything else!
Comment 1 Jacob Lindberg 2005-10-23 15:07:22 UTC
I left out the version: app-editors/vim-6.3.084
Comment 2 Jacob Lindberg 2005-10-23 15:21:03 UTC
Same problem with app-editors/vim-6.3.086
Comment 3 Jacob Lindberg 2005-10-23 15:45:39 UTC
This is what happens with app-editors/vim-6.4 emerge (with perl USE flag)

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging app-editors/vim-6.3.086...
No package files given... Grabbing a set.
--- !mtime obj /usr/bin/vim
--- !empty dir /usr/bin
--- !empty dir /usr
--- !targe sym /usr/bin/vimdiff
--- !targe sym /usr/bin/view
--- !targe sym /usr/bin/rvim
--- !targe sym /usr/bin/rview
--- !targe sym /usr/bin/ex
 * Updating documentation tags in /usr/share/vim/vim64
/usr/portage/eclass/vim-doc.eclass: line 37:  6401 Segmentation fault     
DISPLAY= $vim -u NONE -U NONE -T xterm -X -n -f '+set nobackup nomore'
"+helptags $d/doc" '+qa!' </dev/null >&/dev/null
>>> Regenerating /etc/
>>> Regenerating /etc/
>>> Auto-cleaning packages ...

Without the perl USE flag, it works like a charm.

Comment 4 Yuta SATOH (RETIRED) gentoo-dev 2005-10-24 05:29:16 UTC
Created attachment 71326 [details, diff]
test patch for vim.eclass.patch

FYI, some test results

When vim-with-x was contained in the USE flag, maketest passed. 
However, when it was not contained, the Segmentation fault occurred. 

When --with-features=big in vim-6.4_beta or later version, even if vim-with-x 
was not contained in the USE flag, I discovered passing maketest. 

I attach a test patch for vim-6.4_beta or later version from these results. 

Additional Information
# FEATURES=maketest ACCEPT_KEYWORDS=~ppc64 emerge -ptv =vim-6.4_beta

[ebuild   R   ] app-editors/vim-6.4_beta  +acl -bash-completion -cscope +gpm
-minimal +nls +perl +python (-ruby) -vim-with-x 0 kB
Comment 5 Ciaran McCreesh 2005-10-24 12:38:00 UTC
Bleh. Disabling features on ppc64 like that isn't an option. I need a gdb
backtrace of this with vim, perl, libperl and glibc built with full debugging
CFLAGS and no stripping please.
Comment 6 Jacob Lindberg 2005-10-27 06:34:28 UTC
I will try to see if I can get some time to recompile with debugging enabled.

I have removed the .htaccess file which was blocking people from seeing my log
files on the page. My apologize.
Comment 7 Jacob Lindberg 2005-11-01 03:09:32 UTC
I have done the following:
JohnDoe src # CFLAGS="-O0" CXXFLAGS="-O0" emerge glibc libperl perl
JohnDoe src # USE="perl" CFLAGS="-O0" CXXFLAGS="-O0" emerge vim
JohnDoe src # CFLAGS="-O0" CXXFLAGS="-O0" emerge gdb

Is this enough or should I compile them differently?

Comment 8 Jacob Lindberg 2006-01-18 03:34:36 UTC
I believe this to be fixed somewhere else.

Marking FIXED
Comment 9 Jacob Lindberg 2006-01-18 03:34:50 UTC