Summary: | error in python script breaks mx-base-2.0.5 build | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Benjamin Collins <bencollins> |
Component: | [OLD] Development | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | askwar, bencollins |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Benjamin Collins
2004-06-28 08:56:34 UTC
What version of Python are you using? *** Bug 57968 has been marked as a duplicate of this bug. *** that looks like some sort of hardened stuff? is that stack smashing? Could related to bug 50309 (python not liking -O3). My system is built under -O2. I did try building egenix-mx-base with -O3 but still couldn't recreate the bug. Looks like a patch is on the way. Jason, you said, that it looks like a patch is on its way - any idea, if it's taking a rather long detour? *G* IOW: Problem still exists. /var/db/pkg/dev-lang/python-2.3.4 used here. hardened toolchain. -O3 compiled python. 22:32:25 askwar@alturo:~ $ emerge info Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r3.PHP2.netconsole_8kb-stack.03 i686) ================================================================= System uname: 2.6.9-gentoo-r3.PHP2.netconsole_8kb-stack.03 i686 Intel(R) Celeron(R) CPU 2.00GHz Gentoo Base System version 1.6.5 ccache version 2.3 [enabled] 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-r7 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" 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="-fomit-frame-pointer -pipe -O2 -march=pentium4" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache collision-protect distlocks sandbox sfperms" GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://194.117.158.29/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="acl apache2 apm arts async avi bzlib crypt cscope cups curl curlwrappers diet djbfft encode exif fam flash foomaticdb ftp fwdzone gd gdbm gif gnome gtk2 hal hardened iconv imagemagick imap imlib immqt-bc ithreads javascript jpeg kde libedit libg++ libwww lzo lzw lzw-tiff mad maildir mailwrapper mbox mmap mmx mng mpeg mysql ncurses nls no-old-linux noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nojdepend nojsch nojython nolog4j nooro noregexp norhino noxalan noxerces nptl offensive oggvorbis opengl oss pam parse-clocks pcntl pcre pdflib perl pic pie png posix postgres pwdb python qt quicktime readline recode sasl sdl shared slang sockets spell sse ssl sysvipc tcpd tiff truetype unicode x86 xfs xml2 xmms xv zlib linguas_de" I now compiled dev-lang/python-2.3.4 with -O2 and get the same error message. So, O2 vs. O3 isn't the cause here. Hmm, just noticed something... At the end of the python compilation, I get these messages: * Byte compiling python modules for python-2.3 .. ... /usr/lib/python2.3/site-packages/mx/TextTools/Examples/pytag.py:47: SyntaxWarning: name 'debugging' is used prior to global declaration def pytag(text,table,startindex=0,len_text=not_set,taglist=not_set): python2.3: stack smashing attack in function symtable_node() /usr/portage/eclass/python.eclass: line 138: 4923 Abgebrochen python${PYVER} ${myroot}/usr/lib/python${PYVER}/compileall.py ${compileopts} $@ /usr/lib/python2.3/site-packages/mx/TextTools/Examples/pytag.py:47: SyntaxWarning: name 'debugging' is used prior to global declaration def pytag(text,table,startindex=0,len_text=not_set,taglist=not_set): python2.3: stack smashing attack in function symtable_node() /usr/portage/eclass/python.eclass: line 138: 4960 Abgebrochen python${PYVER} -O ${myroot}/usr/lib/python${PYVER}/compileall.py ${compileopts} $@ [ !! ] Just like in the egenix build, it says "stack smashing attack". So I doubt that this is an issue with egenix. I much rather suppose, that it has to do with python or the toolchain. Python now replaces -O3 on hardened, no response from original reporter, closing a stale bug. |