This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/39849] segfault for '__divtf3' during bootstrap and non-bootstrap install



------- Comment #18 from dennis dot wassel at googlemail dot com  2009-07-27 12:40 -------
It still happens in 4.4.1:

/localdata/install/gcc/objdir-gcc-4.4.1/./gcc/xgcc
-B/localdata/install/gcc/objdir-gcc-4.4.1/./gcc/
-B/localdata/i686-pc-linux-gnu/bin/ -B/localdata/i686-pc-linux-gnu/lib/
-isystem /localdata/i686-pc-linux-gnu/include -isystem
/localdata/i686-pc-linux-gnu/sys-include -g -O2 -O2  -g -O2 -DIN_GCC   -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual
-Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I. -I. -I../.././gcc
-I../../../gcc-4.4.1/libgcc -I../../../gcc-4.4.1/libgcc/.
-I../../../gcc-4.4.1/libgcc/../gcc -I../../../gcc-4.4.1/libgcc/../include
-I../../../gcc-4.4.1/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT
-DHAVE_CC_TLS -DUSE_TLS -Wno-missing-prototypes -Wno-type-limits -o divtf3.o
-MT divtf3.o -MD -MP -MF divtf3.dep -fexceptions -c
../../../gcc-4.4.1/libgcc/../gcc/config/soft-fp/divtf3.c -fvisibility=hidden
-DHIDE_EXPORTS
'
In function '__divtf3':
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [divtf3.o] Error 1
make[3]: Leaving directory
`/localdata/install/gcc/objdir-gcc-4.4.1/i686-pc-linux-gnu/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/localdata/install/gcc/objdir-gcc-4.4.1'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/localdata/install/gcc/objdir-gcc-4.4.1'
make: *** [profiledbootstrap] Error 2


Host compiler:
$ gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.3.3/configure --prefix=/localdata
--program-suffix=-4.3.3 --enable-languages=c,c++,fortran --with-gmp=/localdata
--with-mpfr=/localdata --enable-version-specific-runtime-libs
Thread model: posix
gcc version 4.3.3 (GCC)


Configured with:
$../gcc-4.4.1/configure --prefix=/localdata --with-gmp=/localdata
--with-mpfr=/localdata --with-ppl=/localdata --with-cloog=/localdata
--enable-version-specific-runtime-libs --program-suffix=-4.4.1
--enable-checking=release --with-system-zlib --enable-languages=c,c++,fortran
--with-arch=athlon64 --enable-__cxa_atexit

$make profiledbootstrap


gdb output (seems to be the same spot as before):
$gdb /localdata/install/gcc/objdir-gcc-4.4.1/./gcc/cc1
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
< -Wno-missing-prototypes -Wno-type-limits -version -fPIC -fexceptions
-fvisibility=hidden -o /tmp/ccJeES8y.s
Starting program: /localdata/install/gcc/objdir-gcc-4.4.1/gcc/cc1 -quiet -v -I.
-I. -I../.././gcc -I../../../gcc-4.4.1/libgcc -I../../../gcc-4.4.1/libgcc/.
-I../../../gcc-4.4.1/libgcc/../gcc -I../../../gcc-4.4.1/libgcc/../include
-I../../../gcc-4.4.1/libgcc/config/libbid -iprefix
/localdata/install/gcc/objdir-gcc-4.4.1/gcc/../lib/gcc/i686-pc-linux-gnu/4.4.1/
-isystem /localdata/install/gcc/objdir-gcc-4.4.1/./gcc/include -isystem
/localdata/install/gcc/objdir-gcc-4.4.1/./gcc/include-fixed -MD divtf3.d -MF
divtf3.dep -MP -MT divtf3.o -DIN_GCC -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS
-DHIDE_EXPORTS -isystem /localdata/i686-pc-linux-gnu/include -isystem
/localdata/i686-pc-linux-gnu/sys-include -isystem ./include
../../../gcc-4.4.1/libgcc/../gcc/config/soft-fp/divtf3.c -quiet -dumpbase
divtf3.c -mtune=generic -march=athlon64 -auxbase-strip divtf3.o -g -g -g -O2
-O2 -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wcast-qual
-Wold-style-definition -Wno-missing-prototypes -Wno-type-limits -version -fPIC
-fexceptions -fvisibility=hidden -o /tmp/ccJeES8y.s
Failed to read a valid object file image from memory.
ignoring nonexistent directory "/localdata/i686-pc-linux-gnu/include"
ignoring nonexistent directory "/localdata/i686-pc-linux-gnu/sys-include"
ignoring nonexistent directory "./include"
ignoring nonexistent directory
"/localdata/install/gcc/objdir-gcc-4.4.1/gcc/../lib/gcc/i686-pc-linux-gnu/4.4.1/include"
ignoring nonexistent directory
"/localdata/install/gcc/objdir-gcc-4.4.1/gcc/../lib/gcc/i686-pc-linux-gnu/4.4.1/include-fixed"
ignoring nonexistent directory
"/localdata/install/gcc/objdir-gcc-4.4.1/gcc/../lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../i686-pc-linux-gnu/include"
ignoring nonexistent directory
"/localdata/lib/gcc/i686-pc-linux-gnu/4.4.1/include"
ignoring nonexistent directory
"/localdata/lib/gcc/i686-pc-linux-gnu/4.4.1/include-fixed"
ignoring nonexistent directory
"/localdata/lib/gcc/i686-pc-linux-gnu/../../../i686-pc-linux-gnu/include"
ignoring duplicate directory "."
ignoring duplicate directory "../../../gcc-4.4.1/libgcc/."
#include "..." search starts here:
#include <...> search starts here:
 .
 ../.././gcc
 ../../../gcc-4.4.1/libgcc
 ../../../gcc-4.4.1/libgcc/../gcc
 ../../../gcc-4.4.1/libgcc/../include
 ../../../gcc-4.4.1/libgcc/config/libbid
 /localdata/install/gcc/objdir-gcc-4.4.1/./gcc/include
 /localdata/install/gcc/objdir-gcc-4.4.1/./gcc/include-fixed
 /usr/local/include
 /localdata/include
 /usr/include
End of search list.
GNU C (GCC) version 4.4.1 (i686-pc-linux-gnu)
        compiled by GNU C version 4.3.3, GMP version 4.3.0, MPFR version
2.4.1-p5.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 21d538f5f9a4b2f25e8603df4e1c1d60

Program received signal SIGSEGV, Segmentation fault.
0x080f714e in c_tree_printer (pp=0x94da288, text=0xbffd13c4, spec=0x94c0129
"D", precision=0, wide=0 '\0', set_locus=0 '\0', hash=0 '\0')
    at ../../gcc-4.4.1/gcc/c-objc-common.c:99
99        tree t = va_arg (*text->args_ptr, tree);
(gdb) bt
#0  0x080f714e in c_tree_printer (pp=0x94da288, text=0xbffd13c4, spec=0x94c0129
"D", precision=0, wide=0 '\0', set_locus=0 '\0',
    hash=0 '\0') at ../../gcc-4.4.1/gcc/c-objc-common.c:99
#1  0x085618ad in pp_base_format (pp=0x94da288, text=0xbffd13c4) at
../../gcc-4.4.1/gcc/pretty-print.c:557
#2  0x082806f5 in diagnostic_report_diagnostic (context=0x945f4c0,
diagnostic=0xbffd13c4) at ../../gcc-4.4.1/gcc/diagnostic.c:402
#3  0x08280a60 in warning_at (location=682268, opt=163, gmsgid=0x93054e0 "%qD
may be used uninitialized in this function")
    at ../../gcc-4.4.1/gcc/diagnostic.c:537
#4  0x08ba6145 in warn_uninit (t=0xb75685e8, gmsgid=0x93054e0 "%qD may be used
uninitialized in this function", data=0x0)
    at ../../gcc-4.4.1/gcc/tree-ssa.c:1446
#5  0x08ba6401 in warn_uninitialized_phi (phi=0xb7561300) at
../../gcc-4.4.1/gcc/tree-ssa.c:1563
#6  0x08ba65f5 in execute_late_warn_uninitialized () at
../../gcc-4.4.1/gcc/tree-ssa.c:1626
#7  0x08536d75 in execute_one_pass (pass=0x9452be0) at
../../gcc-4.4.1/gcc/passes.c:1277
#8  0x08536f15 in execute_pass_list (pass=0x9452be0) at
../../gcc-4.4.1/gcc/passes.c:1326
#9  0x08536f31 in execute_pass_list (pass=0x9451c40) at
../../gcc-4.4.1/gcc/passes.c:1327
#10 0x0885b6ec in tree_rest_of_compilation (fndecl=0xb7700500) at
../../gcc-4.4.1/gcc/tree-optimize.c:420
#11 0x08d5104b in cgraph_expand_function (node=0xb7700880) at
../../gcc-4.4.1/gcc/cgraphunit.c:1047
#12 0x08d511ed in cgraph_expand_all_functions () at
../../gcc-4.4.1/gcc/cgraphunit.c:1106
#13 0x08d5175e in cgraph_optimize () at ../../gcc-4.4.1/gcc/cgraphunit.c:1311
#14 0x08078bf0 in c_write_global_declarations () at
../../gcc-4.4.1/gcc/c-decl.c:8102
#15 0x08703091 in compile_file () at ../../gcc-4.4.1/gcc/toplev.c:981
#16 0x08704b15 in do_compile () at ../../gcc-4.4.1/gcc/toplev.c:2197
#17 0x08704b77 in toplev_main (argc=66, argv=0xbffd1734) at
../../gcc-4.4.1/gcc/toplev.c:2229
#18 0x08142e6a in main (argc=Cannot access memory at address 0x0
) at ../../gcc-4.4.1/gcc/main.c:35
(gdb)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39849


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]