public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/44303]  New: [graphite] Segmentation fault within CLooG
@ 2010-05-28  7:38 nbenoit at tuxfamily dot org
  2010-05-28 14:04 ` [Bug tree-optimization/44303] " hjl dot tools at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: nbenoit at tuxfamily dot org @ 2010-05-28  7:38 UTC (permalink / raw)
  To: gcc-bugs

The following code segfaults GCC 4.5 (and GCC trunk 159536) when compiled with
:

$ gcc -O1 -floop-parallelize-all test-17.c

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7bce389 in cloog_domain_stride (domain=<value optimized out>,
strided_level=<value optimized out>, nb_par=<value optimized out>, 
    stride=<value optimized out>, offset=<value optimized out>) at
source/ppl/domain.c:2813
2813          cloog_vector_gcd (U->p[0], U->NbColumns, stride);

GCC built with : cloog-ppl-0.15.9 ; gmp-4.3.2 ; mpc-0.8.1 ; mpfr-2.4.2 ;
ppl-0.10.2

The crash seems to be very specific to this value of N.


#define N 4
int A[N][N][N];

void
kernel ( void )
{
  unsigned int i, j, k;
  for ( i=0; i<N; ++i )
    {
      for ( j=0; j<N; ++j )
        {
          for ( k=0; k<N; ++k )
            {
              if ( i == j )
                {
                  if ( (k+1) == j )
                    A[i][j][k] = 1;
                  else
                    A[i][j][k] = k;
                }
              else
                {
                  if ( (i+1) == k )
                    A[i][j][k] = j;

                  A[i][j][k] += 3;
                }
            }
        }
    }
}


-- 
           Summary: [graphite] Segmentation fault within CLooG
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: nbenoit at tuxfamily dot org
 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=44303


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

end of thread, other threads:[~2013-07-13 19:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-44303-4@http.gcc.gnu.org/bugzilla/>
2011-01-28  0:12 ` [Bug tree-optimization/44303] [graphite] Segmentation fault within CLooG spop at gcc dot gnu.org
2011-07-26 20:19 ` spop at gcc dot gnu.org
2013-07-13 19:17 ` spop at gcc dot gnu.org
2010-05-28  7:38 [Bug tree-optimization/44303] New: " nbenoit at tuxfamily dot org
2010-05-28 14:04 ` [Bug tree-optimization/44303] " hjl dot tools at gmail dot com
2010-05-28 14:05 ` hjl dot tools at gmail dot com
2010-05-28 14:46 ` spop 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).