public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/43085]  New: Make profiledbootstrap fails with cc1plus catching SIGSEGV
@ 2010-02-15 19:22 aanisimov at inbox dot ru
  2010-05-12  7:01 ` [Bug c++/43085] " fierevere at mail dot ru
                   ` (5 more replies)
  0 siblings, 6 replies; 22+ messages in thread
From: aanisimov at inbox dot ru @ 2010-02-15 19:22 UTC (permalink / raw)
  To: gcc-bugs

I configured GCC rev. 156770 with the following options:

../gcc/configure --prefix=/home/artem/testing/gcc45 --enable-shared
--enable-bootstrap --enable-languages=c,c++ --enable-threads=posix
--enable-checking=release --with-system-zlib --disable-libunwind-exceptions
--enable-__cxa_atexit --enable-libssp --with-gnu-ld --with-lto --disable-nls
--verbose --with-arch=i686 --target=i686-slackware-linux
--build=i686-slackware-linux --host=i686-slackware-linux

With this configuration 'make' completes successfully, but 'make
profiledbootstrap' fails.

The last command which gets executed is

/home/artem/testing/gcc-build/./gcc/xgcc -shared-libgcc
-B/home/artem/testing/gcc-build/./gcc -nostdinc++
-L/home/artem/testing/gcc-build/i686-slackware-linux/libstdc++-v3/src
-L/home/artem/testing/gcc-build/i686-slackware-linux/libstdc++-v3/src/.libs
-B/home/artem/testing/gcc45/i686-slackware-linux/bin/
-B/home/artem/testing/gcc45/i686-slackware-linux/lib/ -isystem
/home/artem/testing/gcc45/i686-slackware-linux/include -isystem
/home/artem/testing/gcc45/i686-slackware-linux/sys-include
-I/home/artem/testing/gcc-build/i686-slackware-linux/libstdc++-v3/include/i686-slackware-linux
-I/home/artem/testing/gcc-build/i686-slackware-linux/libstdc++-v3/include
-I/home/artem/testing/gcc/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall
-Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -g -O2 -D_GNU_SOURCE -c
../../../../gcc/libstdc++-v3/src/pool_allocator.cc  -fPIC -DPIC -o
.libs/pool_allocator.o

While compiling pool_allocator.o, cc1plus catches SIGSEGV:

In file included from ../../../../gcc/libstdc++-v3/src/pool_allocator.cc:31:0:
/home/artem/testing/gcc-build/i686-slackware-linux/libstdc++-v3/include/ext/pool_allocator.h:
In constructor '__gnu_cxx::__pool_alloc<_Tp>::__pool_alloc() [with _Tp =
char]':
../../../../gcc/libstdc++-v3/src/pool_allocator.cc:171:18:   instantiated from
here
/home/artem/testing/gcc-build/i686-slackware-linux/libstdc++-v3/include/ext/pool_allocator.h:140:30:
internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Here is the backtrace:

#0  0xb6ff08c7 in raise () from /lib/libc.so.6
#1  0xb6ff2132 in abort () from /lib/libc.so.6
#2  0x08269204 in real_abort () at ../../gcc/gcc/diagnostic.c:738
#3  diagnostic_action_after_output () at ../../gcc/gcc/diagnostic.c:201
#4  0x08269b09 in diagnostic_report_diagnostic (context=0x89ee8e0,
diagnostic=0xbfcbfa94) at ../../gcc/gcc/diagnostic.c:423
#5  0x0826986a in internal_error (gmsgid=0x885c7ad "%s") at
../../gcc/gcc/diagnostic.c:674
#6  0x083fefe0 in crash_signal (signo=11) at ../../gcc/gcc/toplev.c:629
#7  <signal handler called>
#8  0x080c8ea4 in build_new_method_call (instance=0xb6aaf508, fns=0x0,
args=0xbfcc019c, conversion_path=0xb6c886c8, flags=3,
    complain=3, fn_p=0x0) at ../../gcc/gcc/cp/call.c:6209
#9  0x080ca084 in build_special_member_call (instance=0xb6aaf508,
name=0xb6cf90d0, args=0xbfcc019c,
    binfo=<value optimized out>, flags=3, complain=3) at
../../gcc/gcc/cp/call.c:6115
#10 0x0817aa69 in expand_default_init (binfo=<value optimized out>,
true_exp=<value optimized out>,
    exp=<value optimized out>, init=<value optimized out>, flags=3, complain=3)
at ../../gcc/gcc/cp/init.c:1355
#11 expand_aggr_init_1 (binfo=<value optimized out>, true_exp=<value optimized
out>, exp=<value optimized out>,
    init=<value optimized out>, flags=3, complain=3) at
