Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293631 - app-editors/vim-7.2.264;7.2.303 work under prefix, crash with 'Abort Trap' as other users
Summary: app-editors/vim-7.2.264;7.2.303 work under prefix, crash with 'Abort Trap' as...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-18 16:26 UTC by Stuart Shelton
Modified: 2009-12-01 01:11 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 Stuart Shelton 2009-11-18 16:26:09 UTC
vim builds cleanly, but as any other user on the system, it freezes for a second after clearing the screen and displaying the modeline but before displaying the file content, and then crashes with an 'Abort trap' message.

'vim' is linked as follows (as a non-portage user):

$ otool -L `which vim`
/opt/gentoo/usr/bin/vim:
	/opt/gentoo/usr/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0)
	/opt/gentoo/lib/libncurses.5.dylib (compatibility version 5.0.0, current version 5.0.0)
	/opt/gentoo/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.0.0)
	/opt/gentoo/usr/lib/libintl.8.dylib (compatibility version 9.0.0, current version 9.2.0)
	/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 152.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.0.0)
	/usr/lib/libutil.dylib (compatibility version 1.0.0, current version 1.0.0)
	/System/Library/Frameworks/Python.framework/Versions/2.6/Python (compatibility version 2.6.0, current version 2.6.1)
	/opt/gentoo/usr/lib/gcc/x86_64-apple-darwin10/4.2.1/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
	/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 44.0.0)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.13.0)

... this happens even after removing and re-building from scratch the 'vim' package.

Any ideas?
Comment 1 Stuart Shelton 2009-11-18 16:27:03 UTC
emerge --info:

