public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/41183] New: internal compiler error: Segmentation fault compiling chromium
@ 2009-08-28 16:26 hdasch at gmail dot com
2009-08-28 16:32 ` [Bug c++/41183] " hdasch at gmail dot com
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: hdasch at gmail dot com @ 2009-08-28 16:26 UTC (permalink / raw)
To: gcc-bugs
Error messages:
In file included from third_party/WebKit/WebCore/svg/SVGElement.h:28,
from
third_party/WebKit/WebCore/svg/SVGExternalResourcesRequired.h:28,
from
third_party/WebKit/WebCore/svg/SVGExternalResourcesRequired.cpp:27:
third_party/WebKit/WebCore/svg/SVGAnimatedProperty.h: In constructor
‘WebCore::SVGAnimatedProperty<OwnerTypeArg, AnimatedTypeArg, TagName,
PropertyName>::SVGAnimatedProperty(const OwnerTypeArg*, const
WebCore::QualifiedName&, const T1&) [with T1 = bool, OwnerTypeArg =
WebCore::SVGExternalResourcesRequired, AnimatedTypeArg = bool, const char*
TagName = ((const char*)((char*)(&
WebCore::SVGExternalResourcesRequiredIdentifier))), const char* PropertyName =
((const char*)((char*)(&
WebCore::SVGNames::externalResourcesRequiredAttrString)))]’:
third_party/WebKit/WebCore/svg/SVGAnimatedProperty.h:215: internal compiler
error: Segmentation fault
Command line:
g++ -pthread -fno-exceptions -fno-strict-aliasing -fno-strict-aliasing \
-pthread -O2 -g -fno-rtti -fno-threadsafe-statics -c \
SVGExternalResourcesRequired.ii
Compiler build configuration:
../configure --prefix=/usr --enable-shared \
--enable-languages=c,c++,fortran,objc,obj-c++ \
--enable-threads=posix --mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-__cxa_atexit --disable-multilib --libdir=/usr/lib \
--libexecdir=/usr/lib --enable-clocale=gnu \
--disable-libstdcxx-pch \
--with-tune=generic
--
Summary: internal compiler error: Segmentation fault compiling
chromium
Product: gcc
Version: 4.4.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hdasch at gmail dot com
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41183
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/41183] internal compiler error: Segmentation fault compiling chromium
2009-08-28 16:26 [Bug c++/41183] New: internal compiler error: Segmentation fault compiling chromium hdasch at gmail dot com
@ 2009-08-28 16:32 ` hdasch at gmail dot com
2009-08-28 17:48 ` ubizjak at gmail dot com
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: hdasch at gmail dot com @ 2009-08-28 16:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from hdasch at gmail dot com 2009-08-28 16:32 -------
Created an attachment (id=18444)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18444&action=view)
test case: preprocessor output
Compressed to fit attachment size constraints.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41183
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/41183] internal compiler error: Segmentation fault compiling chromium
2009-08-28 16:26 [Bug c++/41183] New: internal compiler error: Segmentation fault compiling chromium hdasch at gmail dot com
2009-08-28 16:32 ` [Bug c++/41183] " hdasch at gmail dot com
@ 2009-08-28 17:48 ` ubizjak at gmail dot com
2009-11-30 0:38 ` [Bug middle-end/41183] [4.4 Regression] ICE " reichelt at gcc dot gnu dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: ubizjak at gmail dot com @ 2009-08-28 17:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from ubizjak at gmail dot com 2009-08-28 17:48 -------
Confirmed with "GNU C++ (GCC) version 4.4.2 20090823 (prerelease)
[gcc-4_4-branch revision 151029] (x86_64-unknown-linux-gnu)"
Program received signal SIGSEGV, Segmentation fault.
0x0000000000499265 in lvalue_p_1 (ref=0x7fffefc076e0)
at ../../gcc-svn/branches/gcc-4_4-branch/gcc/cp/tree.c:88
88 if (ref == current_class_ptr)
backtrace:
#0 0x0000000000499265 in lvalue_p_1 (ref=0x7fffefc076e0)
at ../../gcc-svn/branches/gcc-4_4-branch/gcc/cp/tree.c:88
#1 0x00000000004994d9 in lvalue_p (ref=0x7ffff14c1a80)
at ../../gcc-svn/branches/gcc-4_4-branch/gcc/cp/tree.c:248
#2 0x0000000000471737 in lvalue_or_else (ref=0x7ffff14c1a80, use=15,
complain=tf_none)
at ../../gcc-svn/branches/gcc-4_4-branch/gcc/cp/typeck.c:7426
#3 0x0000000000476998 in cp_build_unary_op (code=ADDR_EXPR,
xarg=0x7fffefc076e0, noconvert=<value optimized out>, complain=tf_error)
at ../../gcc-svn/branches/gcc-4_4-branch/gcc/cp/typeck.c:4666
#4 0x0000000000477481 in build_x_unary_op (code=ADDR_EXPR,
xarg=0x7fffefc076e0, complain=tf_error)
at ../../gcc-svn/branches/gcc-4_4-branch/gcc/cp/typeck.c:4174
#5 0x000000000042e15f in tsubst_copy_and_build (t=<value optimized out>,
args=0x0, complain=tf_error, in_decl=0x0, function_p=0 '\0',
integral_constant_expression_p=1 '\1')
at ../../gcc-svn/branches/gcc-4_4-branch/gcc/cp/pt.c:11276
#6 0x000000000042da53 in tsubst_copy_and_build (t=<value optimized out>,
args=0x0, complain=tf_error, in_decl=0x0, function_p=0 '\0',
integral_constant_expression_p=1 '\1')
at ../../gcc-svn/branches/gcc-4_4-branch/gcc/cp/pt.c:11205
#7 0x000000000042da53 in tsubst_copy_and_build (t=<value optimized out>,
args=0x0, complain=tf_error, in_decl=0x0, function_p=0 '\0',
--
ubizjak at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Known to work| |4.5.0
Last reconfirmed|0000-00-00 00:00:00 |2009-08-28 17:48:16
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41183
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/41183] [4.4 Regression] ICE compiling chromium
2009-08-28 16:26 [Bug c++/41183] New: internal compiler error: Segmentation fault compiling chromium hdasch at gmail dot com
2009-08-28 16:32 ` [Bug c++/41183] " hdasch at gmail dot com
2009-08-28 17:48 ` ubizjak at gmail dot com
@ 2009-11-30 0:38 ` reichelt at gcc dot gnu dot org
2009-11-30 1:04 ` [Bug c++/41183] " pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-11-30 0:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from reichelt at gcc dot gnu dot org 2009-11-30 00:37 -------
Reduced testcase (crashes with "-O2" on i686-pc-linux-gnu):
==========================================================================
void foo(const char*);
template<int*> struct A
{
template<typename T> A(const int&, T);
int i;
};
template<int* X> template<typename T> A<X>::A(const int& j, T) : i(j)
{
foo(0);
foo(0);
foo(__PRETTY_FUNCTION__);
}
int N;
struct B
{
B();
A<&N> a;
};
B::B() : a(N, 0) {}
==========================================================================
The crash only happens on the 4.4 branch.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Component|c++ |middle-end
Keywords| |ice-on-valid-code, monitored
Known to fail| |4.4.0 4.4.1 4.4.2
Known to work|4.5.0 |4.3.4 4.5.0
Summary|internal compiler error: |[4.4 Regression] ICE
|Segmentation fault compiling|compiling chromium
|chromium |
Target Milestone|--- |4.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41183
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/41183] [4.4 Regression] ICE compiling chromium
2009-08-28 16:26 [Bug c++/41183] New: internal compiler error: Segmentation fault compiling chromium hdasch at gmail dot com
` (2 preceding siblings ...)
2009-11-30 0:38 ` [Bug middle-end/41183] [4.4 Regression] ICE " reichelt at gcc dot gnu dot org
@ 2009-11-30 1:04 ` pinskia at gcc dot gnu dot org
2009-11-30 7:57 ` [Bug middle-end/41183] " hjl dot tools at gmail dot com
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-11-30 1:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2009-11-30 01:03 -------
lvalue_or_else is C++ front-end function ...
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|middle-end |c++
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41183
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/41183] [4.4 Regression] ICE compiling chromium
2009-08-28 16:26 [Bug c++/41183] New: internal compiler error: Segmentation fault compiling chromium hdasch at gmail dot com
` (3 preceding siblings ...)
2009-11-30 1:04 ` [Bug c++/41183] " pinskia at gcc dot gnu dot org
@ 2009-11-30 7:57 ` hjl dot tools at gmail dot com
2009-12-03 15:59 ` jakub at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-11-30 7:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from hjl dot tools at gmail dot com 2009-11-30 07:56 -------
It is caused by revision 139945:
http://gcc.gnu.org/ml/gcc-cvs/2008-09/msg00103.html
and fixed by revision 147852:
http://gcc.gnu.org/ml/gcc-cvs/2009-05/msg00829.html
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu dot
| |org
Component|c++ |middle-end
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41183
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/41183] [4.4 Regression] ICE compiling chromium
2009-08-28 16:26 [Bug c++/41183] New: internal compiler error: Segmentation fault compiling chromium hdasch at gmail dot com
` (4 preceding siblings ...)
2009-11-30 7:57 ` [Bug middle-end/41183] " hjl dot tools at gmail dot com
@ 2009-12-03 15:59 ` jakub at gcc dot gnu dot org
2009-12-03 16:32 ` jakub at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-12-03 15:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jakub at gcc dot gnu dot org 2009-12-03 15:59 -------
This happens during mangling something from within the middle-end, and at that
point cfun is a T.0 clone, which has cfun->language = NULL.
Not sure what's the best solution, whether to change current_class_ptr etc.
macros from cfun ? cp_function_chain->* : NULL to (cfun && cp_function_chain) ?
cp_function_chain->* : NULL, allocate a dummy cfun->language somewhere when we
are going to call FE functions that might need it, something else?
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41183
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/41183] [4.4 Regression] ICE compiling chromium
2009-08-28 16:26 [Bug c++/41183] New: internal compiler error: Segmentation fault compiling chromium hdasch at gmail dot com
` (5 preceding siblings ...)
2009-12-03 15:59 ` jakub at gcc dot gnu dot org
@ 2009-12-03 16:32 ` jakub at gcc dot gnu dot org
2009-12-15 10:25 ` [Bug c++/41183] " jakub at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-12-03 16:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jakub at gcc dot gnu dot org 2009-12-03 16:31 -------
Created an attachment (id=19217)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19217&action=view)
gcc44-pr41183.patch
Very ugly hack that fixes this. Checking for NULL cp_function_chain might be
even uglier though.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41183
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/41183] [4.4 Regression] ICE compiling chromium
2009-08-28 16:26 [Bug c++/41183] New: internal compiler error: Segmentation fault compiling chromium hdasch at gmail dot com
` (6 preceding siblings ...)
2009-12-03 16:32 ` jakub at gcc dot gnu dot org
@ 2009-12-15 10:25 ` jakub at gcc dot gnu dot org
2009-12-15 15:13 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-12-15 10:25 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2009-08-28 17:48:16 |2009-12-15 10:25:17
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41183
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/41183] [4.4 Regression] ICE compiling chromium
2009-08-28 16:26 [Bug c++/41183] New: internal compiler error: Segmentation fault compiling chromium hdasch at gmail dot com
` (7 preceding siblings ...)
2009-12-15 10:25 ` [Bug c++/41183] " jakub at gcc dot gnu dot org
@ 2009-12-15 15:13 ` jakub at gcc dot gnu dot org
2009-12-15 15:15 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-12-15 15:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from jakub at gcc dot gnu dot org 2009-12-15 15:13 -------
Subject: Bug 41183
Author: jakub
Date: Tue Dec 15 15:13:08 2009
New Revision: 155254
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155254
Log:
PR c++/41183
* cp-tree.h (current_class_ptr): Give NULL even when cfun
has NULL cfun->language.
* g++.dg/torture/pr41183.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/torture/pr41183.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41183
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/41183] [4.4 Regression] ICE compiling chromium
2009-08-28 16:26 [Bug c++/41183] New: internal compiler error: Segmentation fault compiling chromium hdasch at gmail dot com
` (8 preceding siblings ...)
2009-12-15 15:13 ` jakub at gcc dot gnu dot org
@ 2009-12-15 15:15 ` jakub at gcc dot gnu dot org
2009-12-22 23:47 ` reichelt at gcc dot gnu dot org
2010-03-25 16:36 ` jiez at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-12-15 15:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from jakub at gcc dot gnu dot org 2009-12-15 15:15 -------
Subject: Bug 41183
Author: jakub
Date: Tue Dec 15 15:14:59 2009
New Revision: 155255
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155255
Log:
PR c++/41183
* cp-tree.h (current_class_ptr): Give NULL even when cfun
has NULL cfun->language.
* g++.dg/torture/pr41183.C: New test.
Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/torture/pr41183.C
Modified:
branches/gcc-4_4-branch/gcc/cp/ChangeLog
branches/gcc-4_4-branch/gcc/cp/cp-tree.h
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41183
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/41183] [4.4 Regression] ICE compiling chromium
2009-08-28 16:26 [Bug c++/41183] New: internal compiler error: Segmentation fault compiling chromium hdasch at gmail dot com
` (9 preceding siblings ...)
2009-12-15 15:15 ` jakub at gcc dot gnu dot org
@ 2009-12-22 23:47 ` reichelt at gcc dot gnu dot org
2010-03-25 16:36 ` jiez at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-12-22 23:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from reichelt at gcc dot gnu dot org 2009-12-22 23:46 -------
Fixed.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41183
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/41183] [4.4 Regression] ICE compiling chromium
2009-08-28 16:26 [Bug c++/41183] New: internal compiler error: Segmentation fault compiling chromium hdasch at gmail dot com
` (10 preceding siblings ...)
2009-12-22 23:47 ` reichelt at gcc dot gnu dot org
@ 2010-03-25 16:36 ` jiez at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: jiez at gcc dot gnu dot org @ 2010-03-25 16:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from jiez at gcc dot gnu dot org 2010-03-25 16:35 -------
Created an attachment (id=20198)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20198&action=view)
Another patch
This is another patch by copying cfun->language to clone.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41183
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2010-03-25 16:36 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-28 16:26 [Bug c++/41183] New: internal compiler error: Segmentation fault compiling chromium hdasch at gmail dot com
2009-08-28 16:32 ` [Bug c++/41183] " hdasch at gmail dot com
2009-08-28 17:48 ` ubizjak at gmail dot com
2009-11-30 0:38 ` [Bug middle-end/41183] [4.4 Regression] ICE " reichelt at gcc dot gnu dot org
2009-11-30 1:04 ` [Bug c++/41183] " pinskia at gcc dot gnu dot org
2009-11-30 7:57 ` [Bug middle-end/41183] " hjl dot tools at gmail dot com
2009-12-03 15:59 ` jakub at gcc dot gnu dot org
2009-12-03 16:32 ` jakub at gcc dot gnu dot org
2009-12-15 10:25 ` [Bug c++/41183] " jakub at gcc dot gnu dot org
2009-12-15 15:13 ` jakub at gcc dot gnu dot org
2009-12-15 15:15 ` jakub at gcc dot gnu dot org
2009-12-22 23:47 ` reichelt at gcc dot gnu dot org
2010-03-25 16:36 ` jiez at gcc dot gnu 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).