../../gcc/gcc/cp/init.c:1441
#12 0x0817e8f7 in emit_mem_initializers (mem_inits=0xb6abade0) at
../../gcc/gcc/cp/init.c:836
#13 0x080fd327 in tsubst_expr (t=<value optimized out>, args=<value optimized
out>, complain=<value optimized out>,
    in_decl=0xb6a9b1a0, integral_constant_expression_p=0 '\000') at
../../gcc/gcc/cp/pt.c:11392
#14 0x080fc6b7 in tsubst_expr (t=<value optimized out>, args=0xb6ab1768,
complain=3, in_decl=0xb6a9b1a0,
    integral_constant_expression_p=0 '\000') at ../../gcc/gcc/cp/pt.c:11387
#15 0x080fd225 in tsubst_expr (t=0xb6c900fc, args=0xb6ab1768, complain=3,
in_decl=0xb6a9b1a0,
    integral_constant_expression_p=0 '\000') at ../../gcc/gcc/cp/pt.c:11543
#16 0x0810b73d in instantiate_decl (d=<value optimized out>, defer_ok=<value
optimized out>, expl_inst_class_mem_p=0 '\000')
    at ../../gcc/gcc/cp/pt.c:16710
#17 0x08116630 in instantiate_pending_templates (retries=0) at
../../gcc/gcc/cp/pt.c:16807
#18 0x08130ca8 in cp_write_global_declarations () at
../../gcc/gcc/cp/decl2.c:3538
#19 0x083fe4d0 in compile_file (argc=41, argv=0xbfcc0674) at
../../gcc/gcc/toplev.c:1065
#20 do_compile (argc=41, argv=0xbfcc0674) at ../../gcc/gcc/toplev.c:2405
#21 toplev_main (argc=41, argv=0xbfcc0674) at ../../gcc/gcc/toplev.c:2447
#22 0x081fee3b in main (argc=41, argv=0xbfcc0674) at ../../gcc/gcc/main.c:35


-- 
           Summary: Make profiledbootstrap fails with cc1plus catching
                    SIGSEGV
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: aanisimov at inbox dot ru
 GCC build triplet: i686-slackware-linux
  GCC host triplet: i686-slackware-linux
GCC target triplet: i686-slackware-linux


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


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug c++/43085] Make profiledbootstrap fails with cc1plus catching SIGSEGV
  2010-02-15 19:22 [Bug other/43085] New: Make profiledbootstrap fails with cc1plus catching SIGSEGV aanisimov at inbox dot ru
@ 2010-05-12  7:01 ` fierevere at mail dot ru
  2010-05-12  7:05 ` fierevere at mail dot ru
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 22+ messages in thread
From: fierevere at mail dot ru @ 2010-05-12  7:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from fierevere at mail dot ru  2010-05-12 07:01 -------
Created an attachment (id=20640)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20640&action=view)
this file triggers ICE in cc1plus

i have exactly the same, affects 4.5.0 release and current gcc-4_5-branch

../${SRCDIR}/configure --prefix=/usr/local/gcc-4.5 --host=i586-sylvia-linux
--build=i586-sylvia-linux --with-pkgversion=/argenta/ --disable-nls
--with-cpu=pentium4 --with-arch=pentium4 --enable-languages=c,c++
--enable-threads --enable-tls
--with-host-libstdcxx='/usr/local/gcc-4.5/lib/libstdc++.a -lm'
--with-gmp=/var/tmp --with-mpfr=/var/tmp --with-ppl=/var/tmp
--with-cloog=/var/tmp --with-mpc=/var/tmp --with-libelf=/var/tmp --enable-lto
--with-fpmath=sse

libtool: compile:  /var/tmp/gccbuild/./gcc/xgcc -shared-libgcc
-B/var/tmp/gccbuild/./gcc -nostdinc++
-L/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3/src
-L/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3/src/.libs
-B/usr/local/gcc-4.5/i586-sylvia-linux/bin/
-B/usr/local/gcc-4.5/i586-sylvia-linux/lib/ -isystem
/usr/local/gcc-4.5/i586-sylvia-linux/include -isystem
/usr/local/gcc-4.5/i586-sylvia-linux/sys-include
-I/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3/include/i586-sylvia-linux
-I/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3/include
-I/var/tmp/gcc-4.5.1pre_100512_r159302/libstdc++-v3/libsupc++
-fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -O2 -g
-march=pentium4 -D_GNU_SOURCE -c
../../../../gcc-4.5.1pre_100512_r159302/libstdc++-v3/src/pool_allocator.cc 
-fPIC -DPIC -o .libs/pool_allocator.o
In file included from
../../../../gcc-4.5.1pre_100512_r159302/libstdc++-v3/src/pool_allocator.cc:31:0:
/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3/include/ext/pool_allocator.h:
In constructor '__gnu_cxx::__pool_alloc<_Tp>::__pool_alloc() [with _Tp =
char]':
../../../../gcc-4.5.1pre_100512_r159302/libstdc++-v3/src/pool_allocator.cc:171:18:
  instantiated from here
