public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ryan Mansfield <rmansfield@qnx.com>
To: Richard Guenther <richard.guenther@gmail.com>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: Fix crash in vect_is_slp_reduction
Date: Fri, 20 May 2011 19:22:00 -0000	[thread overview]
Message-ID: <4DD69BDA.3030701@qnx.com> (raw)
In-Reply-To: <BANLkTi=z6dpkz7ZmvJ+QZnv_hnW1W4+Vng@mail.gmail.com>

On 11-05-20 10:17 AM, Richard Guenther wrote:
> On Fri, May 20, 2011 at 4:06 PM, Ryan Mansfield<rmansfield@qnx.com>  wrote:
>> There is a crash in vect_is_slp_reduction where use_stmt doesn't get
>> initialized in the FOR_EACH_IMM_USE_FAST loop.
>>
>> 1718          FOR_EACH_IMM_USE_FAST (use_p, imm_iter, lhs)
>> (gdb) call debug_tree(lhs)
>>   <ssa_name 0x7ffff6e3a5a0
>>     type<integer_type 0x7ffff7f8c7e0 int32_t sizes-gimplified public SI
>>         size<integer_cst 0x7ffff7ec47e0 constant 32>
>>         unit size<integer_cst 0x7ffff7ec4580 constant 4>
>>         align 32 symtab 0 alias set -1 canonical type 0x7ffff7ecb498
>> precision 32 min<integer_cst 0x7ffff7ec4780 -2147483648>  max<integer_cst
>> 0x7ffff7ec47a0 2147483647>  context<translation_unit_decl 0x7ffff7f98508
>> D.1314>
>>         pointer_to_this<pointer_type 0x7ffff7f9f930>>
>>     var<var_decl 0x7ffff6e1ce60 g_29_lsm.18>def_stmt g_29_lsm.18_137 = PHI
>> <g_29_lsm.18_87(15), D.2113_96(18)>
>>
>>     version 137>
>> (gdb) n
>> 1742          if (found)
>> (gdb)
>> 1746          if (gimple_code (use_stmt) == GIMPLE_PHI)
>> (gdb)
>>
>> Program received signal SIGSEGV, Segmentation fault.
>> 0x0000000000980f22 in gimple_code (g=0x0) at ../../gcc/gimple.h:1098
>> 1098      return g->gsbase.code;
>>
>> Is the following sufficient?
>
> No, we shouldn't arrive with a NULL use_stmt here.

OK, thanks. I've filed PR49087 with a testcase.

Regards,

Ryan Mansfield

      parent reply	other threads:[~2011-05-20 16:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-20 14:54 Ryan Mansfield
2011-05-20 15:11 ` Richard Guenther
2011-05-20 16:51   ` Ira Rosen
2011-05-22 15:39     ` [patch] Fix PR 49087 (was Re: Fix crash in vect_is_slp_reduction) Ira Rosen
2011-05-20 19:22   ` Ryan Mansfield [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DD69BDA.3030701@qnx.com \
    --to=rmansfield@qnx.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=richard.guenther@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).