Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 202566

Summary: >=sys-apps/portage-2.2_pre8882: portageq fails
Product: Portage Development Reporter: drftcicfn
Component: Core - External InteractionAssignee: Portage team <dev-portage>
Status: VERIFIED INVALID    
Severity: normal    
Priority: High    
Version: 2.2   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description drftcicfn 2007-12-17 12:31:56 UTC
portageq doesn't work, cannot emerge some packages:
/usr/lib/portage/bin/portageq:415: SyntaxWarning: name 'portage' is assigned to before global declaration
  def main():
*** stack smashing detected ***: python - terminated
python: stack smashing attack in function symtable_node - terminated 

emerge --info:
Portage 2.2_pre8923 (default-linux/x86/2007.0, gcc-3.4.6, glibc-2.6.1-r0, 2.6.23-gentoo-r3 i686)
=================================================================
System uname: 2.6.23-gentoo-r3 i686 Pentium II (Deschutes)
Timestamp of tree: Sat, 15 Dec 2007 02:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.8.5-r3, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -mtune=pentium2 -O2 -fomit-frame-pointer -s -pipe -DNDEBUG -DG_DISABLE_ASSERT"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium2 -mtune=pentium2 -O2 -s -DNDEBUG -DG_DISABLE_ASSERT"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests collision-protect digest distlocks metadata-transfer nodoc preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.roedu.net/pub/mirrors/gentoo.org/ http://gentoo.po.opole.pl"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LINGUAS="pl"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/arcon-portage /usr/portage/local/layman/Eaedificata"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip apache2 bash-completion bcmath bidi bitmap-fonts bzip2 chroot cli cracklib crypt ctype curl curlwrappers dri exif expat extensions fastcgi fortran ftp gd gdbm geoip gif gmp html iconv imagemagick imap isdnlog java javascript jpeg mhash midi mime mng mudflap mysql mysqli ncurses netboot nls nptl nptlonly openmp openssh openssl pam pcre pdf perl phppng pppd python qos readline reflection rpc samba session snmp spl ssl svg symlink tcl tcpd tetex tftp tiff tokenizer truetype truetype-fonts type1-fonts unicode usb vhosts x86 xinetd xml xmlrpc xpm xsl zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" 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="glibc" INPUT_DEVICES="keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2007-12-17 20:32:46 UTC
(In reply to comment #0)
> portageq doesn't work, cannot emerge some packages:
> /usr/lib/portage/bin/portageq:415: SyntaxWarning: name 'portage' is assigned to
> before global declaration
>   def main():

The above is only a warning. I don't receive that warning with python-2.5.1-r4.

> *** stack smashing detected ***: python - terminated
> python: stack smashing attack in function symtable_node - terminated 

It seems like something is wrong with python. Maybe to can us a binary package to install a working version python.
Comment 2 drftcicfn 2007-12-18 20:38:47 UTC
I have unmasked python-2.5.*, after emerging it, portage is working again.
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-12-19 10:55:32 UTC
(In reply to comment #2)
> I have unmasked python-2.5.*, after emerging it, portage is working again.

Thanks for information! It seems that Portage 2.2* requires Python >=2.5, so I will adjust dependencies.
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2007-12-19 13:29:02 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > I have unmasked python-2.5.*, after emerging it, portage is working again.
> 
> Thanks for information! It seems that Portage 2.2* requires Python >=2.5, so I
> will adjust dependencies.

It shouldn't require 2.5, and I don't see anything in that area of portageq that could trigger such a warning, so I'm pretty sure that this was just some local issue with python.
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-12-20 17:50:43 UTC
(In reply to comment #4)
> It shouldn't require 2.5, and I don't see anything in that area of portageq
> that could trigger such a warning, so I'm pretty sure that this was just
> some local issue with python.

I unpacked 2007.0 stage3 with Python 2.4*, chrooted into it, updated Portage to 2.2* and I'm confirming that warning (without stack smashing), so I think that it is worth to depend on Python >=2.5 to not have that warning.
Comment 6 Zac Medico gentoo-dev 2007-12-21 00:04:46 UTC
Thanks, I've moved the global statement in svn r9004 and python no longer produces the warning.