/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3/include/ext/pool_allocator.h:140:30:
internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[4]: *** [pool_allocator.lo] Error 1
make[4]: Leaving directory
`/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/var/tmp/gccbuild'
make: *** [profiledbootstrap] Error 2

line 171: pool_allocator.cc 
  template class __pool_alloc<char>;

line 140: pool_allocator.h
      __pool_alloc() throw() { }


backtrace:
(gdb) set args -fpreprocessed pool_allocator.ii -quiet -dumpbase
pool_allocator.ii -march=pentium4 -auxbase pool_allocator -g -O2 -Wall -Wextra
-Wwrite-strings -Wcast-qual -version -fno-implicit-templates
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -o
assembl.s
(gdb) show args
Argument list to give program being debugged when it is started is
"-fpreprocessed pool_allocator.ii -quiet -dumpbase pool_allocator.ii
-march=pentium4 -auxbase pool_allocator -g -O2 -Wall -Wextra -Wwrite-strings
-Wcast-qual -version -fno-implicit-templates -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -o assembl.s".
(gdb) run
Starting program: /tmp/cc1plus -fpreprocessed pool_allocator.ii -quiet
-dumpbase pool_allocator.ii -march=pentium4 -auxbase pool_allocator -g -O2
-Wall -Wextra -Wwrite-strings -Wcast-qual -version -fno-implicit-templates
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -o
assembl.s
GNU C++ /argenta/ version 4.5.1 (i586-sylvia-linux)
        compiled by GNU C version 4.5.1, GMP version 4.3.2, MPFR version 2.4.2,
MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ /argenta/ version 4.5.1 (i586-sylvia-linux)
        compiled by GNU C version 4.5.1, GMP version 4.3.2, MPFR version 2.4.2,
MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 4b0d4a6436cff7650a243477151f465b

Program received signal SIGSEGV, Segmentation fault.
0x083b5d5a in build_new_method_call.clone.3 ()
(gdb) bt
#0  0x083b5d5a in build_new_method_call.clone.3 ()
#1  0x00000000 in ?? ()
(gdb) 
not very long because on my gentoo system everything has been compiled with
-fomit-frame-pointer, but this GCC build which is "-O2 -g -march=pentium4",
with any other flags there is same ICE too


-- 


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


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug c++/43085] Make profiledbootstrap fails with cc1plus catching SIGSEGV
  2010-02-15 19:22 [Bug other/43085] New: Make profiledbootstrap fails with cc1plus catching SIGSEGV aanisimov at inbox dot ru
  2010-05-12  7:01 ` [Bug c++/43085] " fierevere at mail dot ru
@ 2010-05-12  7:05 ` fierevere at mail dot ru
  2010-09-01 20:48 ` fierevere at ya dot ru
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 22+ messages in thread
From: fierevere at mail dot ru @ 2010-05-12  7:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from fierevere at mail dot ru  2010-05-12 07:05 -------
Please change:

component to bootstrap
Host/Target and Build to i686-pc-linux-gnu
set higher priority and severity, this problem makes profiledbootstrap make
target unable to build and FDO-built GCC unusable, its definitely not "normal"
severity and not really a P3 prio !

Tested on current rev 159302 from svn branches/gcc-4_5-branch


-- 

fierevere at mail dot ru changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fierevere at mail dot ru


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


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug c++/43085] Make profiledbootstrap fails with cc1plus catching SIGSEGV
  2010-02-15 19:22 [Bug other/43085] New: Make profiledbootstrap fails with cc1plus catching SIGSEGV aanisimov at inbox dot ru
  2010-05-12  7:01 ` [Bug c++/43085] " fierevere at mail dot ru
  2010-05-12  7:05 ` fierevere at mail dot ru
@ 2010-09-01 20:48 ` fierevere at ya dot ru
  2010-09-06 15:56 ` doko at ubuntu dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 22+ messages in thread
From: fierevere at ya dot ru @ 2010-09-01 20:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from fierevere at ya dot ru  2010-09-01 20:47 -------

In file included from
../../../../gcc-4.5.2pre-20100901-rev163742/libstdc++-v3/src/pool_allocator.cc:31:0:
/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3/include/ext/pool_allocator.h:
In constructor '__gnu_cxx::__pool_alloc<_Tp>::__pool_alloc() [with _Tp =
char]':
../../../../gcc-4.5.2pre-20100901-rev163742/libstdc++-v3/src/pool_allocator.cc:171:18:
  instantiated from here
