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

Bug 212769

Summary: dev-lang/python-2.5.4-r2 tests fail on uclibc/hardened
Product: Gentoo Linux Reporter: Aurélien Francillon <aurelien.francillon>
Component: [OLD] Core systemAssignee: Embedded Gentoo Team <embedded>
Status: RESOLVED OBSOLETE    
Severity: normal CC: python
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dev-lang:python-2.5.4-r2:20090519-082034.log

Description Aurélien Francillon 2008-03-08 22:51:07 UTC
emerging dev-lang/python-2.4.4-r9 on a gentoo uclibc/hardened fails with the following message :

3 tests failed: 
    test_largefile test_openpty test_resource
34 tests skipped:
    test_aepack test_al test_applesingle test_bsddb185 test_bsddb3
    test_cd test_cl test_codecmaps_cn test_codecmaps_hk
    test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses
    test_gl test_imgfile test_linuxaudiodev test_locale test_macfs
    test_macostools test_nis test_normalization test_ossaudiodev
    test_pep277 test_plistlib test_scriptpackages test_socket_ssl
    test_socketserver test_sunaudiodev test_timeout test_unicode_file
    test_urllib2net test_urllibnet test_winreg test_winsound
1 skip unexpected on linux2:
    test_locale
Re-running failed tests in verbose mode
Re-running test 'test_largefile' in verbose mode
create large file via seek (may be sparse file) ...
check file size with os.fstat
2500000001L =?= 2500000001L ... yes
check file size with os.stat
2500000001L =?= 2500000001L ... yes
play around with seek() and read() with the built largefile
test test_largefile crashed -- exceptions.IOError: [Errno 75] Value too large for defined data type: '@test'
Traceback (most recent call last):
  File "./Lib/test/regrtest.py", line 492, in runtest
    the_package = __import__(abstest, globals(), locals(), [])
  File "/var/tmp/portage/dev-lang/python-2.4.4-r9/work/Python-2.4.4/Lib/test/test_largefile.py", line 89, in ?
    f = open(name, 'rb')
IOError: [Errno 75] Value too large for defined data type: '@test'
Re-running test 'test_openpty' in verbose mode
Calling os.openpty()
test test_openpty crashed -- exceptions.OSError: [Errno 13] Permission denied
Traceback (most recent call last):
  File "./Lib/test/regrtest.py", line 492, in runtest
    the_package = __import__(abstest, globals(), locals(), [])
  File "/var/tmp/portage/dev-lang/python-2.4.4-r9/work/Python-2.4.4/Lib/test/test_openpty.py", line 9, in ?
    master, slave = os.openpty()
OSError: [Errno 13] Permission denied
Re-running test 'test_resource' in verbose mode
True
test test_resource crashed -- exceptions.IOError: [Errno 27] File too large
Traceback (most recent call last):
  File "./Lib/test/regrtest.py", line 492, in runtest
    the_package = __import__(abstest, globals(), locals(), [])
  File "/var/tmp/portage/dev-lang/python-2.4.4-r9/work/Python-2.4.4/Lib/test/test_resource.py", line 42, in ?
    f.close()
IOError: [Errno 27] File too large
make: *** [test] Error 1


Reproducible: Always




emerge --info
Portage 2.1.4.4 (uclibc/x86/hardened, gcc-3.4.6, uclibc-0.9.28.3-r2, 2.6.22-hardened-r8 i686)
=================================================================
System uname: 2.6.22-hardened-r8 i686 Pentium III (Coppermine)
Timestamp of tree: Sat, 08 Mar 2008 02:16:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-uclibc"
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -msse -mmmx"
CHOST="i686-pc-linux-uclibc"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /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=pentium3 -O2 -pipe -fomit-frame-pointer -msse -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict test unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.proxad.net/mirrors/ftp.gentoo.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/aurel/testingportage-hardeneduclibc"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="aalib apache2 audiofile berkdb bzip2 caps cdb chroot cli cracklib crypt curl dri dts expat ffmpeg gd gdbm ggi gmp hardened imagemagick imap ipv6 jpeg lcms libcaca libwww maildir mhash midi mmx mudflap ncurses no-htdocs ogg openmp pcre perl php pic pie png python readline reflection sasl session sftplogging snmp spl sse ssl tcpd tiff truetype uclibc uclibc-compat udev usb wmf x86 xml2 xorg xvid zlib" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="uclibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-05-18 15:54:45 UTC
Please test with a newer version of Python.
Comment 2 Aurélien Francillon 2009-05-19 09:39:26 UTC
Created attachment 191762 [details]
dev-lang:python-2.5.4-r2:20090519-082034.log

Log file of emerge python 2.5.4-r2
Comment 3 Aurélien Francillon 2009-05-19 09:43:15 UTC
still has many failures including tests :

 test_ctypes
        find_library('c') ->  libc.so.0
        find_library('m') ->  libm.so.0
make: *** [test] Killed (core dumped)

full log attached
Comment 4 Jan 2009-05-26 17:45:13 UTC
(In reply to comment #3)
> still has many failures including tests :
> 
>  test_ctypes
>         find_library('c') ->  libc.so.0
>         find_library('m') ->  libm.so.0
> make: *** [test] Killed (core dumped)

I encountered similar problems recently; did you try the workarounds suggested in these bug reports?

http://bugs.gentoo.org/show_bug.cgi?id=234498 (test_ctypes)
http://bugs.gentoo.org/show_bug.cgi?id=268051 (test_largefile)

Those helped me. Did you encounter additional problems?
Comment 5 Aurélien Francillon 2009-05-26 21:32:01 UTC
Thanks for the hint they looks to be similar, 
however they seems to provide only workarounds...
I recently EOL'ed the machine on which I had this problem so I can't test it 
anymore

Aurélien
Comment 6 Patrice Clement gentoo-dev 2015-03-09 10:11:26 UTC
patrice@vmint ~/gentoo-x86/dev-lang/python $ ls
ChangeLog       CVS    Manifest      python-2.7.9-r1.ebuild  python-3.2.5-r6.ebuild  python-3.4.0.ebuild  python-3.4.2.ebuild
ChangeLog-2011  files  metadata.xml  python-2.7.9-r2.ebuild  python-3.3.5-r1.ebuild  python-3.4.1.ebuild  python-3.4.3.ebuild

Python 2.5 was taken out of the tree a while ago. I believe we don't support it anymore. Closing this bug.