Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143763 - TEXTRELS in dev-perl/math-pari-2.010706
Summary: TEXTRELS in dev-perl/math-pari-2.010706
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-13 03:57 UTC by Patrick Lauer
Modified: 2009-11-11 10:01 UTC (History)
4 users (show)

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 Patrick Lauer gentoo-dev 2006-08-13 03:57:31 UTC
/usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/Math/Pari/Pari.so gets flagged by scanelf, belongs to dev-perl/math-pari-2.010706

 TYPE   TEXTRELS FILE 
  Pari.so: overflow [0x1E7766] in addll [0x1E7758]
  Pari.so: overflow [0x1E7776] in addllx [0x1E7770]
  Pari.so: overflow [0x1E7786] in addllx [0x1E7770]
  Pari.so: overflow [0x1E779E] in subll [0x1E7790]
  Pari.so: overflow [0x1E77AE] in subllx [0x1E77A8]
  Pari.so: overflow [0x1E77BE] in subllx [0x1E77A8]
  Pari.so: hiremainder [0x1E77D9] in shiftl [0x1E77C8]
  Pari.so: hiremainder [0x1E77F1] in shiftlr [0x1E77E0]
  Pari.so: hiremainder [0x1E7812] in mulll [0x1E7808]
  Pari.so: hiremainder [0x1E7824] in addmul [0x1E7818]
  Pari.so: hiremainder [0x1E782C] in addmul [0x1E7818]
  Pari.so: hiremainder [0x1E783E] in divll [0x1E7838]
  Pari.so: hiremainder [0x1E7848] in divll [0x1E7838]
ET_DYN  /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/auto/Math/Pari/Pari.so

Portage 2.1.1_pre5 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.16-hardened-r11bonsai i686)
=================================================================
System uname: 2.6.16-hardened-r11bonsai i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.12.4
Last Sync: Sat, 12 Aug 2006 09:50:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks parralelfetch sandbox sfperms strict userfetch userpriv"
GENTOO_MIRRORS="ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LINGUAS=""
MAKEOPTS="-j2"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync12.de.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac aalib acpi alsa apache2 apm avi bash-completion berkdb bidi bitmap-fonts bootsplash bzip2 ccache cdda cddb cdparanoia cdr chroot cli crypt cups curl dga dlloader dri dv dvd dvdr dvdread ecc eds elibc_glibc emboss encode fbcon ffmpeg fftw foomaticdb fortran gd-external gdbm gif gimp gimpprint glep glitz gmp gpm graphviz imagemagick imap imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jabber jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kernel_linux kqemu ladcca lcms libg++ libwww lzo mad matroska mhash mikmod mime mjpeg mmx mmxext mng motif mozilla mozsvg mp3 mpeg ncurses nls nptl nptlonly nvidia objc ogg openal oss pam parse-clocks pcre pcsc-lite pdf pdflib perl physfs png pppd python qt3 qt4 quicktime readline recode reflection samba sdl session spell spl sqlite sse sse2 ssl stream tcltk tcpd threads tiff transcode truetype truetype-fonts type1-fonts udev unicode userland_GNU utf8 video_cards_nv video_cards_vesa video_cards_vga visualization vorbis win32codecs wxgtk1 xine xml xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2006-08-14 08:35:24 UTC
which version of sci-mathematics/pari do you have installed? (curious)
Comment 2 Patrick Lauer gentoo-dev 2006-08-14 09:27:19 UTC
sci-mathematics/pari-2.1.7-r1

that package has textrels, bug 143764
Comment 3 Michael Cummings (RETIRED) gentoo-dev 2006-08-14 11:13:37 UTC
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)
Comment 4 Michael Cummings (RETIRED) gentoo-dev 2007-03-30 00:17:46 UTC
looks like this was resolved back when sci-math/pari was resolved. please reopen if this is still occurring for you.
Comment 5 Andrew Ross (RETIRED) gentoo-dev 2007-05-05 01:47:04 UTC
(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


Comment 6 Aurélien Francillon 2007-05-24 19:41:15 UTC
(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 
Comment 7 Alex Efros 2009-03-05 18:17:01 UTC
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?
Comment 8 Gordon Malm (RETIRED) gentoo-dev 2009-03-05 19:42:20 UTC
(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.
Comment 9 Alex Efros 2009-03-05 21:40:53 UTC
> File a separate bug report.

filed bug 261357
Comment 10 Torsten Veller (RETIRED) gentoo-dev 2009-11-11 10:01:56 UTC
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.