public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/53571] [4.6/4.7/4.8 regression] ICE with -O{2,3}  -floop-parallelize-all in cloog_domain_stride()
Date: Tue, 05 Jun 2012 21:03:00 -0000	[thread overview]
Message-ID: <bug-53571-4-6OdGYVEWSq@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-53571-4@http.gcc.gnu.org/bugzilla/>

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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-06-05 21:03:03 UTC ---
(In reply to comment #1)
> Please specify the cloog/ppl versions you are using.  What target is this on?

I can reproduce it with the current GCC trunk on openSUSE Factory (x86-64)
[package libcloog0-debuginfo-0.15.10+ppl-9.8].

Program received signal SIGSEGV, Segmentation fault.

#0  0x00002aaaaace1656 in cloog_domain_stride (domain=<optimized out>,
strided_level=<optimized out>, 
    nb_par=<optimized out>, stride=0x7fffffffd5e0, offset=0x7fffffffd5d0) at
source/ppl/domain.c:2813
#1  0x00002aaaaacd7b21 in cloog_loop_stride_1 (nb_par=2, level=1,
loop=0x15a8c20) at source/loop.c:1077
#2  cloog_loop_generate_general (loop=0x0, level=1, scalar=1,
scaldims=0x158b000, nb_scattdims=3, 
    nb_par=<optimized out>, options=0x1596780) at source/loop.c:1371
#3  0x00002aaaaacd71f3 in cloog_loop_generate_scalar (options=0x1596780,
nb_par=2, nb_scattdims=3, 
    scaldims=0x158b000, scalar=0, level=1, loop=0x159c930) at
source/loop.c:1489
#4  cloog_loop_generate (loop=<optimized out>, context=0x0, level=1, scalar=0,
scaldims=0x158b000, 
    nb_scattdims=3, nb_par=2, options=0x1596780) at source/loop.c:1573
#5  0x00002aaaaace834b in cloog_program_generate (program=0x1595d00,
options=0x1596780) at source/program.c:687
#6  0x0000000000cd34b5 in scop_to_clast (scop=0x158e890)
    at /home/tob/projects/gcc-git/gcc/gcc/graphite-clast-to-gimple.c:1551
#7  0x0000000000cd36d5 in gloog (scop=0x158e890, bb_pbb_mapping=0x158e4f0)
    at /home/tob/projects/gcc-git/gcc/gcc/graphite-clast-to-gimple.c:1632
#8  0x0000000000cd078e in graphite_transform_loops () at
/home/tob/projects/gcc-git/gcc/gcc/graphite.c:276
#9  0x00000000009e2c87 in graphite_transforms () at
/home/tob/projects/gcc-git/gcc/gcc/tree-ssa-loop.c:254

The failing line is:
      cloog_vector_gcd (U->p[0], U->NbColumns, stride);
The problem is that U->p == NULL.

And U is initialized via cloog_solve_diophantine,
  cloog_matrix_hermite (temp, &hermi, &unimod);
  rank = cloog_dio_get_first_diagonal_zero (hermi);
  nbc = temp->NbColumns;
...
  *u = cloog_dio_init_U (unimodinv, hermi->NbColumns, rank);

In the latter, one has:
  if (rank == n)
    return cloog_matrix_alloc (0, 0);

And according to gdb rank==2 (the other arguments are optimized out). Well, and
for a 0 argument, cloog_matrix_alloc sets u->p to NULL.


  parent reply	other threads:[~2012-06-05 21:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-04  8:01 [Bug tree-optimization/53571] New: " xarthisius.kk at gmail dot com
2012-06-04 10:08 ` [Bug tree-optimization/53571] " rguenth at gcc dot gnu.org
2012-06-04 10:11 ` xarthisius.kk at gmail dot com
2012-06-04 18:23 ` xarthisius.kk at gmail dot com
2012-06-05 21:03 ` burnus at gcc dot gnu.org [this message]
2012-12-03 15:31 ` [Bug tree-optimization/53571] [4.6/4.7 " rguenth at gcc dot gnu.org
2013-04-12 15:18 ` [Bug tree-optimization/53571] [4.7 " jakub at gcc dot gnu.org
2014-06-12 13:11 ` rguenth at gcc dot gnu.org

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=bug-53571-4-6OdGYVEWSq@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /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).