public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/57358] New: segmentation fault with attribute(optimize(O0))
@ 2013-05-21 15:17 nbkolchin at gmail dot com
  2013-06-04 14:16 ` [Bug tree-optimization/57358] " nbkolchin at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: nbkolchin at gmail dot com @ 2013-05-21 15:17 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 57358
           Summary: segmentation fault with attribute(optimize(O0))
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nbkolchin at gmail dot com

Created attachment 30157
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30157&action=edit
backtrace

The following code crashes GCC (gcc-4.8.0 -O2):

typedef void (*done)(void* arg);
struct t { done func; void* arg; };
static void test_func() __attribute__((optimize("O0")));                       
  static void test_func(struct t* a)
{
  a->func(a->arg);
}

Program received signal SIGSEGV, Segmentation fault.
walk_aliased_vdefs_1 (ref=ref@entry=0x7fffffffda70, vdef=0x0,
    walker=0x6f5d90 <mark_modified(ao_ref*, tree, void*)>, data=0x7fffffffda5f,
    visited=0x7fffffffda28, cnt=0)
    at /mnt/work/oktet/transas/sources/4.8/gcc/gcc/tree-ssa-alias.c:2196
2196          gimple def_stmt = SSA_NAME_DEF_STMT (vdef);

Backtrace from gdb attached.

Reproducable with custom GCC build and gentoo 4.8. No error in 4.7.


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

end of thread, other threads:[~2013-06-24 12:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-21 15:17 [Bug tree-optimization/57358] New: segmentation fault with attribute(optimize(O0)) nbkolchin at gmail dot com
2013-06-04 14:16 ` [Bug tree-optimization/57358] " nbkolchin at gmail dot com
2013-06-04 15:14 ` nbkolchin at gmail dot com
2013-06-11 12:00 ` jamborm at gcc dot gnu.org
2013-06-14 10:00 ` jamborm at gcc dot gnu.org
2013-06-24 12:52 ` jamborm at gcc dot gnu.org
2013-06-24 12:59 ` jamborm 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).