public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/51573] New: [4.7 Regression] ICE (segfault) in lto_varpool_encoder_encode_initializer_p
@ 2011-12-15 18:09 markus at trippelsdorf dot de
  2011-12-15 18:57 ` [Bug lto/51573] " markus at trippelsdorf dot de
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: markus at trippelsdorf dot de @ 2011-12-15 18:09 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51573
           Summary: [4.7 Regression] ICE (segfault) in
                    lto_varpool_encoder_encode_initializer_p
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: markus@trippelsdorf.de


ICE happened during a Firefox build.

 % cat test.ii
extern "C" struct JSObject;

template < class T > class HeapPtr
{
};

struct PendingProxyOperation {
    JSObject *object;
};
struct ThreadData {
    PendingProxyOperation *pendingProxyOperation;
};
struct JSThread {
    ThreadData data;
};
struct JSContext {
    JSThread *thread_;
};
class TypeConstraint
{
    virtual void newObjectState () {
    }
};
class TypeSet
{
    TypeConstraint *constraintList;
};
struct Property {
    TypeSet types;
};
struct Cell {
    Property **propertySet;
};
struct JSObject:Cell {
};
bool
IndexToId ()
{
    return 0;
    bool IndexToIdSlow (JSContext);
}

 % c++ -flto test.ii
test.ii: In function ‘IndexToId()’:
test.ii:41:1: internal compiler error: Segmentation fault
Please submit a full bug report

Program received signal SIGSEGV, Segmentation fault.
[Switching to process 16149]
0x0000000000b89c40 in
lto_varpool_encoder_encode_initializer_p(lto_varpool_encoder_d*, varpool_node*)
()
(gdb) bt
#0  0x0000000000b89c40 in
lto_varpool_encoder_encode_initializer_p(lto_varpool_encoder_d*, varpool_node*)
()
#1  0x0000000000957790 in lto_output_tree(output_block*, tree_node*, bool) ()
#2  0x0000000000a1beab in streamer_write_tree_body(output_block*, tree_node*,
bool) ()
#3  0x0000000000957506 in lto_output_tree(output_block*, tree_node*, bool) ()
...


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

end of thread, other threads:[~2011-12-19 16:01 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-15 18:09 [Bug lto/51573] New: [4.7 Regression] ICE (segfault) in lto_varpool_encoder_encode_initializer_p markus at trippelsdorf dot de
2011-12-15 18:57 ` [Bug lto/51573] " markus at trippelsdorf dot de
2011-12-16  8:36 ` rguenth at gcc dot gnu.org
2011-12-16  9:41 ` rguenth at gcc dot gnu.org
2011-12-16 10:24 ` rguenth at gcc dot gnu.org
2011-12-16 10:49 ` rguenth at gcc dot gnu.org
2011-12-16 12:17 ` rguenth at gcc dot gnu.org
2011-12-16 13:12 ` rguenth at gcc dot gnu.org
2011-12-16 13:23 ` rguenth at gcc dot gnu.org
2011-12-16 13:36 ` rguenth at gcc dot gnu.org
2011-12-16 15:45 ` rguenth at gcc dot gnu.org
2011-12-19 16:01 ` rguenth at gcc dot gnu.org
2011-12-19 16:01 ` rguenth 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).