Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74431 - gp (pari-2.1.5-r3) segfaults when starting up
Summary: gp (pari-2.1.5-r3) segfaults when starting up
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-14 15:21 UTC by Peter `MathFox' Roozemaal
Modified: 2005-01-07 01:42 UTC (History)
0 users

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 Peter `MathFox' Roozemaal 2004-12-14 15:21:42 UTC
During startup gp exits with the message:
  ***   bug in GP (Segmentation Fault), please report
  ***   Error in the PARI system. End of program.

Reproducible: Always
Steps to Reproduce:
1. emerge pari
2. gp
3.

Actual Results:  
  ***   bug in GP (Segmentation Fault), please report
  ***   Error in the PARI system. End of program.

A gdb session:

GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...
(no debugging symbols found)...Using host libthread_db library
"/lib/libthread_db.so.1".
 
(gdb) run
Starting program: /usr/bin/gp
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x000000000040c5f8 in init_readline ()
(gdb) c
Continuing.
  ***   bug in GP (Segmentation Fault), please report
  ***   Error in the PARI system. End of program.
 
Program exited with code 01.


Expected Results:  
start an interactive session

Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r9 x86_64 4
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.nedlinux.nl http://ftp.easynet.nl/mirror/gentoo/
http://gentoo.mirror.sdv.fr http://gentoo.math.bme.hu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa arts berkdb bitmap-fonts bonobo cdr crypt doc dvd dvdr
esd f77 fam flac fortran gdbm gif gnome gpm gstreamer gtk gtkhtml guile
imagemagick imlib ipv6 java jp2 jpeg junit kde ldap libwww lm-sensors lzw
lzw-tiff mad mikmod motif mozilla multilib mysql ncurses nls oggvorbis opengl
oss pam pda pdflib perl png postgres python qt readline samba sdl slang ssl
tcltk tcpd tetex tiff
truetype usb userlocales xml xml2 xmms xpm xrandr xv zlib"
 

Note: When compiling pari there are some unusual messages from the compiler:

/usr/bin/gcc -c -O2 -DGCC_INLINE -fPIC -I. -I../src/headers  -o buch2.o
../src/basemath/buch2.c
../src/basemath/buch2.c: In function `buchall':
../src/basemath/buch2.c:2925: warning: function called through a non-compatible
type
../src/basemath/buch2.c:2925: note: if this code is reached, the program will abort

/usr/bin/gcc -c -O2 -DGCC_INLINE -I. -I../src/headers -I../src/language
-I/usr/include -o gp_rl.o ../src/gp/gp_rl.c
../src/gp/gp_rl.c: In function `get_matches':
../src/gp/gp_rl.c:307: warning: function called through a non-compatible type
../src/gp/gp_rl.c:307: note: if this code is reached, the program will abort
../src/gp/gp_rl.c: In function `init_readline':
../src/gp/gp_rl.c:633: warning: function called through a non-compatible type
../src/gp/gp_rl.c:633: note: if this code is reached, the program will abort
../src/gp/gp_rl.c:634: warning: function called through a non-compatible type
../src/gp/gp_rl.c:634: note: if this code is reached, the program will abort
../src/gp/gp_rl.c:635: warning: function called through a non-compatible type
../src/gp/gp_rl.c:635: note: if this code is reached, the program will abort
../src/gp/gp_rl.c:636: warning: function called through a non-compatible type
../src/gp/gp_rl.c:636: note: if this code is reached, the program will abort
../src/gp/gp_rl.c:637: warning: function called through a non-compatible type
../src/gp/gp_rl.c:637: note: if this code is reached, the program will abort
../src/gp/gp_rl.c:638: warning: function called through a non-compatible type
../src/gp/gp_rl.c:638: note: if this code is reached, the program will abort
../src/gp/gp_rl.c:640: warning: function called through a non-compatible type
../src/gp/gp_rl.c:640: note: if this code is reached, the program will abort
../src/gp/gp_rl.c:641: warning: function called through a non-compatible type
../src/gp/gp_rl.c:641: note: if this code is reached, the program will abort
../src/gp/gp_rl.c:642: warning: function called through a non-compatible type
../src/gp/gp_rl.c:642: note: if this code is reached, the program will abort
../src/gp/gp_rl.c:643: warning: function called through a non-compatible type
../src/gp/gp_rl.c:643: note: if this code is reached, the program will abort
../src/gp/gp_rl.c:644: warning: function called through a non-compatible type
../src/gp/gp_rl.c:644: note: if this code is reached, the program will abort
../src/gp/gp_rl.c:645: warning: function called through a non-compatible type
../src/gp/gp_rl.c:645: note: if this code is reached, the program will abort
../src/gp/gp_rl.c:646: warning: function called through a non-compatible type
../src/gp/gp_rl.c:646: note: if this code is reached, the program will abort
../src/gp/gp_rl.c:647: warning: function called through a non-compatible type
../src/gp/gp_rl.c:647: note: if this code is reached, the program will abort
Comment 1 Patrick Kursawe (RETIRED) gentoo-dev 2004-12-15 06:13:23 UTC
I can reproduce the segfault on x86 with -r1 and -r3.
Comment 2 Patrick Kursawe (RETIRED) gentoo-dev 2005-01-06 02:24:37 UTC
Ok, I think I have found a solution. Will soon be in portage with 2.1.6, silently fixing in older versions.
Comment 3 Peter `MathFox' Roozemaal 2005-01-06 15:18:06 UTC
Thanks for fixing.

I'ld prefer if Gentoo upped the revision number with every bug fixed... There is one flaw left in the 2.1.5-r3-fixed-today(or was that yesterday) version: that's the basemath/buch2.c error message during compile.

Both the 2.1.5-r3 and 2.1.6 version seem to work correctly.
Comment 4 Patrick Kursawe (RETIRED) gentoo-dev 2005-01-07 01:42:50 UTC
That was a special case yesterday: Those with ~x86 would get the bump to 2.1.6, those with x86 would get the one to 2.1.5-r3.
2.1.5-r4 is out now which fixes the problem in buch2.c.
Thanks for keeping your eyes open.