public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/61959] New: "internal compiler error: Segmentation fault" when building Mozilla code
@ 2014-07-29 21:43 botond at mozilla dot com
2014-07-29 22:00 ` [Bug c++/61959] " pinskia at gcc dot gnu.org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: botond at mozilla dot com @ 2014-07-29 21:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61959
Bug ID: 61959
Summary: "internal compiler error: Segmentation fault" when
building Mozilla code
Product: gcc
Version: 4.7.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: botond at mozilla dot com
Created attachment 33208
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33208&action=edit
preprocessed source, zipped
I ran into an internal compiler error while trying to compile the Gecko
codebase with the patch at [1].
The output was:
/home/botond/dev/mozilla/refactoring/dom/events/EventStateManager.cpp:5609:1:
internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
Preprocessed source stored into /tmp/cc7rD5Nc.out file, please attach this to
your bugreport.
Attached is the preprocessed source; I had to zip it to stay within the
attachment size limit.
My GCC version is 4.7.3; OS is Linux Mint 15 (Olivia).
Please let me know if there is any further informative I can provide.
[1] https://bug923512.bugzilla.mozilla.org/attachment.cgi?id=8464279
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/61959] "internal compiler error: Segmentation fault" when building Mozilla code
2014-07-29 21:43 [Bug c++/61959] New: "internal compiler error: Segmentation fault" when building Mozilla code botond at mozilla dot com
@ 2014-07-29 22:00 ` pinskia at gcc dot gnu.org
2014-07-29 22:48 ` botond at mozilla dot com
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-07-29 22:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61959
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/61959] "internal compiler error: Segmentation fault" when building Mozilla code
2014-07-29 21:43 [Bug c++/61959] New: "internal compiler error: Segmentation fault" when building Mozilla code botond at mozilla dot com
2014-07-29 22:00 ` [Bug c++/61959] " pinskia at gcc dot gnu.org
@ 2014-07-29 22:48 ` botond at mozilla dot com
2014-07-29 23:06 ` botond at mozilla dot com
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: botond at mozilla dot com @ 2014-07-29 22:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61959
--- Comment #2 from Botond Ballo <botond at mozilla dot com> ---
(In reply to Andrew Pinski from comment #1)
> >See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
Here is the output of g++ -v:
Using built-in specs.
COLLECT_GCC=/usr/bin/g++-4.7.real
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
4.7.3-1ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs
--enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.7 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin
--with-system-zlib --enable-objc-gc --with-cloog --enable-cloog-backend=ppl
--disable-cloog-version-check --disable-ppl-version-check --enable-multiarch
--disable-werror --with-arch-32=i686 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1)
Here is the complete command that triggers the bug:
g++ -c -std=c++11 esm-ice.ii
Anything else I missed?
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/61959] "internal compiler error: Segmentation fault" when building Mozilla code
2014-07-29 21:43 [Bug c++/61959] New: "internal compiler error: Segmentation fault" when building Mozilla code botond at mozilla dot com
2014-07-29 22:00 ` [Bug c++/61959] " pinskia at gcc dot gnu.org
2014-07-29 22:48 ` botond at mozilla dot com
@ 2014-07-29 23:06 ` botond at mozilla dot com
2014-07-29 23:44 ` [Bug c++/61959] "internal compiler error: in tree_to_uhwi, at tree.h:3657" " botond at mozilla dot com
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: botond at mozilla dot com @ 2014-07-29 23:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61959
Botond Ballo <botond at mozilla dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|4.7.3 |4.9.0
--- Comment #3 from Botond Ballo <botond at mozilla dot com> ---
Tried this with 4.9.0. I still get an ICE, but the error message is more
informative now:
/home/botond/dev/mozilla/refactoring/dom/events/EventStateManager.cpp:5609:1:
internal compiler error: in tree_to_uhwi, at tree.h:3657
0xb22aab tree_to_uhwi
../../src/gcc/tree.h:3657
0xb22aab output_constructor_regular_field
../../src/gcc/varasm.c:4894
0xb22aab output_constructor
../../src/gcc/varasm.c:5231
0xb21c7e assemble_variable(tree_node*, int, int, int)
../../src/gcc/varasm.c:2139
0xb238a5 varpool_assemble_decl(varpool_node*)
../../src/gcc/varpool.c:455
0x6de59d output_in_order
../../src/gcc/cgraphunit.c:2010
0x6de59d compile()
../../src/gcc/cgraphunit.c:2247
0x6de864 finalize_compilation_unit()
../../src/gcc/cgraphunit.c:2329
0x593f1b cp_write_global_declarations()
../../src/gcc/cp/decl2.c:4611
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/61959] "internal compiler error: in tree_to_uhwi, at tree.h:3657" when building Mozilla code
2014-07-29 21:43 [Bug c++/61959] New: "internal compiler error: Segmentation fault" when building Mozilla code botond at mozilla dot com
` (2 preceding siblings ...)
2014-07-29 23:06 ` botond at mozilla dot com
@ 2014-07-29 23:44 ` botond at mozilla dot com
2014-07-30 4:31 ` [Bug middle-end/61959] [4.8/4.9/4.10 Regression] ICE: in tree_to_uhwi, at tree.h:3657 " trippels at gcc dot gnu.org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: botond at mozilla dot com @ 2014-07-29 23:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61959
--- Comment #4 from Botond Ballo <botond at mozilla dot com> ---
Reduced code that triggers the ICE:
template <class T, class Sub, class Coord>
struct BasePoint {
Coord x, y;
constexpr BasePoint(Coord aX, Coord aY) : x(aX), y(aY) {}
};
template <class T, class Sub>
struct BaseCoord {
T value;
explicit constexpr BaseCoord(T aValue) : value(aValue) {}
};
template<class units>
struct IntCoordTyped :
public BaseCoord< int, IntCoordTyped<units> >,
public units {
typedef BaseCoord< int, IntCoordTyped<units> > Super;
constexpr IntCoordTyped(int aValue) : Super(aValue) {}
};
template<class units>
struct IntPointTyped :
public BasePoint< int, IntPointTyped<units>, IntCoordTyped<units> >,
public units {
typedef IntCoordTyped<units> Coord;
typedef BasePoint< int, IntPointTyped<units>, IntCoordTyped<units> > Super;
constexpr IntPointTyped(int aX, int aY) : Super(Coord(aX), Coord(aY)) {}
};
struct LayoutDevicePixel {};
typedef IntPointTyped<LayoutDevicePixel> LayoutDeviceIntPoint;
static const LayoutDeviceIntPoint kInvalidRefPoint =
LayoutDeviceIntPoint(-1,-1);
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/61959] [4.8/4.9/4.10 Regression] ICE: in tree_to_uhwi, at tree.h:3657 when building Mozilla code
2014-07-29 21:43 [Bug c++/61959] New: "internal compiler error: Segmentation fault" when building Mozilla code botond at mozilla dot com
` (3 preceding siblings ...)
2014-07-29 23:44 ` [Bug c++/61959] "internal compiler error: in tree_to_uhwi, at tree.h:3657" " botond at mozilla dot com
@ 2014-07-30 4:31 ` trippels at gcc dot gnu.org
2014-07-30 9:54 ` [Bug c++/61959] " rguenth at gcc dot gnu.org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-07-30 4:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61959
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-07-30
CC| |trippels at gcc dot gnu.org
Component|c++ |middle-end
Target Milestone|--- |4.8.4
Summary|"internal compiler error: |[4.8/4.9/4.10 Regression]
|in tree_to_uhwi, at |ICE: in tree_to_uhwi, at
|tree.h:3657" when building |tree.h:3657 when building
|Mozilla code |Mozilla code
Ever confirmed|0 |1
--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
A bit further reduced:
markus@x4 tmp % cat foo.ii
template <class Coord> struct BasePoint
{
Coord x, y;
constexpr BasePoint (Coord, Coord) : x (0), y (0) {}
};
template <class T> struct BaseCoord
{
int value;
constexpr BaseCoord (T) : value (1) {}
};
template <class units> struct IntCoordTyped : BaseCoord<int>, units
{
typedef BaseCoord Super;
constexpr IntCoordTyped (int) : Super (0) {}
};
template <class units>
struct IntPointTyped : BasePoint<IntCoordTyped<units> >, units
{
typedef BasePoint<IntCoordTyped<units> > Super;
constexpr IntPointTyped (int, int) : Super (0, 0) {}
};
struct A
{
};
IntPointTyped<A> a (0, 0);
markus@x4 tmp % g++ -O2 -std=c++11 -c foo.ii
foo.ii:25:26: internal compiler error: tree check: expected field_decl, have
pointer_plus_expr in output_constructor, at varasm.c:5194
IntPointTyped<A> a (0, 0);
^
0xdb4d94 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
../../gcc/gcc/tree.c:9169
0xe0a9e4 tree_check
../../gcc/gcc/tree.h:2728
0xe0a9e4 output_constructor
../../gcc/gcc/varasm.c:5194
0xe02817 output_constant
../../gcc/gcc/varasm.c:4735
0xe0b364 assemble_variable(tree_node*, int, int, int)
../../gcc/gcc/varasm.c:2175
0xe0caff varpool_node::assemble_decl()
../../gcc/gcc/varpool.c:544
0xe0d0c5 varpool_node::assemble_decl()
../../gcc/gcc/varpool.c:516
0xe0d0c5 varpool_node::output_variables()
../../gcc/gcc/varpool.c:684
0x844a7c compile()
../../gcc/gcc/cgraphunit.c:2262
0x845184 finalize_compilation_unit()
../../gcc/gcc/cgraphunit.c:2338
0x63330a cp_write_global_declarations()
../../gcc/gcc/cp/decl2.c:4684
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/61959] [4.8/4.9/4.10 Regression] ICE: in tree_to_uhwi, at tree.h:3657 when building Mozilla code
2014-07-29 21:43 [Bug c++/61959] New: "internal compiler error: Segmentation fault" when building Mozilla code botond at mozilla dot com
` (4 preceding siblings ...)
2014-07-30 4:31 ` [Bug middle-end/61959] [4.8/4.9/4.10 Regression] ICE: in tree_to_uhwi, at tree.h:3657 " trippels at gcc dot gnu.org
@ 2014-07-30 9:54 ` rguenth at gcc dot gnu.org
2014-08-07 19:10 ` jason at gcc dot gnu.org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-07-30 9:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61959
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|middle-end |c++
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
The constructor is invalid:
(gdb) p debug_generic_expr (exp)
{.D.2102={.x={.D.2071={.value=1}}, .y={.D.2071={.value=1}}}, .(struct A *) this
+ 8={}}
the element index has to be a FIELD_DECL - 'this + 8' is not allowed here.
C++ frontend issue.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/61959] [4.8/4.9/4.10 Regression] ICE: in tree_to_uhwi, at tree.h:3657 when building Mozilla code
2014-07-29 21:43 [Bug c++/61959] New: "internal compiler error: Segmentation fault" when building Mozilla code botond at mozilla dot com
` (5 preceding siblings ...)
2014-07-30 9:54 ` [Bug c++/61959] " rguenth at gcc dot gnu.org
@ 2014-08-07 19:10 ` jason at gcc dot gnu.org
2014-08-07 19:49 ` jason at gcc dot gnu.org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jason at gcc dot gnu.org @ 2014-08-07 19:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61959
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |jason at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/61959] [4.8/4.9/4.10 Regression] ICE: in tree_to_uhwi, at tree.h:3657 when building Mozilla code
2014-07-29 21:43 [Bug c++/61959] New: "internal compiler error: Segmentation fault" when building Mozilla code botond at mozilla dot com
` (7 preceding siblings ...)
2014-08-07 19:49 ` jason at gcc dot gnu.org
@ 2014-08-07 19:49 ` jason at gcc dot gnu.org
2014-08-07 19:50 ` jason at gcc dot gnu.org
2014-08-07 19:51 ` jason at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: jason at gcc dot gnu.org @ 2014-08-07 19:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61959
--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Aug 7 19:49:21 2014
New Revision: 213733
URL: https://gcc.gnu.org/viewcvs?rev=213733&root=gcc&view=rev
Log:
PR c++/61959
* semantics.c (cxx_eval_bare_aggregate): Handle POINTER_PLUS_EXPR.
Added:
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-empty7.C
Modified:
branches/gcc-4_9-branch/gcc/cp/ChangeLog
branches/gcc-4_9-branch/gcc/cp/semantics.c
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/61959] [4.8/4.9/4.10 Regression] ICE: in tree_to_uhwi, at tree.h:3657 when building Mozilla code
2014-07-29 21:43 [Bug c++/61959] New: "internal compiler error: Segmentation fault" when building Mozilla code botond at mozilla dot com
` (6 preceding siblings ...)
2014-08-07 19:10 ` jason at gcc dot gnu.org
@ 2014-08-07 19:49 ` jason at gcc dot gnu.org
2014-08-07 19:49 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jason at gcc dot gnu.org @ 2014-08-07 19:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61959
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Aug 7 19:48:30 2014
New Revision: 213731
URL: https://gcc.gnu.org/viewcvs?rev=213731&root=gcc&view=rev
Log:
PR c++/61959
* semantics.c (cxx_eval_bare_aggregate): Handle POINTER_PLUS_EXPR.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-empty7.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/61959] [4.8/4.9/4.10 Regression] ICE: in tree_to_uhwi, at tree.h:3657 when building Mozilla code
2014-07-29 21:43 [Bug c++/61959] New: "internal compiler error: Segmentation fault" when building Mozilla code botond at mozilla dot com
` (8 preceding siblings ...)
2014-08-07 19:49 ` jason at gcc dot gnu.org
@ 2014-08-07 19:50 ` jason at gcc dot gnu.org
2014-08-07 19:51 ` jason at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: jason at gcc dot gnu.org @ 2014-08-07 19:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61959
--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Aug 7 19:50:11 2014
New Revision: 213735
URL: https://gcc.gnu.org/viewcvs?rev=213735&root=gcc&view=rev
Log:
PR c++/61959
* semantics.c (cxx_eval_bare_aggregate): Handle POINTER_PLUS_EXPR.
Added:
branches/gcc-4_8-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-empty7.C
Modified:
branches/gcc-4_8-branch/gcc/cp/ChangeLog
branches/gcc-4_8-branch/gcc/cp/semantics.c
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/61959] [4.8/4.9/4.10 Regression] ICE: in tree_to_uhwi, at tree.h:3657 when building Mozilla code
2014-07-29 21:43 [Bug c++/61959] New: "internal compiler error: Segmentation fault" when building Mozilla code botond at mozilla dot com
` (9 preceding siblings ...)
2014-08-07 19:50 ` jason at gcc dot gnu.org
@ 2014-08-07 19:51 ` jason at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: jason at gcc dot gnu.org @ 2014-08-07 19:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61959
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 4.8.4/4.9.2/trunk.
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2014-08-07 19:51 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-29 21:43 [Bug c++/61959] New: "internal compiler error: Segmentation fault" when building Mozilla code botond at mozilla dot com
2014-07-29 22:00 ` [Bug c++/61959] " pinskia at gcc dot gnu.org
2014-07-29 22:48 ` botond at mozilla dot com
2014-07-29 23:06 ` botond at mozilla dot com
2014-07-29 23:44 ` [Bug c++/61959] "internal compiler error: in tree_to_uhwi, at tree.h:3657" " botond at mozilla dot com
2014-07-30 4:31 ` [Bug middle-end/61959] [4.8/4.9/4.10 Regression] ICE: in tree_to_uhwi, at tree.h:3657 " trippels at gcc dot gnu.org
2014-07-30 9:54 ` [Bug c++/61959] " rguenth at gcc dot gnu.org
2014-08-07 19:10 ` jason at gcc dot gnu.org
2014-08-07 19:49 ` jason at gcc dot gnu.org
2014-08-07 19:49 ` jason at gcc dot gnu.org
2014-08-07 19:50 ` jason at gcc dot gnu.org
2014-08-07 19:51 ` jason 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).