Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194959 - stabilize sci-calculators/pcalc-1.1
Summary: stabilize sci-calculators/pcalc-1.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: SpanKY
URL:
Whiteboard:
Keywords: STABLEREQ
Depends on:
Blocks:
 
Reported: 2007-10-07 05:24 UTC by Marcus Jarnet
Modified: 2008-01-03 03:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
log about failed tests (testsuite.log,2.57 KB, text/plain)
2007-10-08 13:32 UTC, Christian Faulhammer (RETIRED)
Details
HPPA's testsuite.log (194959-sci-calculators-pcalc-1.1-testsuite.log,10.58 KB, text/plain)
2007-10-09 00:14 UTC, Jeroen Roovers (RETIRED)
Details
testsuite-amd64.log (testsuite-amd64.log,10.58 KB, text/plain)
2007-10-12 14:58 UTC, Angelo Arrifano (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Jarnet 2007-10-07 05:24:40 UTC
pcalc-1.0.0-r1 does not give the correct results to any calculations. examples:

pcalc 2+2
        2               0x2             0y10
pcalc 2*2
        0               0x0             0y0
pcalc 2-2
       -2              0xfffffffe      0y11111111111111111111111111111110

looking at the strace output it seems pcalc is coming up with a random character  in the beginning of the read ( was a different character everytime ):

16950 read(3, "T2+2 \n", 8192)          = 6

putting the string in quotes produced the same results.




Reproducible: Always

Steps to Reproduce:
1. emerge pcalc
2. try any calculation such as 2+2
3.

Actual Results:  
got a random character inserted into the read buffer which messed up the results

Expected Results:  
correct result

System used on ( i also tested on my laptop and had a friend test it and we got the same results ):

------------------
emerge --info
Portage 2.1.3.9 (default-linux/x86/2007.0, gcc-4.1.1, glibc-2.5-r0, 2.6.22-gentoo-r2 i686)
=================================================================
System uname: 2.6.22-gentoo-r2 i686 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Timestamp of tree: Thu, 04 Oct 2007 03:50:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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.17
sys-devel/gcc-config: 1.4.0
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /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/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ "
MAKEOPTS="-j4"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X aac acl alsa apache2 berkdb bitmap-fonts cgi cli cracklib crypt cups dri dvd dvdread encode faad flaac flac fortran gd gdbm gnutls gpm gtk iconv imlib isdnlog jpeg jpg kde lm_sensors mad midi mmx mp3 mpd mpeg mpg msn mudflap mysql ncurses nls nptl nptlonly ogg opengl openmp pam pcre perl png pppd python qt readline reflection session spl sse sse2 ssl tcpd tk truetype-fonts type1-fonts unicode vorbis win32codecs x86 xcomposite xorg xv xvid xvmc zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
----------------

bash --version
GNU bash, version 3.2.17(1)-release (i686-pc-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.

---------

emerge -V
Portage 2.1.3.9 (default-linux/x86/2007.0, gcc-4.1.1, glibc-2.5-r0, 2.6.22-gentoo-r2 i686)
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-10-07 11:54:37 UTC
Does 1.1 work for you?
Comment 2 Marcus Jarnet 2007-10-07 17:48:56 UTC
(In reply to comment #1)
> Does 1.1 work for you?
> 

I did not try 1.1 at first because its masked by ~x86, but I installed it now and it appears to be working.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-10-07 17:50:34 UTC
Well, lets stabilize 1.1 then.
Comment 4 Christian Faulhammer (RETIRED) gentoo-dev 2007-10-08 13:32:48 UTC
Created attachment 132916 [details]
log about failed tests

fails here on x86
Comment 5 SpanKY gentoo-dev 2007-10-08 13:38:20 UTC
i'm pretty sure it isnt a regression

i'll look into fixing the source upstream
Comment 6 Raúl Porcel (RETIRED) gentoo-dev 2007-10-08 14:11:10 UTC
Funnily enough it only fails those tests on x86.

alpha/ia64/sparc stable
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2007-10-08 23:09:26 UTC
HPPA:

>>> Test phase [check]: sci-calculators/pcalc-1.1
make -C ptest check
make[1]: Entering directory `/dev/shm/portage/sci-calculators/pcalc-1.1/work/pca
lc-1.1/ptest'
./testsuite
## ---------------------- ##
## pcalc svn  test suite. ##
## ---------------------- ##
  1: 001                                             FAILED (pcalc.001.at:3)
  2: 002                                             FAILED (pcalc.002.at:3)
  3: 003                                             FAILED (pcalc.003.at:3)
  4: 004                                             FAILED (pcalc.004.at:3)
  5: 005                                             FAILED (pcalc.005.at:3)
  6: 006                                             FAILED (pcalc.006.at:3)
  7: 007                                             FAILED (pcalc.007.at:3)
  8: 008                                             FAILED (pcalc.008.at:3)
  9: 009                                             FAILED (pcalc.009.at:3)

## ------------- ##
## Test results. ##
## ------------- ##

ERROR: All 9 tests were run,
9 failed unexpectedly.
## -------------------------- ##
## testsuite.log was created. ##
## -------------------------- ##

Please send `testsuite.log' and all information you think might help:

   To: <pcalc-devel@lists.sourceforge.net>
   Subject: [pcalc svn ] testsuite: 1 2 3 4 5 6 7 8 9 failed


You may investigate any problem if you feel able to do so, in which
case the test suite provides a good starting point.  Its output may
be found below `testsuite.dir'.

make[1]: *** [check] Error 1
make[1]: Leaving directory `/dev/shm/portage/sci-calculators/pcalc-1.1/work/pcal
c-1.1/ptest'
make: *** [check] Error 2
 *
 * ERROR: sci-calculators/pcalc-1.1 failed.
Comment 8 Christian Faulhammer (RETIRED) gentoo-dev 2007-10-08 23:14:28 UTC
(In reply to comment #7)
> HPPA:
[...]
> Please send `testsuite.log' and all information you think might help:

 Your testsuite.log for comparison?
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2007-10-09 00:14:06 UTC
Created attachment 132973 [details]
HPPA's testsuite.log

(In reply to comment #8)
>  Your testsuite.log for comparison?

Sure thing
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2007-10-09 00:25:52 UTC
Comment on attachment 132973 [details]
HPPA's testsuite.log

It appears to be sandbox related: FEATURES="test userpriv" does not fail any tests for HPPA.
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2007-10-09 00:26:32 UTC
Stable for HPPA.
Comment 12 Christian Faulhammer (RETIRED) gentoo-dev 2007-10-09 06:57:25 UTC
(In reply to comment #10)
> (From update of attachment 132973 [details] [edit])
> It appears to be sandbox related: FEATURES="test userpriv" does not fail any
> tests for HPPA.

 No effect on x86.
Comment 13 Lars Weiler (RETIRED) gentoo-dev 2007-10-10 20:41:16 UTC
ppc stable
Comment 14 Jurek Bartuszek (RETIRED) gentoo-dev 2007-10-11 19:15:53 UTC
>>> Emerging (1 of 1) sci-calculators/pcalc-1.1 to /
 * pcalc-1.1.tar.bz2 RMD160 ;-) ...                                                                                                                                                                                                  [ ok ]
 * pcalc-1.1.tar.bz2 SHA1 ;-) ...                                                                                                                                                                                                    [ ok ]
 * pcalc-1.1.tar.bz2 SHA256 ;-) ...                                                                                                                                                                                                  [ ok ]
 * pcalc-1.1.tar.bz2 size ;-) ...                                                                                                                                                                                                    [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                                                                 [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                                                [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                                               [ ok ]
 * checking pcalc-1.1.tar.bz2 ;-) ...                                                                                                                                                                                                [ ok ]
>>> Unpacking source...
>>> Unpacking pcalc-1.1.tar.bz2 to /var/tmp/portage/sci-calculators/pcalc-1.1/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sci-calculators/pcalc-1.1/work/pcalc-1.1 ...
cc -O2 -march=prescott -pipe -fomit-frame-pointer -Wall -DVERSION='"1.1"'  -c -o pcalc.o pcalc.c
cc -O2 -march=prescott -pipe -fomit-frame-pointer -Wall -DVERSION='"1.1"'  -c -o pcalcl.o pcalcl.c
cc -O2 -march=prescott -pipe -fomit-frame-pointer -Wall -DVERSION='"1.1"'  -c -o funct.o funct.c
cc -O2 -march=prescott -pipe -fomit-frame-pointer -Wall -DVERSION='"1.1"'  -c -o math.o math.c
pcalcl.c:1801: warning: 'yyunput' defined but not used
pcalc.c: In function 'main':
pcalc.c:1844: warning: 'template' may be used uninitialized in this function
cc -O2 -march=prescott -pipe -fomit-frame-pointer -Wall -DVERSION='"1.1"'  -c -o symbol.o symbol.c
cc -O2 -march=prescott -pipe -fomit-frame-pointer -Wall -DVERSION='"1.1"'  -c -o help.o help.c
cc -O2 -march=prescott -pipe -fomit-frame-pointer -Wall -DVERSION='"1.1"'  -c -o store.o store.c
cc -O2 -march=prescott -pipe -fomit-frame-pointer -Wall -DVERSION='"1.1"'  -c -o print.o print.c
cc -O2 -march=prescott -pipe -fomit-frame-pointer -Wall -DVERSION='"1.1"'  -c -o str.o str.c
cc -O2 -march=prescott -pipe -fomit-frame-pointer -Wall -DVERSION='"1.1"'  -c -o convert.o convert.c
cc   pcalc.o pcalcl.o funct.o math.o symbol.o help.o store.o print.o str.o convert.o  -lm -lfl -o pcalc
>>> Source compiled.
>>> Test phase [check]: sci-calculators/pcalc-1.1
make -C ptest check
make[1]: Entering directory `/var/tmp/portage/sci-calculators/pcalc-1.1/work/pcalc-1.1/ptest'
./testsuite
## ---------------------- ##
## pcalc svn  test suite. ##
## ---------------------- ##
  1: 001                                             FAILED (pcalc.001.at:3)
  2: 002                                             FAILED (pcalc.002.at:3)
  3: 003                                             ok
  4: 004                                             ok
  5: 005                                             ok
  6: 006                                             ok
  7: 007                                             ok
  8: 008                                             ok
  9: 009                                             ok

## ------------- ##
## Test results. ##
## ------------- ##

ERROR: All 9 tests were run,
2 failed unexpectedly.
## -------------------------- ##
## testsuite.log was created. ##
## -------------------------- ##

Please send `testsuite.log' and all information you think might help:

   To: <pcalc-devel@lists.sourceforge.net>
   Subject: [pcalc svn ] testsuite: 1 2 failed


You may investigate any problem if you feel able to do so, in which
case the test suite provides a good starting point.  Its output may
be found below `testsuite.dir'.

make[1]: *** [check] Error 1
make[1]: Leaving directory `/var/tmp/portage/sci-calculators/pcalc-1.1/work/pcalc-1.1/ptest'
make: *** [check] Error 2

emerge --info:
Portage 2.1.3.9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r8 i686)
=================================================================
System uname: 2.6.22-gentoo-r8 i686 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Timestamp of tree: Thu, 11 Oct 2007 17:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms sign strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp:qweryuio12345678@main http://distfiles.gentoo.org/"
LANG="pl_PL"
LC_ALL="pl_PL.UTF-8"
LINGUAS="pl"
MAKEOPTS="-j3"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /home/koxta/gentoo/tree/gentoo-x86"
SYNC="rsync://main/gentoo-portage"
USE="X a52 aac aalib accessibility acpi alsa amarok arts asf audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo cdinstall cdparanoia cdr cli cracklib crypt cscope css cups curl cvs dbus dga divx doc dri dts dvd dvdr dvdread emboss encode esd evo exif expat fam fbcon ffmpeg firefox flac fortran ftp gdbm gif gimpprint glitz glut gmp gphoto2 gpm gstreamer gtk hal iconv idn ieee1394 imagemagick ipv6 isdnlog jack java javascript jpeg jpeg2k kadu-modules kadu-voice kde lcms libnotify libwww lirc logitech-mouse mad matroska md5sum midi mikmod mime mjpeg mmap mmx mng mono mozbranding mozdevelop mp3 mpeg mudflap musepack mysql ncurses nls nptl nptlonly nsplugin nvidia odbc offensive ogg openal opengl openmp oss pam pcre pdf perl png postgres ppds pppd python qt3 qt3support qt4 quicktime rdesktop readline real realmedia reflection ruby samba sdl seamonkey session slang snmp sox spell spl sse sse2 ssl startup-notification subversion svg svga tcltk tcpd tetex theora tidy tiff timidity truetype truetype-fonts type1 type1-fonts unicode usb v4l videos vim vim-syntax vim-with-x vorbis win32codecs wmp wxwindows x86 xine xml xorg xpm xv xvid xvmc zlib" ALSA_CARDS="hda-intel" 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" FOO2ZJS_DEVICES="hp1020" INPUT_DEVICES="keyboard mouse vmmouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa vga vmware"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 15 Angelo Arrifano (RETIRED) gentoo-dev 2007-10-12 14:54:01 UTC
sci-calculators/pcalc-1.1

* Builds on AMD64.
* Test suite fails:

## ---------------------- ##
## pcalc svn  test suite. ##
## ---------------------- ##
  1: 001                                             FAILED (pcalc.001.at:3)
  2: 002                                             FAILED (pcalc.002.at:3)
  3: 003                                             FAILED (pcalc.003.at:3)
  4: 004                                             FAILED (pcalc.004.at:3)
  5: 005                                             FAILED (pcalc.005.at:3)
  6: 006                                             FAILED (pcalc.006.at:3)
  7: 007                                             FAILED (pcalc.007.at:3)
  8: 008                                             FAILED (pcalc.008.at:3)
  9: 009                                             FAILED (pcalc.009.at:3)

## ------------- ##
## Test results. ##
## ------------- ##

ERROR: All 9 tests were run,
9 failed unexpectedly.
## -------------------------- ##
## testsuite.log was created. ##
## -------------------------- ##

- - -

Portage 2.1.3.9 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r8 x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-56
Timestamp of tree: Wed, 10 Oct 2007 20:00:03 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
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-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -Os -msse3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /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"
CXXFLAGS="-march=k8 -Os -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks metadata-transfer multilib-strict parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acpi alsa amd64 bash-completion berkdb bitmap-fonts branding bzip2 cairo cli cracklib crypt cups dbus divx dri dvd dvdr emerald ffmpeg firefox flac fortran gd gdbm gif glade glib glitz gtk gtkspell hal iconv insecure-savers isdnlog javascript jpeg libnotify midi mmx mmxext mp2 mp3 mpeg mplayer mudflap musicbrainz mysql ncurses nls nptl nptlonly offensive ogg opengl openmp pam pcre png pppd python readline reflection samba sdl session smp spell spl sse sse2 ssl stream svg syslog taglib tcpd threads truetype truetype-fonts type1 type1-fonts unicode v4l v4l2 vhosts vim-syntax vorbis xcomposite xorg xosd xpm xscreensaver xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="xosd" USERLAND="GNU" VIDEO_CARDS="nv nvidia none"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 16 Angelo Arrifano (RETIRED) gentoo-dev 2007-10-12 14:58:53 UTC
Created attachment 133255 [details]
testsuite-amd64.log

testsuite.log for AMD64
Comment 17 Tom Gall (RETIRED) gentoo-dev 2007-10-15 06:21:16 UTC
stable on ppc64
Comment 18 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2007-10-20 16:07:32 UTC
====amd64====

This package compiles fine on amd64. All tests work fine as well.Matthias Langer(mlangc) ran the tests too, and they worked fine. Running some calculations through the calculator seems to work as well.

Portage 2.1.3.9 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3400+
Timestamp of tree: Wed, 17 Oct 2007 01:47:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/distfiles"
FEATURES="ccache collision-protect distlocks metadata-transfer multilib-strict parallel-fetch sandbox sfperms strict test unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/kde /overlay /usr/portage/local/kde"
SYNC="rsync://kv80/gentoo-portage"
USE="X acl acpi aiglx aim alsa amd64 arts berkdb bitmap-fonts branding cairo cli cracklib crypt cups dbus dri dvd dvdread emboss encode esd evo fam firefox fortran gdbm gif gpm gstreamer hal iconv imap ipv6 isdnlog jpeg kde kerberos mad midi mikmod mmx mp3 mpeg mpeg3 mqsli mudflap mysql ncurses nls nptl nptlonly nvidia ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt3support quicktime readline reflection sdl session sockets spell spl sqlite3 sse sse2 ssl svg tcpd test tiff truetype truetype-fonts type1-fonts unicode vim vorbis xcomposite xine xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 19 Christian Faulhammer (RETIRED) gentoo-dev 2007-10-24 06:15:21 UTC
(In reply to comment #5)
> i'm pretty sure it isnt a regression
> i'll look into fixing the source upstream

 Any news here?
Comment 20 SpanKY gentoo-dev 2007-10-24 16:43:23 UTC
no because i am technically upstream and i havent had a chance to research it
Comment 21 Matthias Langer 2007-10-26 01:57:21 UTC
well, i don't know if this has been communicated, but comment 10 might be the most relevant in here; see also what happened a few days ago in #amd64-dev:

[...]
Oct 20 18:28:01 <miknix>	its -Os
Oct 20 18:28:06 <miknix>	that makes them fail
Oct 20 18:28:12 <miknix>	-O2 builds ok
Oct 20 18:28:42 <mlangc>	13:45 <mlangc> maybe it's the -Os?
Oct 20 18:28:59 <mlangc>	let's see if i can reproduce
Oct 20 18:29:48 <gentoofan23>	mlangc: I tried, it works for me with -Os
Oct 20 18:29:56 <gentoofan23>	you can try though
Oct 20 18:29:57 <miknix>	oO
Oct 20 18:30:11 <mlangc>	indeed: fails with CFLAGS="-march=nocona -Os -pipe" for me
Oct 20 18:31:25 <mlangc>	miknix: with exactly the same error as you got
Oct 20 18:31:36 <gentoofan23>	I do CFLAGS="-march=athlon64 -Os -pipe" here and it works. Maybe it is the march?
Oct 20 18:31:51 <miknix>	in a population of #3 we have 2 proofs of -Os guilty
Oct 20 18:31:58 <miknix>	increase population?
Oct 20 18:32:10 *	mlangc tries with -Os only
Oct 20 18:32:35 <angelos>	btw, you did notice that jer has the same segfaults?
Oct 20 18:32:36 <mlangc>	and it fails with -Os only
Oct 20 18:32:46 <angelos>	I doubt he's using -msse3 or any -march={nocona,k8} on HPPA
Oct 20 18:33:02 <angelos>	plus
Oct 20 18:33:10 <angelos>	It appears to be sandbox related: FEATURES="test userpriv" does not fail any tests for HPPA.
Oct 20 18:33:13 <angelos>	tried that yet?
Oct 20 18:33:43 <angelos>	I see that gentoofan23 is using userpriv
Oct 20 18:33:44 <gentoofan23>	angelos: userpriv is on by default in new portage version
Oct 20 18:33:50 <angelos>	no, userfetch
Oct 20 18:33:52 <mlangc>	angelos: i just did: worked (with -Os)
Oct 20 18:33:57 <gentoofan23>	oh yeah, that was it
Oct 20 18:33:59 <miknix>	CFLAGS="-march=k8 -Os -msse3" FEATURES="test userpriv" worked
Oct 20 18:34:17 <angelos>	so you really had to reinvent the wheel now? :P
Oct 20 18:34:48 <gentoofan23>	-userpriv made all 9 tests fail here.
Oct 20 18:35:04 <gentoofan23>	we need someone from hppa to test this also.
Oct 20 18:35:11 <angelos>	to test what?
Oct 20 18:35:15 <angelos>	userpriv? jer already did it
Oct 20 18:36:06 <gentoofan23>	we don't know whether he was using userpriv or not.
Oct 20 18:36:12 <gentoofan23>	nvm
Oct 20 18:36:12 <angelos>	read comment #10
Oct 20 18:36:16 *	gentoofan23 is feeling stupid
Oct 20 18:37:23 <mlangc>	it only fails with "-Os" and "-userpriv" for me; with "-march=nocona -O2 -pipe" it works with "-userpriv"
[...]
Comment 22 Algardas Pelakauskas 2007-10-26 18:01:44 UTC
Not sure if a new bug should be opened for this, but maybe this is the right place as I am also getting similar problems as the reporter (the difference is that I'm using pcalc-1.1).

I think it is caused by some recent (a couple of weeks old) system package update, because it used to work, but now it says
$ pcalc 2 
pcalc: syntax error near line 1

Or, under other and unspecific circumstances

$ ./pcalc 0
	40      	0x28      	0y101000
$ ./pcalc 00
	400     	0x190     	0y110010000
$ ./pcalc 000
	4000    	0xfa0     	0y111110100000

What makes me guess it is an input parsing problem.

I originally had it compiled with
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"

When I compile it with
CFLAGS="-march=athlon-xp -pipe -fomit-frame-pointer"
it works fine, except for passing the first two tests of the testsuite. Looking in the testsuite.log, it appears that there are two calculations that fail and both are counting cos of PI/2.

pcalc says it is 6.123234e-17 (is this supposed to be the decimal zero?),
testsuite wants  6.1230318e-17

Btw., could this be sys-libs/glibc-2.5-r4 -> sys-libs/glibc-2.6.1 upgrade related? I have another x86 PIII system which still has glibc-2.5-r4 and pcalc-1.1 runs fine compiled with -O2.
Comment 23 Jan Breuer 2007-10-29 22:03:09 UTC
Same here. I have gcc-4.1.2 and emerging pcalc with optimizations cause this problems (CFLAGS="-O1"). 

The problem file is pcalc.c generated by bison which must be compiled (in this case) without optimizations.

I have problems with both packages pcalc-1.0 and pcalc-1.1.
Comment 24 Steve Dibb (RETIRED) gentoo-dev 2007-11-02 14:19:51 UTC
amd64 stable
Comment 25 Christian Faulhammer (RETIRED) gentoo-dev 2007-11-18 11:01:31 UTC
(In reply to comment #23)
> Same here. I have gcc-4.1.2 and emerging pcalc with optimizations cause this
> problems (CFLAGS="-O1"). 
> 
> The problem file is pcalc.c generated by bison which must be compiled (in this
> case) without optimizations.
> 
> I have problems with both packages pcalc-1.0 and pcalc-1.1.

 So this is no regression...vapier x86 can mark stable then, but you would please have a look at this problem?
Comment 26 Christian Faulhammer (RETIRED) gentoo-dev 2007-12-06 23:13:41 UTC
x86 stable
Comment 27 Jakub Moc (RETIRED) gentoo-dev 2007-12-11 12:04:21 UTC
10:57:57 <+CIA-23> vapier * gentoo-x86/sci-calculators/pcalc/pcalc-1.1.ebuild:
10:57:57 <+CIA-23> arm/s390/sh stable
Comment 28 SpanKY gentoo-dev 2008-01-03 03:10:47 UTC
it isnt -O2 or -Os or -Ofoo specifically.  the input buffer is strcat-ed onto a string that is not initially NUL terminated, so if that very first byte happens to not be a NUL, things fall apart.  optimization just makes it more likely to be an issue.  ive fixed this in pcalc-1.2.

as for the 001/002 test failures, these depend on the host glibc and how it displays floating point ... the last few floating digits may be off slightly, but this shouldnt generally be a "problem" and is probably safe to ignore.  i'll see if i cant make the floating point code saner.