Summary: | TEXTRELS in dev-perl/math-pari-2.010706 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Patrick Lauer <patrick> |
Component: | New packages | Assignee: | Gentoo Perl team <perl> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aurelien.francillon, hardened, pageexec, powerman-asdf |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Patrick Lauer
![]() which version of sci-mathematics/pari do you have installed? (curious) sci-mathematics/pari-2.1.7-r1 that package has textrels, bug 143764 Because math-pari builds with a side by side copy of the source from sci-math/pari, can we hold off until the sci folks have a chance to look at pari? (I'm suspecting their fix will at least carry over in part if not full) looks like this was resolved back when sci-math/pari was resolved. please reopen if this is still occurring for you. (In reply to comment #4) > looks like this was resolved back when sci-math/pari was resolved. please > reopen if this is still occurring for you. bug #143764 (TEXTRELS in sci-mathematics/pari-2.1.7-r1) is still open, and the textrels in dev-perl/math-pari-2.010706 are causing "emerge math-pari" to fail with: "Can't load '/var/tmp/portage/dev-perl/math-pari-2.010709/work/Math-Pari-2.010709/blib/arch/auto/Math/Pari/Pari.so' for module Math::Pari: /var/tmp/portage/dev-perl/math-pari-2.010709/work/Math-Pari-2.010709/blib/arch/auto/Math/Pari/Pari.so: cannot make segment writable for relocation: Permission denied at /usr/lib/perl5/5.8.8/i686-linux/DynaLoader.pm line 230." Portage 2.1.2.2 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r5, 2.6.18-hardened i686) ================================================================= System uname: 2.6.18-hardened i686 AMD Athlon(tm) XP 1800+ Gentoo Base System release 1.12.9 Timestamp of tree: Thu, 26 Apr 2007 23:20:01 +0000 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-mtune=athlon-xp -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-mtune=athlon-xp -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict test userfetch userpriv usersandbox" GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo http://mirror.aarnet.edu.au/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes" 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/local/portage/aross /home/andrew/gentoo-x86" SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" USE="acl apache2 bash-completion berkdb bzip2 caps crypt cups enscript fam hardened jpeg jpeg2k midi ncurses nls nptl nptlonly pic png postgres python readline sasl silvercity sqlite ssl test tiff truetype unicode urandom vhosts x86 xml xorg 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" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS (In reply to comment #5) > (In reply to comment #4) > > looks like this was resolved back when sci-math/pari was resolved. please > > reopen if this is still occurring for you. > > bug #143764 (TEXTRELS in sci-mathematics/pari-2.1.7-r1) is still open, and the > textrels in dev-perl/math-pari-2.010706 are causing "emerge math-pari" to fail > with: [SNIP] worse fixing 143764 wont solve all problems : - dev-perl/math-pari has a hard dependency on sci-math/pari with the same version number - #143764 will be solved by stabilisation of sci-math/pari-2.3.0 - dev-perl/math-pari-2.3.0 does not exists... changing the hard dependecy to pari-2.3.0 it warns : ### Math::Pari support of GP/PARI library version 2.3.* should be ### considered cursory only. One may need to downgrade to 2.1.7, ### or run Makefile.PL with option machine=none if the tests fail. ### The test t/55_intnum.t takes a very long time to complete. ### The following subtests are known to fail: ### t/55_intnum.t 51 2 3.92% 12 50 ### t/55_ploth.t 34 1 2.94% 4 ### t/55_program.t 37 1 2.70% 2 but works for me with Mdev-perl/Mail-DKIM ideas for the best way to fix the mess ? cheers Aurélien On hardened system, after upgrade from 2.6.26-hardened-r9 to 2.6.27-hardened-r8, every perl script which 'use Math::Pari' will crash with segfault. To work around either (if you need Math::Pari): # work around 'text file busy' error: cp /usr/bin/perl5.8.8 /usr/bin/perl5.8.8.tmp paxctl -m /usr/bin/perl5.8.8.tmp mv /usr/bin/perl5.8.8.tmp /usr/bin/perl5.8.8 or (if it usage optional): rm /usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/Math/Pari/Pari.so Both ways are bad - either relax PaX protection for all perl scripts or stop using Math::Pari. :( I think severity should be changed to 'critical'. P.S. The interesting question - why what happens only after kernel upgrade? Maybe that's because of some PaX improvements in 2.6.27 kernel? (In reply to comment #7) > On hardened system, after upgrade from 2.6.26-hardened-r9 to > 2.6.27-hardened-r8, every perl script which 'use Math::Pari' will crash with > segfault. > > To work around either (if you need Math::Pari): > # work around 'text file busy' error: > cp /usr/bin/perl5.8.8 /usr/bin/perl5.8.8.tmp > paxctl -m /usr/bin/perl5.8.8.tmp > mv /usr/bin/perl5.8.8.tmp /usr/bin/perl5.8.8 > or (if it usage optional): > rm /usr/lib/perl5/site_perl/5.8.8/i686-linux/auto/Math/Pari/Pari.so > > Both ways are bad - either relax PaX protection for all perl scripts or stop > using Math::Pari. :( > > > I think severity should be changed to 'critical'. > > > P.S. The interesting question - why what happens only after kernel upgrade? > Maybe that's because of some PaX improvements in 2.6.27 kernel? > File a separate bug report. > File a separate bug report. filed bug 261357 This should be fixed in =dev-perl/math-pari-2.01080601 which uses pari-2.3.4. Also tests do not fail with this version. |