Portage 2.2.00.14813-prefix (prefix/darwin/macos/10.6/x64, gcc-4.2.1, unavailable, 10.2.0 x86_64)
=================================================================
System uname: Darwin-10.2.0-x86_64-i386-64bit
Timestamp of tree: Wed, 18 Nov 2009 14:58:35 +0000
distcc 2.18.5-Apple.1 i386-apple-darwin10.0 (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.4
dev-python/pycrypto: 2.1.0_beta1
sys-devel/autoconf:  2.63-r01.1
sys-devel/automake:  1.10.2-r00.1, 1.11
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.6a-r00.2
ACCEPT_KEYWORDS="x64-macos x86-macos ~amd64 ~x64-macos ~x86 ~x86-macos"
CBUILD="x86_64-apple-darwin10"
CFLAGS="-O2 -fno-math-errno -march=core2 -msse4.1 -mfpmath=sse -pipe"
CHOST="x86_64-apple-darwin10"
CONFIG_PROTECT="/etc /opt/gentoo/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /opt/gentoo/etc/ca-certificates.conf /opt/gentoo/etc/env.d /opt/gentoo/etc/env.d/java/ /opt/gentoo/etc/fonts/fonts.conf /opt/gentoo/etc/gconf /opt/gentoo/etc/revdep-rebuild /opt/gentoo/etc/terminfo"
CXXFLAGS="-O2 -fno-math-errno -march=core2 -msse4.1 -mfpmath=sse -pipe"
DISTDIR="/opt/gentoo/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS=""
LINGUAS="en en_GB"
PKGDIR="/opt/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/opt/gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/opt/gentoo/var/tmp"
PORTDIR="/opt/gentoo/usr/portage"
PORTDIR_OVERLAY="/opt/gentoo/usr/local/portage"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="X aqua ares bash-completion berkdb bzip2 cairo chroot coreaudio cracklib expat fftw flac fontconfig gdbm gmp graphviz gs gtk hpn iconv idea ipv6 ithreads java jbig jpeg jpeg2k lcms lzma md5sum mmap mmx mmxext modules ncurses nls objc objc++ ogg openmp pcre perl png prefix python readline sasl slang speex spell sqlite3 sse sse2 ssl svg tcl test threads tiff tk trace truetype unicode urandom utils vim-syntax wmf x64-macos xinerama xml xpm zlib" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" USERLAND="GNU" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 2 Fabian Groffen gentoo-dev 2009-11-26 15:31:22 UTC
Can you try emerging without USE=python?  Annoyingly enough your vim is linked against host provided python, not Prefix'
Comment 3 Fabian Groffen gentoo-dev 2009-11-26 16:20:10 UTC
Please try this with 7.2.303, I made a fix to the eclass such that python linkage should succeed correctly, and Carbon is no longer dragged in.
Comment 4 Stuart Shelton 2009-11-27 00:12:57 UTC
I've just rebuilt, and the linkage is now:

$ otool -L `which vim`
/opt/gentoo/usr/bin/vim:
	/opt/gentoo/usr/lib/libX11.6.dylib
	/opt/gentoo/lib/libncurses.5.dylib
	/opt/gentoo/lib/libiconv.2.dylib
	/opt/gentoo/usr/lib/libintl.8.dylib
	/usr/lib/libSystem.B.dylib
	/usr/lib/libutil.dylib
	/opt/gentoo/usr/lib/libpython2.6.dylib
	/opt/gentoo/usr/lib/gcc/x86_64-apple-darwin10/4.2.1/libgcc_s.1.dylib

... but unfortunately it *still* fails with "Abort Trap" when executed as any other user on the system, just as before :(

I tried to run it under (prefix) gdb to find what's causing this, but get only:

(gdb) run
Starting program: /opt/gentoo/usr/bin/vim 
Unable to find Mach task port for process-id 82306: (os/kern) failure (0x5).

Using system gdb, the output is:

(gdb) run
Starting program: /opt/gentoo/usr/bin/vim
Reading symbols for shared libraries .++++++++......... done
Breakpoint 1 at 0x7fff8655ba14
Pending breakpoint 1 - "-[NSException raise]" resolved
^[7^[[?47h^[[?1h^[=
Program received signal SIGABRT, Aborted.
0x00007fff806d4fe6 in __kill ()
(gdb) where
#0  0x00007fff806d4fe6 in __kill ()
#1  0x00007fff80775dd3 in __abort ()
#2  0x00007fff8076a617 in __chk_fail ()
#3  0x00007fff806c3f11 in __strcpy_chk ()
#4  0x00000001000305c9 in call_func ()
#5  0x0000000100034b1d in get_func_tv ()
#6  0x0000000100039f24 in ex_call ()
#7  0x00000001000586b5 in do_one_cmd ()
#8  0x0000000100059aa9 in do_cmdline ()
#9  0x0000000100069ec0 in apply_autocmds_group ()
#10 0x000000010006a2ee in apply_autocmds ()
#11 0x000000010008cece in main ()
(gdb) quit
The program is running.  Exit anyway? (y or n)
Comment 5 Fabian Groffen gentoo-dev 2009-11-27 08:37:26 UTC
about gdb, you should change some permissions, as instructed by the elog message for gdb-apple

[ebuild   R   ] app-editors/vim-7.2.303  USE="nls python (-acl) -bash-completion -cscope -debug (-gpm) -minimal -perl -ruby -vim-pager -vim-with-x" 0 kB [1]

With this vim, I can't reproduce your abort (as a different user).  Vim is sensitive to CFLAGS (can be deduced from their configure.in), could you try compiling with a simple "-O2 -pipe"?
Comment 6 Stuart Shelton 2009-11-28 10:51:16 UTC
Thanks for the tip about GDB - I missed that one.  It'd be nice if operation-critical messages such as this (or notices about deprecated libraries being revdep-rebuilt and then removed) were added to a persistent log in an enews type way, which the user could then step through and remove once actioned.  So much is logged to the portage summary log that it's easy to miss notices even if you know what you're looking for.  But I digress...

I rebiuld vim with:

CFLAGS="-O2 -pipe" USE="-*" emerge -v vim

... and checked the built logs to confirm that only these CFLAGS were in use - and it's still doing it!

I'm not sure if this makes a difference, but I'm running OS X 10.6.2 in 64bit mode.

$ emerge --info
Portage 2.2.00.14896-prefix (prefix/darwin/macos/10.6/x64, gcc-4.2.1, unavailable, 10.2.0 x86_64)
=================================================================
System uname: Darwin-10.2.0-x86_64-i386-64bit
Timestamp of tree: Thu, 26 Nov 2009 22:19:57 +0000
distcc 2.18.5-Apple.1 i386-apple-darwin10.0 (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.4
dev-python/pycrypto: 2.1.0_beta1
sys-devel/autoconf:  2.63-r01.1
sys-devel/automake:  1.10.2-r00.1, 1.11
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.6b
ACCEPT_KEYWORDS="x64-macos x86-macos ~amd64 ~x64-macos ~x86 ~x86-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-apple-darwin10"
CFLAGS="-O2 -fno-math-errno -march=core2 -msse4.1 -mfpmath=sse -pipe"
CHOST="x86_64-apple-darwin10"
CONFIG_PROTECT="/etc /opt/gentoo/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /opt/gentoo/etc/ca-certificates.conf /opt/gentoo/etc/env.d /opt/gentoo/etc/env.d/java/ /opt/gentoo/etc/fonts/fonts.conf /opt/gentoo/etc/gconf /opt/gentoo/etc/revdep-rebuild /opt/gentoo/etc/terminfo"
CXXFLAGS="-O2 -fno-math-errno -march=core2 -msse4.1 -mfpmath=sse -pipe"
DISTDIR="/opt/gentoo/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages metadata-transfer news nostrip parallel-fetch preserve-libs protect-owned sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS=""
LINGUAS="en en_GB"
PKGDIR="/opt/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/opt/gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/opt/gentoo/var/tmp"
PORTDIR="/opt/gentoo/usr/portage"
PORTDIR_OVERLAY="/opt/gentoo/usr/local/portage"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="X aqua ares bash-completion berkdb bzip2 cairo chroot coreaudio cracklib expat faac faad fftw flac fontconfig fts3 gdbm gmp graphviz gs gtk hpn iconv icu idea ipv6 ithreads java jbig jpeg jpeg2k lcms lzma md5sum mmap mmx mmxext modules mp3 ncurses network nls objc objc++ ogg openmp pcre perl png prefix python readline sasl schroedinger slang sndfile speex spell sqlite sqlite3 sse sse2 ssl svg tcl test theora threads tiff tk trace truetype unicode urandom utils vdpau vorbis wmf x264 x64-macos xinerama xml xpm xvid zlib" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" USERLAND="GNU" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 Fabian Groffen gentoo-dev 2009-11-30 18:29:52 UTC
seems we made an error in the vim ebuild, could you retry 303 and verify you get 303 patches applied?
Comment 8 Stuart Shelton 2009-12-01 00:58:04 UTC
Yep - that's now fine :)