/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3/include/ext/pool_allocator.h:140:30:
internal compiler error: Segmentation fault
Please submit a full bug report,



still ICE'ing, revision 163742 , GCC 4.5.2prerelease from branches/


-- 


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


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug c++/43085] Make profiledbootstrap fails with cc1plus catching SIGSEGV
  2010-02-15 19:22 [Bug other/43085] New: Make profiledbootstrap fails with cc1plus catching SIGSEGV aanisimov at inbox dot ru
                   ` (2 preceding siblings ...)
  2010-09-01 20:48 ` fierevere at ya dot ru
@ 2010-09-06 15:56 ` doko at ubuntu dot com
  2010-09-15 21:01 ` pinskia at gcc dot gnu dot org
  2010-09-16  9:31 ` rguenth at gcc dot gnu dot org
  5 siblings, 0 replies; 22+ messages in thread
From: doko at ubuntu dot com @ 2010-09-06 15:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from doko at ubuntu dot com  2010-09-06 15:56 -------
I can confirm this with 20100902 from the 4.5 branch. the profiled bootstrap
did work with the 4.5.1 release.


-- 


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


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug c++/43085] Make profiledbootstrap fails with cc1plus catching SIGSEGV
  2010-02-15 19:22 [Bug other/43085] New: Make profiledbootstrap fails with cc1plus catching SIGSEGV aanisimov at inbox dot ru
                   ` (3 preceding siblings ...)
  2010-09-06 15:56 ` doko at ubuntu dot com
@ 2010-09-15 21:01 ` pinskia at gcc dot gnu dot org
  2010-09-16  9:31 ` rguenth at gcc dot gnu dot org
  5 siblings, 0 replies; 22+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-09-15 21:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2010-09-15 21:00 -------
*** Bug 45684 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kjetil1001 at gmail dot com


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


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug c++/43085] Make profiledbootstrap fails with cc1plus catching SIGSEGV
  2010-02-15 19:22 [Bug other/43085] New: Make profiledbootstrap fails with cc1plus catching SIGSEGV aanisimov at inbox dot ru
                   ` (4 preceding siblings ...)
  2010-09-15 21:01 ` pinskia at gcc dot gnu dot org
@ 2010-09-16  9:31 ` rguenth at gcc dot gnu dot org
  5 siblings, 0 replies; 22+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-09-16  9:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2010-09-16 09:30 -------
With seeing .clone in fn names I suppose this is ipa-cp or ipa-sra.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu dot
                   |                            |org, jamborm at gcc dot gnu
                   |                            |dot org


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


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug c++/43085] Make profiledbootstrap fails with cc1plus catching SIGSEGV
       [not found] <bug-43085-4@http.gcc.gnu.org/bugzilla/>
                   ` (12 preceding siblings ...)
  2011-02-28 10:09 ` onur at pardus dot org.tr
@ 2011-04-13  7:24 ` fierevere at ya dot ru
  2011-04-13  7:24 ` michael.hope at linaro dot org
  14 siblings, 0 replies; 22+ messages in thread
From: fierevere at ya dot ru @ 2011-04-13  7:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #21 from Sylvia <fierevere at ya dot ru> 2011-04-13 07:24:32 UTC ---
Sorry, this mail address it not being used anymore, this message has been sent
automatically.
Извините, этот адрес более не используется, это сообщение было отправлено
автоматически.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug c++/43085] Make profiledbootstrap fails with cc1plus catching SIGSEGV
       [not found] <bug-43085-4@http.gcc.gnu.org/bugzilla/>
                   ` (13 preceding siblings ...)
  2011-04-13  7:24 ` fierevere at ya dot ru
@ 2011-04-13  7:24 ` michael.hope at linaro dot org
  14 siblings, 0 replies; 22+ messages in thread
From: michael.hope at linaro dot org @ 2011-04-13  7:24 UTC (permalink / raw)
  To: gcc-bugs

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

Michael Hope <michael.hope at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |michael.hope at linaro dot
                   |                            |org

--- Comment #20 from Michael Hope <michael.hope at linaro dot org> 2011-04-13 07:23:49 UTC ---
I'm seeing this problem with r172238 on i686.  See:

http://builds.linaro.org/toolchain/gcc-4.5+svn172238%5Eprofiled/logs/i686-lucid-cbuild109-scorpius-profiled/

4.6.0 is fine.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug c++/43085] Make profiledbootstrap fails with cc1plus catching SIGSEGV
       [not found] <bug-43085-4@http.gcc.gnu.org/bugzilla/>
                   ` (11 preceding siblings ...)
  2011-02-28  9:56 ` onur at pardus dot org.tr
@ 2011-02-28 10:09 ` onur at pardus dot org.tr
  2011-04-13  7:24 ` fierevere at ya dot ru
  2011-04-13  7:24 ` michael.hope at linaro dot org
  14 siblings, 0 replies; 22+ messages in thread
