public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus)
@ 2014-09-12 16:29 nheghathivhistha at gmail dot com
  2014-09-12 16:30 ` [Bug c++/63244] " nheghathivhistha at gmail dot com
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: nheghathivhistha at gmail dot com @ 2014-09-12 16:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

            Bug ID: 63244
           Summary: x86_64-pc-linux-gnu-g++: internal compiler error:
                    Segmentation fault (program cc1plus)
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nheghathivhistha at gmail dot com

Created attachment 33481
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33481&action=edit
Preprocessed un-reduced file

Part of media-libs/mesa-10.2.7 Gentoo package segfaults cc1plus:
x86_64-pc-linux-gnu-g++ -m32 -DPACKAGE_NAME=\"Mesa\" -DPACKAGE_TARNAME=\"mesa\"
-DPACKAGE_VERSION=\"10.2.7\" "-DPACKAGE_STRING=\"Mesa 10.2.7\""
"-DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\""
-DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"10.2.7\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\"
-DHAVE___BUILTIN_BSWAP32=1 -DHAVE___BUILTIN_BSWAP64=1 -DHAVE_DLADDR=1
-DHAVE_CLOCK_GETTIME=1 -DHAVE_PTHREAD=1 -I. -DHAVE_PIPE_LOADER_XLIB
-DHAVE_PIPE_LOADER_DRI -DHAVE_PIPE_LOADER_DRM
-DPIPE_SEARCH_DIR=\"/usr/lib32/gallium-pipe\" -I../../../../include
-I../../../../src/gallium/include -I../../../../src/gallium/drivers
-I../../../../src/gallium/auxiliary -I../../../../src/gallium/winsys -I.
-std=c++11 -fvisibility=hidden -flto=4 -fuse-linker-plugin -O2 -ggdb -pipe
-march=core2 -mtune=core2 -mno-3dnow -mno-sse4.2 -mno-avx -mno-xop -mno-fma4
-mno-sse4a -Wall -fno-strict-aliasing -fno-builtin-memcmp -c core/context.cpp 
-fPIC -DPIC -o core/.libs/libclover_la-context.o -save-temps
x86_64-pc-linux-gnu-g++: warning: -pipe ignored because -save-temps specified
x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program
cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.

When LTO is not enabled it not happens. It crashes the same way in 64 bit mode.


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

* [Bug c++/63244] x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus)
  2014-09-12 16:29 [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus) nheghathivhistha at gmail dot com
@ 2014-09-12 16:30 ` nheghathivhistha at gmail dot com
  2014-09-12 16:40 ` nheghathivhistha at gmail dot com
                   ` (20 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: nheghathivhistha at gmail dot com @ 2014-09-12 16:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

--- Comment #1 from David Kredba <nheghathivhistha at gmail dot com> ---
gcc -v
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.2-alpha20140911/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.9.2-alpha20140911/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.9.2_alpha20140911/work/gcc-4.9-20140911/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.2-alpha20140911
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2-alpha20140911/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.2-alpha20140911
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.2-alpha20140911/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.2-alpha20140911/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2-alpha20140911/include/g++-v4
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.9.2-alpha20140911/python
--enable-languages=c,c++,go,objc,obj-c++,fortran,ada --enable-obsolete
--disable-werror --with-system-zlib --enable-nls --without-included-gettext
--enable-checking=release --with-bugurl=https://bugs.gentoo.org/
--with-pkgversion='Gentoo 4.9.2_alpha20140911' --enable-libstdcxx-time
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --enable-multilib --disable-altivec --disable-fixed-point
--enable-targets=all --enable-libgomp --enable-lto --with-cloog
--disable-isl-version-check
Thread model: posix
gcc version 4.9.2-alpha20140911 20140912 (prerelease) [gcc-4_9-branch revision
215199] (Gentoo 4.9.2_alpha20140911)


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

* [Bug c++/63244] x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus)
  2014-09-12 16:29 [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus) nheghathivhistha at gmail dot com
  2014-09-12 16:30 ` [Bug c++/63244] " nheghathivhistha at gmail dot com
@ 2014-09-12 16:40 ` nheghathivhistha at gmail dot com
  2014-09-12 17:05 ` nheghathivhistha at gmail dot com
                   ` (19 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: nheghathivhistha at gmail dot com @ 2014-09-12 16:40 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

--- Comment #2 from David Kredba <nheghathivhistha at gmail dot com> ---
x86_64-pc-linux-gnu-g++ -m32 -std=c++11 -fvisibility=hidden -flto=4
-fuse-linker-plugin -O2 -ggdb -pipe -march=core2 -mtune=core2 -mno-3dnow
-mno-sse4.2 -mno-avx -mno-xop -mno-fma4 -mno-sse4a -Wall -fno-strict-aliasing
-fno-builtin-memcmp -c context.ii  -fPIC -DPIC -o context.o reproduces it from
my home folder.


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

* [Bug c++/63244] x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus)
  2014-09-12 16:29 [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus) nheghathivhistha at gmail dot com
  2014-09-12 16:30 ` [Bug c++/63244] " nheghathivhistha at gmail dot com
  2014-09-12 16:40 ` nheghathivhistha at gmail dot com
