Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84034 - Spice exits with an internal error
Summary: Spice exits with an internal error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Denis Dupeyron (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-03 20:26 UTC by Scott Hathcock
Modified: 2006-05-21 15:22 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 Scott Hathcock 2005-03-03 20:26:45 UTC
The output is shown below. The spice deck does not matter. Spice appears to
read the first line of the input deck and then catch a seg fault.
scottha@phaedrus spbitcell $ spice test.sp
Program: Spice, version: 3f5
Date built: Thu Mar  3 21:13:27 MST 2005

Type "help" for more information, "quit" to leave.


Circuit: * This is a name


internal error -- segmentation violation


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r14 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r14 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1,dev-lang/python-2.2.3-r5 [2.3.4
(#1, Feb 12 2005, 15:17:51)]
dev-lang/python:     2.3.4-r1, 2.2.3-r5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://gentoo.ccccom.com
http://gentoo.ccccom.com"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa arts berkdb bitmap-fonts bonobo cdr crypt cups curl esd
f77 fam font-server foomaticdb fortran gdbm gif gnome gphoto2 gpm gstreamer gtk
gtkhtml guile imagemagick imlib ipv6 java jp2 jpeg lzw lzw-tiff mad motif
mozilla multilib ncurses nls oggvorbis opengl oss pam perl png ppds python qt
readline scanner slang ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts
usb userlocales xml xml2 xpm xrandr xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Nick Jones 2005-04-09 21:32:36 UTC
I had a similar problem on a p4 using C(XX)FLAGS of "-O3 -march=pentium4 -fomit-frame-pointer -pipe" but when I went to "-O2 -march=pentium4 -pipe" it no longer seg faults.

(I realize that these are different architectures but SPICE may be more picky about compile time flags than assumed.)
Comment 2 Pedro Velasco 2005-12-26 16:38:26 UTC
I got the same with my pentium4 and the following flags:
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"

Lowering them to "-O2" gives the same error.

removing "-Ox" at all corrects it.

Maybe a filter could be added to the ebuild in order to remove the "-Ox" flag
Sure it is not AMD64 specific, but, at least, x86.
Comment 3 Denis Dupeyron (RETIRED) gentoo-dev 2006-05-21 15:22:43 UTC
Fixed in CVS, thanks for reporting.