From: onur at pardus dot org.tr @ 2011-02-28 10:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #19 from Onur Küçük <onur at pardus dot org.tr> 2011-02-28 09:51:50 UTC ---
Created attachment 23488
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23488
revert 167492 patch


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug c++/43085] Make profiledbootstrap fails with cc1plus catching SIGSEGV
       [not found] <bug-43085-4@http.gcc.gnu.org/bugzilla/>
                   ` (10 preceding siblings ...)
  2010-12-21 17:11 ` onur at pardus dot org.tr
@ 2011-02-28  9:56 ` onur at pardus dot org.tr
  2011-02-28 10:09 ` onur at pardus dot org.tr
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 22+ messages in thread
From: onur at pardus dot org.tr @ 2011-02-28  9:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #18 from Onur Küçük <onur at pardus dot org.tr> 2011-02-28 09:50:51 UTC ---
I have found that reverting r167492  [1] fixes the problem for me. Of course it
brings back PR46806 but at least it should give a hint where the problem is.

Attaching the change as a patch, in case anyone is interested.


[1] http://gcc.gnu.org/viewcvs?view=revision&revision=167492


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug c++/43085] Make profiledbootstrap fails with cc1plus catching SIGSEGV
       [not found] <bug-43085-4@http.gcc.gnu.org/bugzilla/>
                   ` (9 preceding siblings ...)
  2010-12-21 14:44 ` onur at pardus dot org.tr
@ 2010-12-21 17:11 ` onur at pardus dot org.tr
  2011-02-28  9:56 ` onur at pardus dot org.tr
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 22+ messages in thread
From: onur at pardus dot org.tr @ 2010-12-21 17:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #17 from Onur Küçük <onur at pardus dot org.tr> 2010-12-21 17:10:48 UTC ---
I see this with i686 btw, x86-64 seems ok


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug c++/43085] Make profiledbootstrap fails with cc1plus catching SIGSEGV
       [not found] <bug-43085-4@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2010-12-21 14:35 ` jamborm at gcc dot gnu.org
@ 2010-12-21 14:44 ` onur at pardus dot org.tr
  2010-12-21 17:11 ` onur at pardus dot org.tr
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 22+ messages in thread
From: onur at pardus dot org.tr @ 2010-12-21 14:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #16 from Onur Küçük <onur at pardus dot org.tr> 2010-12-21 14:43:41 UTC ---
I can also reproduce the problem. It was not there with 4.5.1, came with 4.5.2.
When I force -O1 profiledbootstrap works fine, but ICE occurs with -O2.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug c++/43085] Make profiledbootstrap fails with cc1plus catching SIGSEGV
       [not found] <bug-43085-4@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2010-12-16 11:15 ` jamborm at gcc dot gnu.org
@ 2010-12-21 14:35 ` jamborm at gcc dot gnu.org
  2010-12-21 14:44 ` onur at pardus dot org.tr
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 22+ messages in thread
From: jamborm at gcc dot gnu.org @ 2010-12-21 14:35 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #15 from Martin Jambor <jamborm at gcc dot gnu.org> 2010-12-21 14:35:17 UTC ---
And it fails for me even when I switch both IPA-SRA and IPA-CP off.
So at the moment I have reasons to believe the bug is not in any of my
areas of knowledge or interest.  And since there are bugs like that,
I'll leave this one to others.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug c++/43085] Make profiledbootstrap fails with cc1plus catching SIGSEGV
       [not found] <bug-43085-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2010-10-13 17:48 ` aanisimov at inbox dot ru
@ 2010-12-16 11:15 ` jamborm at gcc dot gnu.org
  2010-12-21 14:35 ` jamborm at gcc dot gnu.org
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 22+ messages in thread
From: jamborm at gcc dot gnu.org @ 2010-12-16 11:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #14 from Martin Jambor <jamborm at gcc dot gnu.org> 2010-12-16 11:14:42 UTC ---
I've tried make profiledebootstrap with IPA-SRA disabled (directly in the code)
and it segfaulted anyway.  Will try it with disabled IPA-CP tonight.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug c++/43085] Make profiledbootstrap fails with cc1plus catching SIGSEGV
       [not found] <bug-43085-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2010-10-13 15:11 ` fierevere at ya dot ru
@ 2010-10-13 17:48 ` aanisimov at inbox dot ru
  2010-12-16 11:15 ` jamborm at gcc dot gnu.org
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 22+ messages in thread
From: aanisimov at inbox dot ru @ 2010-10-13 17:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from Artem Anisimov <aanisimov at inbox dot ru> 2010-10-13 17:46:51 UTC ---
> Artem, did you tried to make concurrent build ( make -j2 or anything more than
> -j1 ) ?

  I know about this trick and did a -j1 build :). Anyway, thanks for pointing
this out.

> Does adding "-Wcoverage-mismatch -fprofile-correction" flags help the issue?

  Where do these go?


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug c++/43085] Make profiledbootstrap fails with cc1plus catching SIGSEGV
       [not found] <bug-43085-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2010-10-13 14:38 ` jamborm at gcc dot gnu.org
@ 2010-10-13 15:11 ` fierevere at ya dot ru
  2010-10-13 17:48 ` aanisimov at inbox dot ru
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 22+ messages in thread
From: fierevere at ya dot ru @ 2010-10-13 15:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from Sylvia <fierevere at ya dot ru> 2010-10-13 15:10:34 UTC ---
(In reply to comment #8)

Artem, did you tried to make concurrent build ( make -j2 or anything more than
-j1 ) ?

there shouldnt be any collisions when building with single task (make -j1)

Does adding "-Wcoverage-mismatch -fprofile-correction" flags help the issue?


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug c++/43085] Make profiledbootstrap fails with cc1plus catching SIGSEGV
       [not found] <bug-43085-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2010-10-13 14:31 ` fierevere at ya dot ru
@ 2010-10-13 14:38 ` jamborm at gcc dot gnu.org
  2010-10-13 15:11 ` fierevere at ya dot ru
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 22+ messages in thread
From: jamborm at gcc dot gnu.org @ 2010-10-13 14:38 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Jambor <jamborm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.10.13 14:37:41
     Ever Confirmed|0                           |1