@ 2014-09-12 17:05 ` nheghathivhistha at gmail dot com
  2014-09-12 17:23 ` [Bug middle-end/63244] [4.9 regression] " trippels at gcc dot gnu.org
                   ` (18 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: nheghathivhistha at gmail dot com @ 2014-09-12 17:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

--- Comment #3 from David Kredba <nheghathivhistha at gmail dot com> ---
C-Reduce in progress.


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

* [Bug middle-end/63244] [4.9 regression] internal compiler error: Segmentation fault (program cc1plus)
  2014-09-12 16:29 [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus) nheghathivhistha at gmail dot com
                   ` (2 preceding siblings ...)
  2014-09-12 17:05 ` nheghathivhistha at gmail dot com
@ 2014-09-12 17:23 ` trippels at gcc dot gnu.org
  2014-09-12 17:39 ` trippels at gcc dot gnu.org
                   ` (17 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-09-12 17:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |4.7.3, 5.0
   Last reconfirmed|                            |2014-09-12
          Component|c++                         |middle-end
                 CC|                            |trippels at gcc dot gnu.org
     Ever confirmed|0                           |1
            Summary|x86_64-pc-linux-gnu-g++:    |[4.9 regression] internal
                   |internal compiler error:    |compiler error:
                   |Segmentation fault (program |Segmentation fault (program
                   |cc1plus)                    |cc1plus)
   Target Milestone|---                         |4.9.3
      Known to fail|                            |4.9.2

--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
markus@x4 tmp % cat context.ii
namespace std {
template <typename>
void declval();
class A;
}
namespace detail {
template <typename...>
class iterator_adaptor;
template <typename, typename, typename>
class basic_range;
template <typename T>
using preferred_iterator_type = decltype(std::declval<T>);
}
template <typename... Os>
class adaptor_range
    : detail::basic_range<
          adaptor_range<Os...>,
          detail::iterator_adaptor<detail::preferred_iterator_type<Os>...>,
          detail::iterator_adaptor<detail::preferred_iterator_type<Os>...>> {};
template <typename>
using property_list = std::A;
class B {
  B(const property_list<int>& p1, const adaptor_range<int, int>& p2);
};
B::B(const ::property_list<int>& p1, const adaptor_range<int, int>& p2) {}

markus@x4 tmp % gdb --args g++ -std=c++11 -c context.ii
Reading symbols from g++...done.
(gdb) run
Starting program: /usr/bin/g++ -std=c++11 -c context.ii
process 30304 is executing new program:
/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.2/g++
[New process 30308]
process 30308 is executing new program:
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.9.2/cc1plus

Program received signal SIGSEGV, Segmentation fault.
[Switching to process 30308]
0x0000000000c2ffd6 in analyze_functions() ()
(gdb) bt
#0  0x0000000000c2ffd6 in analyze_functions() ()
#1  0x0000000000c2ed95 in finalize_compilation_unit() ()
#2  0x0000000000d2a2d4 in cp_write_global_declarations() ()
#3  0x0000000000c29020 in compile_file() [clone .lto_priv.2474] ()
#4  0x0000000000b6ccd7 in toplev_main(int, char**) ()
#5  0x00007ffff7741fd0 in __libc_start_main () from /lib/libc.so.6
#6  0x0000000000b66a93 in _start ()
(gdb)


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

* [Bug middle-end/63244] [4.9 regression] internal compiler error: Segmentation fault (program cc1plus)
  2014-09-12 16:29 [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus) nheghathivhistha at gmail dot com
                   ` (3 preceding siblings ...)
  2014-09-12 17:23 ` [Bug middle-end/63244] [4.9 regression] " trippels at gcc dot gnu.org
@ 2014-09-12 17:39 ` trippels at gcc dot gnu.org
  2014-09-12 17:43 ` trippels at gcc dot gnu.org
                   ` (16 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-09-12 17:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(gdb) bt
#0  analyze_functions () at ../../gcc/gcc/cgraphunit.c:1042
#1  0x00000000006e03f0 in finalize_compilation_unit () at
../../gcc/gcc/cgraphunit.c:2326
#2  0x0000000000594dd4 in cp_write_global_declarations () at
../../gcc/gcc/cp/decl2.c:4643
#3  0x0000000000951a4d in compile_file () at ../../gcc/gcc/toplev.c:562
#4  0x0000000000953620 in do_compile () at ../../gcc/gcc/toplev.c:1917
#5  toplev_main (argc=15, argv=0x7fffffffdfb8) at ../../gcc/gcc/toplev.c:1993
#6  0x00007ffff75fcfd0 in __libc_start_main () from /lib/libc.so.6
#7  0x000000000052cf61 in _start ()
(gdb) l
1037                  will be later needed to output debug info.  */
1038                  if (DECL_ABSTRACT_ORIGIN (decl))
1039                    {
1040                      struct cgraph_node *origin_node
1041                      = cgraph_get_node (DECL_ABSTRACT_ORIGIN (decl));
1042                      origin_node->used_as_abstract_origin = true;
1043                    }
1044                }
1045              else
1046                {


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

* [Bug middle-end/63244] [4.9 regression] internal compiler error: Segmentation fault (program cc1plus)
  2014-09-12 16:29 [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus) nheghathivhistha at gmail dot com
                   ` (4 preceding siblings ...)
  2014-09-12 17:39 ` trippels at gcc dot gnu.org
@ 2014-09-12 17:43 ` trippels at gcc dot gnu.org
  2014-09-12 18:35 ` nheghathivhistha at gmail dot com
                   ` (15 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-09-12 17:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.9.3                       |4.9.2


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

* [Bug middle-end/63244] [4.9 regression] internal compiler error: Segmentation fault (program cc1plus)
  2014-09-12 16:29 [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus) nheghathivhistha at gmail dot com
                   ` (5 preceding siblings ...)
  2014-09-12 17:43 ` trippels at gcc dot gnu.org
@ 2014-09-12 18:35 ` nheghathivhistha at gmail dot com
  2014-09-12 18:40 ` trippels at gcc dot gnu.org
                   ` (14 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: nheghathivhistha at gmail dot com @ 2014-09-12 18:35 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

--- Comment #6 from David Kredba <nheghathivhistha at gmail dot com> ---
For the record only, git version of c-reduce returned

namespace std {
template <typename> struct less;
template <typename> struct add_rvalue_reference;
template <typename _Tp> typename add_rvalue_reference<_Tp>::type declval();
template <typename _Tp> struct __add_rvalue_reference_helper {
  typedef _Tp type;
};
template <typename _Tp>
struct add_rvalue_reference : __add_rvalue_reference_helper<_Tp> {};
}
typedef int intptr_t;
namespace std {
template <typename> class allocator;
template <typename _Tp, typename = allocator<_Tp> > class vector {};
}

typedef intptr_t cl_context_properties;
namespace clover {
class device;
}
namespace std {
template <typename _Key, typename = less<_Key> > class map;
}
namespace clover {
template <typename> class intrusive_ref;
struct derefs;
namespace detail {
template <typename, typename...> class iterator_adaptor;
template <typename, typename, typename> class basic_range {
public:
  template <typename V> operator V() const {}
};
template <typename T> using preferred_iterator_type =
decltype(std::declval<T>);
}
template <typename F, typename... Os>
class adaptor_range : public detail::basic_range<
                          adaptor_range<F>, detail::iterator_adaptor<F>,
                          detail::iterator_adaptor<
                              F, detail::preferred_iterator_type<Os>...> > {};
template <typename T>
class ref_vector : public adaptor_range<derefs, std::vector<T> > {};
template <typename> class property_element;
template <typename D> using property_list = std::map<property_element<D> >;
class context {
  typedef clover::property_list<cl_context_properties> property_list;
  context(const property_list &, const ref_vector<device> &);
  std::vector<intrusive_ref<device> > devs;
};
}

using namespace clover;
context::context(const property_list &, const ref_vector<device> &devs)
    : devs(devs) {}


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

* [Bug middle-end/63244] [4.9 regression] internal compiler error: Segmentation fault (program cc1plus)
  2014-09-12 16:29 [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus) nheghathivhistha at gmail dot com
                   ` (6 preceding siblings ...)
  2014-09-12 18:35 ` nheghathivhistha at gmail dot com
@ 2014-09-12 18:40 ` trippels at gcc dot gnu.org
  2014-09-13 18:58 ` nheghathivhistha at gmail dot com
                   ` (13 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-09-12 18:40 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

--- Comment #7 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
When one uses a naive test script one arrives at the testcase
from comment 4. Using a differential script (-O2 vs. -flto -O2 -g)
one gets:

markus@x4 /tmp % cat context2.ii
namespace std {
template <typename _Tp>
_Tp declval();
}
class A {};
namespace std {
template <typename>
using __allocator_base = A;
template <typename>
class H : __allocator_base<int> {};
template <typename _Tp, typename = std::H<_Tp>>
class I {};
}

template <typename>
class D;
struct F;
namespace detail {
template <typename, typename...>
class iterator_adaptor;
template <typename, typename, typename>
class basic_range {
 public:
  template <typename>
  using store_traits = int;
  template <typename V>
  operator V() const {}
};
template <typename T>
using preferred_iterator_type = decltype(std::declval<T>);
}

template <typename... Os>
class adaptor_range
    : public detail::basic_range<
          adaptor_range<Os...>,
          detail::iterator_adaptor<F, detail::preferred_iterator_type<Os>...>,
          detail::iterator_adaptor<
              F, detail::preferred_iterator_type<const Os>...>> {};
class J : public adaptor_range<std::I<int *>> {};
template <typename>
using property_list = int;
class G {
  G(const property_list<int> &props, const J &);
  std::I<D<int>> devs;
};
G::G(const property_list<int> &props, const J &devs) : devs(devs) {}

markus@x4 /tmp % g++ -std=c++11 -flto -O2 -g -c context2.ii
g++: internal compiler error: Segmentation fault (program cc1plus)
0x40c96c execute
        ../../gcc/gcc/gcc.c:2855
0x40cd34 do_spec_1
        ../../gcc/gcc/gcc.c:4659
0x40f5f6 process_brace_body
        ../../gcc/gcc/gcc.c:5942
0x40f5f6 handle_braces
        ../../gcc/gcc/gcc.c:5856
0x40dba9 do_spec_1
        ../../gcc/gcc/gcc.c:5313
0x40f5f6 process_brace_body
        ../../gcc/gcc/gcc.c:5942
0x40f5f6 handle_braces
        ../../gcc/gcc/gcc.c:5856
0x40dba9 do_spec_1
        ../../gcc/gcc/gcc.c:5313
0x40d913 do_spec_1
        ../../gcc/gcc/gcc.c:5428
0x40f5f6 process_brace_body
        ../../gcc/gcc/gcc.c:5942
0x40f5f6 handle_braces
        ../../gcc/gcc/gcc.c:5856
0x40dba9 do_spec_1
        ../../gcc/gcc/gcc.c:5313
0x40f5f6 process_brace_body
        ../../gcc/gcc/gcc.c:5942
0x40f5f6 handle_braces
        ../../gcc/gcc/gcc.c:5856
0x40dba9 do_spec_1
        ../../gcc/gcc/gcc.c:5313
0x40f5f6 process_brace_body
        ../../gcc/gcc/gcc.c:5942
0x40f5f6 handle_braces
        ../../gcc/gcc/gcc.c:5856
0x40dba9 do_spec_1
        ../../gcc/gcc/gcc.c:5313
0x40f5f6 process_brace_body
        ../../gcc/gcc/gcc.c:5942
0x40f5f6 handle_braces
        ../../gcc/gcc/gcc.c:5856
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Looks like a stack overflow.

(-g and -flto alone are fine)
markus@x4 /tmp % g++ -std=c++11 -O2 -g -c context2.ii
markus@x4 /tmp % g++ -std=c++11 -flto -O2 -c context2.ii
markus@x4 /tmp %


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

* [Bug middle-end/63244] [4.9 regression] internal compiler error: Segmentation fault (program cc1plus)
  2014-09-12 16:29 [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus) nheghathivhistha at gmail dot com
                   ` (7 preceding siblings ...)
  2014-09-12 18:40 ` trippels at gcc dot gnu.org
@ 2014-09-13 18:58 ` nheghathivhistha at gmail dot com
  2014-09-15 12:31 ` trippels at gcc dot gnu.org
                   ` (12 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: nheghathivhistha at gmail dot com @ 2014-09-13 18:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

--- Comment #8 from David Kredba <nheghathivhistha at gmail dot com> ---
I tried gdb and follow-fork-mode child and bt is repeating below for me.

-cut-
#101591 0x0000000000e99a17 in d_print_comp (dpi=dpi@entry=0x7fffffff9200,
options=options@entry=0, dc=<optimized out>)
    at
/var/tmp/portage/sys-devel/gcc-4.9.2_alpha20140911/work/gcc-4.9-20140911/libiberty/cp-demangle.c:4517
#101592 0x0000000000e9c618 in d_print_cast (dpi=dpi@entry=0x7fffffff9200,
options=options@entry=0, dc=0x7fffffff9d90)
    at
/var/tmp/portage/sys-devel/gcc-4.9.2_alpha20140911/work/gcc-4.9-20140911/libiberty/cp-demangle.c:5700
#101593 0x0000000000e9a623 in d_print_comp (dpi=dpi@entry=0x7fffffff9200,
options=options@entry=0, dc=dc@entry=0x7fffffff9d90)
    at
/var/tmp/portage/sys-devel/gcc-4.9.2_alpha20140911/work/gcc-4.9-20140911/libiberty/cp-demangle.c:4967
#101594 0x0000000000e9a278 in d_print_comp (dpi=dpi@entry=0x7fffffff9200,
options=options@entry=0, dc=<optimized out>)
    at
/var/tmp/portage/sys-devel/gcc-4.9.2_alpha20140911/work/gcc-4.9-20140911/libiberty/cp-demangle.c:4326
-cut-


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

* [Bug middle-end/63244] [4.9 regression] internal compiler error: Segmentation fault (program cc1plus)
  2014-09-12 16:29 [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus) nheghathivhistha at gmail dot com
                   ` (8 preceding siblings ...)
  2014-09-13 18:58 ` nheghathivhistha at gmail dot com
@ 2014-09-15 12:31 ` trippels at gcc dot gnu.org
  2014-09-15 13:34 ` trippels at gcc dot gnu.org
                   ` (11 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-09-15 12:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ccoutant at gcc dot gnu.org

--- Comment #9 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Original issue started with r205292.
(issues from comment 4 & 5 are older (haven't bisceted yet))


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

* [Bug middle-end/63244] [4.9 regression] internal compiler error: Segmentation fault (program cc1plus)
  2014-09-12 16:29 [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus) nheghathivhistha at gmail dot com
                   ` (9 preceding siblings ...)
  2014-09-15 12:31 ` trippels at gcc dot gnu.org
@ 2014-09-15 13:34 ` trippels at gcc dot gnu.org
  2014-09-19  8:04 ` trippels at gcc dot gnu.org
                   ` (10 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-09-15 13:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

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

--- Comment #10 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
The testcase from comment 4 started segfaulting with r202298.


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

* [Bug middle-end/63244] [4.9 regression] internal compiler error: Segmentation fault (program cc1plus)
  2014-09-12 16:29 [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus) nheghathivhistha at gmail dot com
                   ` (10 preceding siblings ...)
  2014-09-15 13:34 ` trippels at gcc dot gnu.org
@ 2014-09-19  8:04 ` trippels at gcc dot gnu.org
  2014-09-19 16:32 ` ccoutant at gcc dot gnu.org
                   ` (9 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-09-19  8:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

--- Comment #11 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Markus Trippelsdorf from comment #10)
> The testcase from comment 4 started segfaulting with r202298.

I've opened PR63306 for this issue.


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

* [Bug middle-end/63244] [4.9 regression] internal compiler error: Segmentation fault (program cc1plus)
  2014-09-12 16:29 [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus) nheghathivhistha at gmail dot com
                   ` (11 preceding siblings ...)
  2014-09-19  8:04 ` trippels at gcc dot gnu.org
@ 2014-09-19 16:32 ` ccoutant at gcc dot gnu.org
  2014-10-11 13:58 ` nheghathivhistha at gmail dot com
                   ` (8 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: ccoutant at gcc dot gnu.org @ 2014-09-19 16:32 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

Cary Coutant <ccoutant at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |ccoutant at gcc dot gnu.org


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

* [Bug middle-end/63244] [4.9 regression] internal compiler error: Segmentation fault (program cc1plus)
  2014-09-12 16:29 [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus) nheghathivhistha at gmail dot com
                   ` (12 preceding siblings ...)
  2014-09-19 16:32 ` ccoutant at gcc dot gnu.org
@ 2014-10-11 13:58 ` nheghathivhistha at gmail dot com
  2014-10-30 10:43 ` jakub at gcc dot gnu.org
                   ` (7 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: nheghathivhistha at gmail dot com @ 2014-10-11 13:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

--- Comment #12 from David Kredba <nheghathivhistha at gmail dot com> ---
The same affects games-simulation/flightgear-3.0.0-r1:
/var/tmp/portage/games-simulation/flightgear-3.0.0-r1/work/flightgear-3.0.0/src/Environment/environment.cxx:
In member function '_recalc_alt_pt':
/var/tmp/portage/games-simulation/flightgear-3.0.0-r1/work/flightgear-3.0.0/src/Environment/environment.cxx:741:1:
internal compiler error: Segmentation fault
 FGEnvironment::_recalc_alt_pt ()
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
with gcc-4_9-branch revision 216116.

When -g is removed, problem is gone.


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

* [Bug middle-end/63244] [4.9 regression] internal compiler error: Segmentation fault (program cc1plus)
  2014-09-12 16:29 [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus) nheghathivhistha at gmail dot com
                   ` (13 preceding siblings ...)
  2014-10-11 13:58 ` nheghathivhistha at gmail dot com
@ 2014-10-30 10:43 ` jakub at gcc dot gnu.org
  2014-11-07 13:29 ` [Bug middle-end/63244] [4.9/5 " trippels at gcc dot gnu.org
                   ` (6 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-10-30 10:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.9.2                       |4.9.3

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9.2 has been released.


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

* [Bug middle-end/63244] [4.9/5 regression] internal compiler error: Segmentation fault (program cc1plus)
  2014-09-12 16:29 [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus) nheghathivhistha at gmail dot com
                   ` (14 preceding siblings ...)
  2014-10-30 10:43 ` jakub at gcc dot gnu.org
@ 2014-11-07 13:29 ` trippels at gcc dot gnu.org
  2014-11-07 14:00 ` trippels at gcc dot gnu.org
                   ` (5 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-11-07 13:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
           Priority|P3                          |P1
            Summary|[4.9 regression] internal   |[4.9/5 regression] internal
                   |compiler error:             |compiler error:
                   |Segmentation fault (program |Segmentation fault (program
                   |cc1plus)                    |cc1plus)

--- Comment #14 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
This also happens when building the Linux kernel on ppc64 with 5.0:

trippels@gcc2-power8 linux-3.17.2 % gcc -c -O2 sock.i
gcc: internal compiler error: Segmentation fault (program cc1)
0x1000f7bb execute
        ../../gcc/gcc/gcc.c:2908
0x1000fd03 do_spec_1
        ../../gcc/gcc/gcc.c:4724
0x10012807 process_brace_body
        ../../gcc/gcc/gcc.c:6007
0x10012807 handle_braces
        ../../gcc/gcc/gcc.c:5921
0x1001090f do_spec_1
        ../../gcc/gcc/gcc.c:5378
0x10012807 process_brace_body
        ../../gcc/gcc/gcc.c:6007
0x10012807 handle_braces
        ../../gcc/gcc/gcc.c:5921
0x1001090f do_spec_1
        ../../gcc/gcc/gcc.c:5378
0x1000ffb7 do_spec_1
        ../../gcc/gcc/gcc.c:5493
0x10012807 process_brace_body
        ../../gcc/gcc/gcc.c:6007
0x10012807 handle_braces
        ../../gcc/gcc/gcc.c:5921
0x1001090f do_spec_1
        ../../gcc/gcc/gcc.c:5378
0x10012807 process_brace_body
        ../../gcc/gcc/gcc.c:6007
0x10012807 handle_braces
        ../../gcc/gcc/gcc.c:5921
0x1001090f do_spec_1
        ../../gcc/gcc/gcc.c:5378
0x10012807 process_brace_body
        ../../gcc/gcc/gcc.c:6007
0x10012807 handle_braces
        ../../gcc/gcc/gcc.c:5921
0x1001090f do_spec_1
        ../../gcc/gcc/gcc.c:5378
0x10012807 process_brace_body
        ../../gcc/gcc/gcc.c:6007
0x10012807 handle_braces
        ../../gcc/gcc/gcc.c:5921
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.

dmesg shows:
[Nov 7 13:23] cc1[65025]: bad frame in setup_rt_frame: 00003fffebfbf770 nip
0000000010461268 lr 0000000010465c80

Looks like a stack overflow. Adjusting importance.


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

* [Bug middle-end/63244] [4.9/5 regression] internal compiler error: Segmentation fault (program cc1plus)
  2014-09-12 16:29 [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus) nheghathivhistha at gmail dot com
                   ` (15 preceding siblings ...)
  2014-11-07 13:29 ` [Bug middle-end/63244] [4.9/5 " trippels at gcc dot gnu.org
@ 2014-11-07 14:00 ` trippels at gcc dot gnu.org
  2014-11-07 16:25 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-11-07 14:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--- Comment #16 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Hmm, the 5.0 issue was fixed by r217214. Maybe the fix should be 
backported to 4.9?


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

* [Bug middle-end/63244] [4.9/5 regression] internal compiler error: Segmentation fault (program cc1plus)
  2014-09-12 16:29 [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus) nheghathivhistha at gmail dot com
                   ` (16 preceding siblings ...)
  2014-11-07 14:00 ` trippels at gcc dot gnu.org
@ 2014-11-07 16:25 ` rguenth at gcc dot gnu.org
  2014-11-07 16:46 ` trippels at gcc dot gnu.org
                   ` (3 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-11-07 16:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

--- Comment #17 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Markus Trippelsdorf from comment #16)
> Hmm, the 5.0 issue was fixed by r217214. Maybe the fix should be 
> backported to 4.9?

The 5.0 issue was new in 5.0.  What testcase of the very many in this bug fail
with 4.9?


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

* [Bug middle-end/63244] [4.9/5 regression] internal compiler error: Segmentation fault (program cc1plus)
  2014-09-12 16:29 [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus) nheghathivhistha at gmail dot com
                   ` (17 preceding siblings ...)
  2014-11-07 16:25 ` rguenth at gcc dot gnu.org
@ 2014-11-07 16:46 ` trippels at gcc dot gnu.org
  2014-11-07 18:13 ` ccoutant at gcc dot gnu.org
                   ` (2 subsequent siblings)
  21 siblings, 0 replies; 23+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-11-07 16:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

--- Comment #18 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #17)
> (In reply to Markus Trippelsdorf from comment #16)
> > Hmm, the 5.0 issue was fixed by r217214. Maybe the fix should be 
> > backported to 4.9?
> 
> The 5.0 issue was new in 5.0.  What testcase of the very many in this bug
> fail with 4.9?

The one from comment 7.


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

* [Bug middle-end/63244] [4.9/5 regression] internal compiler error: Segmentation fault (program cc1plus)
  2014-09-12 16:29 [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus) nheghathivhistha at gmail dot com
                   ` (18 preceding siblings ...)
  2014-11-07 16:46 ` trippels at gcc dot gnu.org
@ 2014-11-07 18:13 ` ccoutant at gcc dot gnu.org
  2014-11-10 19:19 ` ccoutant at gcc dot gnu.org
  2014-11-10 19:19 ` ccoutant at gcc dot gnu.org
  21 siblings, 0 replies; 23+ messages in thread
From: ccoutant at gcc dot gnu.org @ 2014-11-07 18:13 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

Cary Coutant <ccoutant at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at redhat dot com

--- Comment #19 from Cary Coutant <ccoutant at gcc dot gnu.org> ---
I'm pretty sure that Pedro's proposed patch here --

https://gcc.gnu.org/ml/gcc-patches/2014-05/msg02279.html

-- will fix this bug.


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

* [Bug middle-end/63244] [4.9/5 regression] internal compiler error: Segmentation fault (program cc1plus)
  2014-09-12 16:29 [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus) nheghathivhistha at gmail dot com
                   ` (19 preceding siblings ...)
  2014-11-07 18:13 ` ccoutant at gcc dot gnu.org
@ 2014-11-10 19:19 ` ccoutant at gcc dot gnu.org
  2014-11-10 19:19 ` ccoutant at gcc dot gnu.org
  21 siblings, 0 replies; 23+ messages in thread
From: ccoutant at gcc dot gnu.org @ 2014-11-10 19:19 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

Cary Coutant <ccoutant at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #20 from Cary Coutant <ccoutant at gcc dot gnu.org> ---
Duplicate of PR 61321.


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

* [Bug middle-end/63244] [4.9/5 regression] internal compiler error: Segmentation fault (program cc1plus)
  2014-09-12 16:29 [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus) nheghathivhistha at gmail dot com
                   ` (20 preceding siblings ...)
  2014-11-10 19:19 ` ccoutant at gcc dot gnu.org
@ 2014-11-10 19:19 ` ccoutant at gcc dot gnu.org
  21 siblings, 0 replies; 23+ messages in thread
From: ccoutant at gcc dot gnu.org @ 2014-11-10 19:19 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63244

Cary Coutant <ccoutant at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |DUPLICATE

--- Comment #21 from Cary Coutant <ccoutant at gcc dot gnu.org> ---
Duplicate of PR 61321.

*** This bug has been marked as a duplicate of bug 61321 ***


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

end of thread, other threads:[~2014-11-10 19:19 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-12 16:29 [Bug c++/63244] New: x86_64-pc-linux-gnu-g++: internal compiler error: Segmentation fault (program cc1plus) nheghathivhistha at gmail dot com
2014-09-12 16:30 ` [Bug c++/63244] " nheghathivhistha at gmail dot com
2014-09-12 16:40 ` nheghathivhistha at gmail dot com
2014-09-12 17:05 ` nheghathivhistha at gmail dot com
2014-09-12 17:23 ` [Bug middle-end/63244] [4.9 regression] " trippels at gcc dot gnu.org
2014-09-12 17:39 ` trippels at gcc dot gnu.org
2014-09-12 17:43 ` trippels at gcc dot gnu.org
2014-09-12 18:35 ` nheghathivhistha at gmail dot com
2014-09-12 18:40 ` trippels at gcc dot gnu.org
2014-09-13 18:58 ` nheghathivhistha at gmail dot com
2014-09-15 12:31 ` trippels at gcc dot gnu.org
2014-09-15 13:34 ` trippels at gcc dot gnu.org
2014-09-19  8:04 ` trippels at gcc dot gnu.org
2014-09-19 16:32 ` ccoutant at gcc dot gnu.org
2014-10-11 13:58 ` nheghathivhistha at gmail dot com
2014-10-30 10:43 ` jakub at gcc dot gnu.org
2014-11-07 13:29 ` [Bug middle-end/63244] [4.9/5 " trippels at gcc dot gnu.org
2014-11-07 14:00 ` trippels at gcc dot gnu.org
2014-11-07 16:25 ` rguenth at gcc dot gnu.org
2014-11-07 16:46 ` trippels at gcc dot gnu.org
2014-11-07 18:13 ` ccoutant at gcc dot gnu.org
2014-11-10 19:19 ` ccoutant at gcc dot gnu.org
2014-11-10 19:19 ` ccoutant at gcc dot gnu.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).