Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 165035 - dev-db/firebird-1.5.3-r1 -ftree-vectorize causes segfault during compile
Summary: dev-db/firebird-1.5.3-r1 -ftree-vectorize causes segfault during compile
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-02 19:58 UTC by Michael Cramer
Modified: 2007-05-12 10:34 UTC (History)
2 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 Michael Cramer 2007-02-02 19:58:18 UTC
make[3]: Leaving directory `/var/tmp/portage/dev-db/firebird-1.5.3-r1/work/firebird-1.5.3.4870/src'
make -f ../gen/Makefile.refDatabases empty_db
make[3]: Entering directory `/var/tmp/portage/dev-db/firebird-1.5.3-r1/work/firebird-1.5.3.4870/src'
rm -f empty.fdb
../gen/firebird/bin/create_db empty.fdb
make[3]: *** [empty.fdb] Segmentation fault
make[3]: *** Deleting file `empty.fdb'
make[3]: Leaving directory `/var/tmp/portage/dev-db/firebird-1.5.3-r1/work/firebird-1.5.3.4870/src'
make[2]: *** [empty_db] Error 2
make[2]: Leaving directory `/var/tmp/portage/dev-db/firebird-1.5.3-r1/work/firebird-1.5.3.4870/src'
make[1]: *** [../gen/firebird/security.fdb] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-db/firebird-1.5.3-r1/work/firebird-1.5.3.4870/src'
make: *** [firebird] Error 2

!!! ERROR: dev-db/firebird-1.5.3-r1 failed.
Call stack:
  ebuild.sh, line 1613:   Called dyn_compile
  ebuild.sh, line 970:   Called qa_call 'src_compile'
  environment, line 3341:   Called src_compile
  firebird-1.5.3-r1.ebuild, line 69:   Called die

!!! error during make
!!! If you need support, post the topmost build error, and the call stack if relevant.


removing the gcc flag -ftree-vectorize all compiles fine.

here is the backtrace when running the command which causes the segfault:
bigmichi1 ~ # cd /var/tmp/portage/dev-db/firebird-1.5.3-r1/work/firebird-1.5.3.4870/src
bigmichi1 src # gdb --args ../gen/firebird/bin/create_db empty.fdb
GNU gdb 6.6
Copyright (C) 2006 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 "i686-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /var/tmp/portage/dev-db/firebird-1.5.3-r1/work/firebird-1.5.3.4870/gen/firebird/bin/create_db empty.fdb

Program received signal SIGSEGV, Segmentation fault.
0x081451c4 in find_best ()
(gdb) bt
#0  0x081451c4 in find_best ()
#1  0x08145600 in find_best ()
#2  0x0814588f in find_order ()
#3  0x0814dcb5 in OPT_compile ()
#4  0x08117655 in pass2 ()
#5  0x08117506 in pass2 ()
#6  0x0811a71a in CMP_make_request ()
#7  0x080702d9 in PAR_blr ()
#8  0x080f7e5f in MET_parse_sys_trigger ()
#9  0x0806bfd5 in par_relation ()
#10 0x0806d79b in parse ()
#11 0x0806ccb5 in parse ()
#12 0x0806ca20 in parse ()
#13 0x0806cbf6 in parse ()
#14 0x0806ffc2 in PAR_parse ()
#15 0x0811b172 in CMP_compile2 ()
#16 0x080f0c6e in store_trigger ()
#17 0x080f20ac in INI_format ()
#18 0x08062a58 in jrd8_create_database ()
#19 0x0805a447 in isc_create_database ()
#20 0x0804d24a in main ()
(gdb)


Reproducible: Always




Portage 2.1.2-r6 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r4-2006.0 i686)
=================================================================
System uname: 2.6.19-gentoo-r4-2006.0 i686 Pentium III (Coppermine)
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 02 Feb 2007 15:30:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
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
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19.2-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -ftree-vectorize"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /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/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -ftree-vectorize"
DISTDIR="/usr/local/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="autoconfig collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="C"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="de en"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip ... zlib" ALSA_CARDS="ens1371" 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" LINGUAS="de en" LIRC_DEVICES="serial" USERLAND="GNU" VIDEO_CARDS="r128 vesa"
Unset:  CTARGET, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Dave 2007-03-08 02:38:37 UTC
I'm seeing this as well...
Comment 2 William L. Thomson Jr. (RETIRED) gentoo-dev 2007-05-12 03:53:07 UTC
Please do not use the -ftree-vectorize option. Also you might want to test with 1.5.4. If if fails as well with that flag report to upstream. But I doubt they will address an issue like that any time soon. Not really considered a sane setting unless the compiler turns it on itself via -O2 or etc.
Comment 3 SpanKY gentoo-dev 2007-05-12 10:34:54 UTC
i dont think filing a report upstream is appropriate until the issue can be properly root caused as either firebird's fault or gcc's fault