--- Comment #11 from Martin Jambor <jamborm at gcc dot gnu.org> 2010-10-13 14:37:41 UTC ---
Right, I tried again and with "release" checking I get a segfault too.  I'll
examine this closer.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug c++/43085] Make profiledbootstrap fails with cc1plus catching SIGSEGV
       [not found] <bug-43085-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2010-10-12 12:28 ` aanisimov at inbox dot ru
@ 2010-10-13 14:31 ` fierevere at ya dot ru
  2010-10-13 14:38 ` jamborm at gcc dot gnu.org
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 22+ messages in thread
From: fierevere at ya dot ru @ 2010-10-13 14:31 UTC (permalink / raw)
  To: gcc-bugs

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

Sylvia <fierevere at ya dot ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fierevere at ya dot ru

--- Comment #10 from Sylvia <fierevere at ya dot ru> 2010-10-13 14:30:19 UTC ---
(In reply to comment #7)
> Can you please check whether the problem persists for you on the
> current branch?  Thanks.

still the same, revision 165423 from /branches/gcc-4_5-branch


libtool: compile:  /var/tmp/gccbuild/./gcc/xgcc -shared-libgcc
-B/var/tmp/gccbuild/./gcc -nostdinc++
-L/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3/src
-L/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3/src/.libs
-B/usr/local/gcc-4.5/i586-sylvia-linux/bin/
-B/usr/local/gcc-4.5/i586-sylvia-linux/lib/ -isystem
/usr/local/gcc-4.5/i586-sylvia-linux/include -isystem
/usr/local/gcc-4.5/i586-sylvia-linux/sys-include
-I/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3/include/i586-sylvia-linux
-I/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3/include
-I/var/tmp/gcc-4.5.2pre_101013_r165423/libstdc++-v3/libsupc++
-fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -O2 -pipe
-fomit-frame-pointer -march=pentium4 -mtune=core2 -msse2 -mstackrealign
-fexcess-precision=fast -D_GNU_SOURCE -c
../../../../gcc-4.5.2pre_101013_r165423/libstdc++-v3/src/pool_allocator.cc 
-fPIC -DPIC -o .libs/pool_allocator.o
In file included from
../../../../gcc-4.5.2pre_101013_r165423/libstdc++-v3/src/pool_allocator.cc:31:0:
/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3/include/ext/pool_allocator.h:
In constructor '__gnu_cxx::__pool_alloc<_Tp>::__pool_alloc() [with _Tp =
char]':
../../../../gcc-4.5.2pre_101013_r165423/libstdc++-v3/src/pool_allocator.cc:171:18:
  instantiated from here
/var/tmp/gccbuild/i586-sylvia-linux/libstdc++-v3/include/ext/pool_allocator.h:140:30:
internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[4]: *** [pool_allocator.lo] Error 1



environment:
export CC=cc45
export CXX=c++45
AFLAGS="-O2 -pipe -fomit-frame-pointer -march=pentium4 -mtune=core2 -msse2
-mstackrealign -fexcess-precision=fast"
export CXXFLAGS_FOR_BUILD=${AFLAGS}
export CFLAGS_FOR_BUILD=${AFLAGS}
export BOOT_CFLAGS=${AFLAGS}
export LIBCFLAGS=${AFLAGS}
export LIBCXXFLAGS=${AFLAGS}
export CXXFLAGS_FOR_TARGET=${AFLAGS}
export CFLAGS_FOR_TARGET=${AFLAGS}
export CFLAGS=${AFLAGS}
export CXXFLAGS=${CFLAGS}
export JCFLAGS="-O2"
export FCFLAGS="-O2"

../${SRCDIR}/configure \
--prefix=/usr/local/gcc-4.5 \
--host=i586-sylvia-linux --build=i586-sylvia-linux --with-pkgversion=/argenta/
\
--disable-nls --with-cpu=core2 --with-arch=pentium4 \
--enable-languages=c,c++ --disable-stage1-checking --enable-checking=release \
--enable-threads --enable-tls \
--with-host-libstdcxx="/usr/local/gcc-4.5/lib/libstdc++.a /usr/lib/libm.a" \
--enable-lto --with-fpmath=sse


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug c++/43085] Make profiledbootstrap fails with cc1plus catching SIGSEGV
       [not found] <bug-43085-4@http.gcc.gnu.org/bugzilla/>
  2010-10-11 17:46 ` jamborm at gcc dot gnu.org
  2010-10-12 12:25 ` aanisimov at inbox dot ru
@ 2010-10-12 12:28 ` aanisimov at inbox dot ru
  2010-10-13 14:31 ` fierevere at ya dot ru
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 22+ messages in thread
From: aanisimov at inbox dot ru @ 2010-10-12 12:28 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Artem Anisimov <aanisimov at inbox dot ru> 2010-10-12 12:28:10 UTC ---
(In reply to comment #7)

 It's interesting to note that profiledbootstrap break amd64 build too, though
for different reason:

/home/artem/testing/gcc-build/./prev-gcc/xgcc
-B/home/artem/testing/gcc-build/./prev-gcc/
-B/home/artem/testing/gcc46/x86_64-slackware-linux/bin/
-B/home/artem/testing/gcc46/x86_64-slackware-linux/bin/
-B/home/artem/testing/gcc46/x86_64-slackware-linux/lib/ -isystem
/home/artem/testing/gcc46/x86_64-slackware-linux/include -isystem
/home/artem/testing/gcc46/x86_64-slackware-linux/sys-include    -c 
-DIN_GCC_FRONTEND -g -O2 -gtoggle -fprofile-generate -DIN_GCC   -W -Wall
-Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -Wold-style-definition -Wc++-compat  
-DHAVE_CONFIG_H -I. -I. -I../../gcc-current/gcc -I../../gcc-current/gcc/.
-I../../gcc-current/gcc/../include -I../../gcc-current/gcc/../libcpp/include 
-I../../gcc-current/gcc/../libdecnumber
-I../../gcc-current/gcc/../libdecnumber/bid -I../libdecnumber  
-I/usr/include/libelf  ../../gcc-current/gcc/c-parser.c -o c-parser.o
../../gcc-current/gcc/c-parser.c: In function 'c_parser_for_statement':
../../gcc-current/gcc/c-parser.c:4672:19: error: 'incr' may be used
uninitialized in this function [-Werror=uninitialized]
cc1: all warnings being treated as errors

  For amd64 I configured with these settings:

../gcc-current/configure --prefix=/home/artem/testing/gcc46 --enable-shared
--enable-bootstrap --enable-languages=c,c++ --enable-threads=posix
--enable-checking=release --with-system-zlib --disable-libunwind-exceptions
--enable-__cxa_atexit --enable-libssp --with-gnu-ld --with-lto --disable-nls
--verbose --with-arch=athlon64 --target=x86_64-slackware-linux
--build=x86_64-slackware-linux --host=x86_64-slackware-linux --disable-multilib
--enable-checking=release

  Doing normal (not profiled) build with these settings succeeds for me.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug c++/43085] Make profiledbootstrap fails with cc1plus catching SIGSEGV
       [not found] <bug-43085-4@http.gcc.gnu.org/bugzilla/>
  2010-10-11 17:46 ` jamborm at gcc dot gnu.org
