Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 74431
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Science Related Packages <sci@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Peter `MathFox' Roozemaal <mathfox@xs4all.nl>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 74431 depends on: Show dependency tree
Bug 74431 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-12-14 15:21 0000
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 From Patrick Kursawe 2004-12-15 06:13:23 0000 -------
I can reproduce the segfault on x86 with -r1 and -r3.

------- Comment #2 From Patrick Kursawe 2005-01-06 02:24:37 0000 -------
Ok, I think I have found a solution. Will soon be in portage with 2.1.6,
silently fixing in older versions.

------- Comment #3 From Peter `MathFox' Roozemaal 2005-01-06 15:18:06 0000 -------
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 From Patrick Kursawe 2005-01-07 01:42:50 0000 -------
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.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug