Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68695 - Using psyco to speed up portage 2.0.51 and emerge crash.
Summary: Using psyco to speed up portage 2.0.51 and emerge crash.
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-24 05:32 UTC by Vincenzo Russo aka Nemo
Modified: 2004-10-24 05: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 Vincenzo Russo aka Nemo 2004-10-24 05:32:30 UTC
Psyco, the python JIT compiler, works well with previous version(s) of portage.
Now, if I add the following code to emerge source code (after about 8th row), emerge crashes: 

========PSYCO STUFF==========
try:
        import psyco
        psyco.full()
except ImportError:
        pass
======END OF PSYCO STUFF=======

Emerge receive a SIGSEGV signal on the first run (after the psyco-patch operation) of an action, but the second run (rarely the third) of the same action goes well.
My experience: 

- I run a search (emerge -s) ==> SIGSEGV
- I re-run the search ==> OK
- I run (an)a (un)merge ==> SIGSEGV
- I re-run (an)a (un)merge ==> OK
- I run an `emerge -uDp world` ==> SIGSEGV
- I re-run the previous command ==> SIGSEGV in a another point
- I re-re-run the previous command ==> OK

I hope I was clear.

Reproducible: Sometimes
Steps to Reproduce:
1. run (for the first time after psyco-patch) an emerge action
2. re-run the same action
3.

Actual Results:  
the first time emerge crash (SIGSEGV received)
the second (rarely the third) time emerge goes well on the same action

Expected Results:  
the first time emerge goes without crash

Portage 2.0.51-r2 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20041006-r0,
2.6.8-gentoo-r3 i686)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -mmmx -msse -m3dnow -mfpmath=387 -fforce-addr
-fomit-frame-pointer -ffast-math -fprefetch-loop-arrays -fmove-all-movables"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -mmmx -msse -m3dnow -mfpmath=387
-fforce-addr -fomit-frame-pointer -ffast-math -fprefetch-loop-arrays
-fmove-all-movables"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://mirror.switch.ch/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib acl acpi alsa apache2 apm arts atlas avi berkdb bitmap-fonts
bluetooth bonobo bootsplash cairo cddb cdparanoia cdr crypt cscope cups curl dba
directfb divx4linux doc dvd dvdr encode esd f77 fbcon flac flash foomaticdb gcj
gd gdbm gif gimpprint gphoto2 gpm gtk gtk2 gtkhtml guile imagemagick imlib
imlib2 java jpeg kde libg++ libwww mad mikmod mmx motif mozilla mpeg mysql
ncurses nls no_wxgtk1 oggvorbis ooo-kde openal opengl oss pam pdflib perl php
png postgres python qt quicktime readline ruby samba sdl session slang spell sse
ssl svga tcpd tetex tiff truetype unicode usb wmf wxwindows x86 xml xml2 xmms
xosd xprint xv zlib linguas_it"
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2004-10-24 05:47:31 UTC
You modify portage, it's your fork, it's your bug.