@ 2010-10-12 12:25 ` aanisimov at inbox dot ru
  2010-10-12 12:28 ` aanisimov at inbox dot ru
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 22+ messages in thread
From: aanisimov at inbox dot ru @ 2010-10-12 12:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Artem Anisimov <aanisimov at inbox dot ru> 2010-10-12 12:25:10 UTC ---
(In reply to comment #7)
> I have run 'make profiledbootstrap' of today's checkout of the 4.5
> branc (revision 165315) on i686 and it finished without any problems
> for me.  I believe I configured it much like it is in the summary,
> except that I used "yes" checking.
> 
> Can you please check whether the problem persists for you on the
> current branch?  Thanks.

 Doing profiledbootstrap with r165350 gives the following error (configuration
options are the same as in the initial report):

/home/artem/testing/gcc-build/./prev-gcc/xgcc
-B/home/artem/testing/gcc-build/./prev-gcc/
-B/home/artem/testing/gcc45/i686-slackware-linux/bin/
-B/home/artem/testing/gcc45/i686-slackware-linux/bin/
-B/home/artem/testing/gcc45/i686-slackware-linux/lib/ -isystem
/home/artem/testing/gcc45/i686-slackware-linux/include -isystem
/home/artem/testing/gcc45/i686-slackware-linux/sys-include    -c
-DHAVE_CONFIG_H -g -O2 -fomit-frame-pointer -fprofile-use  -I.
-I../../gcc-current/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat
-Wstrict-prototypes -pedantic  ../../gcc-current/libiberty/fibheap.c -o
fibheap.o
../../gcc-current/libiberty/fibheap.c: In function
'fibheap_replace_key_data.part.5':
../../gcc-current/libiberty/fibheap.c:486:1: error: corrupted profile info:
profile data is not flow-consistent
../../gcc-current/libiberty/fibheap.c:486:1: error: corrupted profile info:
number of executions for edge 15-11 thought to be 21911
../../gcc-current/libiberty/fibheap.c:486:1: error: corrupted profile info:
number of executions for edge 15-16 thought to be -18020
../../gcc-current/libiberty/fibheap.c:486:1: error: corrupted profile info:
number of executions for edge 17-19 thought to be -8519
../../gcc-current/libiberty/fibheap.c:486:1: error: corrupted profile info:
number of executions for edge 17-18 thought to be 15215
../../gcc-current/libiberty/fibheap.c:486:1: error: corrupted profile info:
number of executions for edge 19-20 thought to be 14201
../../gcc-current/libiberty/fibheap.c:486:1: error: corrupted profile info:
number of executions for edge 19-21 thought to be -6112
make[3]: *** [fibheap.o] Erreur 1

 I tried running compilation twice and always had this result.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug c++/43085] Make profiledbootstrap fails with cc1plus catching SIGSEGV
       [not found] <bug-43085-4@http.gcc.gnu.org/bugzilla/>
@ 2010-10-11 17:46 ` jamborm at gcc dot gnu.org
  2010-10-12 12:25 ` aanisimov at inbox dot ru
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 22+ messages in thread
From: jamborm at gcc dot gnu.org @ 2010-10-11 17:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Martin Jambor <jamborm at gcc dot gnu.org> 2010-10-11 17:46:00 UTC ---
I have run 'make profiledbootstrap' of today's checkout of the 4.5
branc (revision 165315) on i686 and it finished without any problems
for me.  I believe I configured it much like it is in the summary,
except that I used "yes" checking.

Can you please check whether the problem persists for you on the
current branch?  Thanks.


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2011-04-13  7:24 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-15 19:22 [Bug other/43085] New: Make profiledbootstrap fails with cc1plus catching SIGSEGV aanisimov at inbox dot ru
2010-05-12  7:01 ` [Bug c++/43085] " fierevere at mail dot ru
2010-05-12  7:05 ` fierevere at mail dot ru
2010-09-01 20:48 ` fierevere at ya dot ru
2010-09-06 15:56 ` doko at ubuntu dot com
2010-09-15 21:01 ` pinskia at gcc dot gnu dot org
2010-09-16  9:31 ` rguenth at gcc dot gnu dot org
     [not found] <bug-43085-4@http.gcc.gnu.org/bugzilla/>
2010-10-11 17:46 ` jamborm at gcc dot gnu.org
2010-10-12 12:25 ` aanisimov at inbox dot ru
2010-10-12 12:28 ` aanisimov at inbox dot ru
2010-10-13 14:31 ` fierevere at ya dot ru
2010-10-13 14:38 ` jamborm at gcc dot gnu.org
2010-10-13 15:11 ` fierevere at ya dot ru
2010-10-13 17:48 ` aanisimov at inbox dot ru
2010-12-16 11:15 ` jamborm at gcc dot gnu.org
2010-12-21 14:35 ` jamborm at gcc dot gnu.org
2010-12-21 14:44 ` onur at pardus dot org.tr
2010-12-21 17:11 ` onur at pardus dot org.tr
2011-02-28  9:56 ` onur at pardus dot org.tr
2011-02-28 10:09 ` onur at pardus dot org.tr
2011-04-13  7:24 ` fierevere at ya dot ru
2011-04-13  7:24 ` michael.hope at linaro dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).