public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/51132] [4.7 Regression] FAIL:  libgomp.graphite/force-parallel-[678].c
Date: Sun, 04 Dec 2011 14:25:00 -0000	[thread overview]
Message-ID: <bug-51132-4-unCH4FEacI@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-51132-4@http.gcc.gnu.org/bugzilla/>

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

Uros Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-12-04
   Target Milestone|---                         |4.7.0
     Ever Confirmed|0                           |1

--- Comment #1 from Uros Bizjak <ubizjak at gmail dot com> 2011-12-04 14:25:31 UTC ---
Confirmed:

force-parallel-1.c:

Program received signal SIGSEGV, Segmentation fault.
0x00000000004006d0 in parloop (N=10000000) at force-parallel-1.c:3
3       void parloop (int N)
Missing separate debuginfos, use: debuginfo-install glibc-2.14.90-19.x86_64
libgcc-4.6.2-1.fc16.x86_64 libgomp-4.6.2-1.fc16.x86_64
(gdb) li
1       void abort (void);
2
3       void parloop (int N)
4       {
5         int i;
6         int x[10000000];
7
8         for (i = 0; i < N; i++)
9           x[i] = i + 3;
10
(gdb) disass
Dump of assembler code for function parloop:
   0x00000000004006a0 <+0>:     push   %r12
   0x00000000004006a2 <+2>:     push   %rbp
   0x00000000004006a3 <+3>:     mov    %edi,%ebp
   0x00000000004006a5 <+5>:     push   %rbx
   0x00000000004006a6 <+6>:     sub    $0x2625a10,%rsp
   0x00000000004006ad <+13>:    test   %edi,%edi
   0x00000000004006af <+15>:    jle    0x40071c <parloop+124>
   0x00000000004006b1 <+17>:    lea    -0x1(%rdi),%r12d
   0x00000000004006b5 <+21>:    cmp    $0x18f,%r12d
   0x00000000004006bc <+28>:    jbe    0x400728 <parloop+136>
   0x00000000004006be <+30>:    lea    0x10(%rsp),%rbx
   0x00000000004006c3 <+35>:    mov    $0x4,%edx
   0x00000000004006c8 <+40>:    mov    %rsp,%rsi
   0x00000000004006cb <+43>:    mov    $0x400760,%edi
=> 0x00000000004006d0 <+48>:    mov    %r12d,0x8(%rsp)
   0x00000000004006d5 <+53>:    add    $0x2,%ebp
   0x00000000004006d8 <+56>:    mov    %rbx,(%rsp)
   0x00000000004006dc <+60>:    callq  0x400548 <GOMP_parallel_start@plt>

force-parallel-7.c:

Program received signal SIGSEGV, Segmentation fault.
0x0000000000400671 in foo () at force-parallel-7.c:3
3       int foo(void)
Missing separate debuginfos, use: debuginfo-install glibc-2.14.90-19.x86_64
libgcc-4.6.2-1.fc16.x86_64 libgomp-4.6.2-1.fc16.x86_64
(gdb) li
1       #define N 500
2
3       int foo(void)
4       {
5         int i, j, k;
6         int A[N+5][N+5][N+5];
7
8         /* Loop i: carried no dependency.  */
9         for (i = 0; i < N; i++)
10          for (j = 0; j < N; j++)
(gdb) disass
Dump of assembler code for function foo:
   0x0000000000400650 <+0>:     push   %r14
   0x0000000000400652 <+2>:     mov    $0x4,%edx
   0x0000000000400657 <+7>:     mov    $0x400780,%edi
   0x000000000040065c <+12>:    push   %r13
   0x000000000040065e <+14>:    push   %r12
   0x0000000000400660 <+16>:    push   %rbp
   0x0000000000400661 <+17>:    push   %rbx
   0x0000000000400662 <+18>:    sub    $0x1eb492d0,%rsp
   0x0000000000400669 <+25>:    lea    0x20(%rsp),%r13
   0x000000000040066e <+30>:    mov    %rsp,%rsi
=> 0x0000000000400671 <+33>:    mov    %r13,(%rsp)
   0x0000000000400675 <+37>:    callq  0x400500 <GOMP_parallel_start@plt>

force-parallel-8.c:

Program received signal SIGSEGV, Segmentation fault.
0x000000000040068d in foo () at force-parallel-8.c:3
3       int foo(void)
Missing separate debuginfos, use: debuginfo-install glibc-2.14.90-19.x86_64
libgcc-4.6.2-1.fc16.x86_64 libgomp-4.6.2-1.fc16.x86_64
(gdb) li
1       #define N 1500
2
3       int foo(void)
4       {
5         int i, j;
6         int x[N][N], y[N];
7
8         for (i = 0; i < N; i++)
9           {
10            y[i] = i;
(gdb) disass
Dump of assembler code for function foo:
   0x0000000000400650 <+0>:     push   %r14
   0x0000000000400652 <+2>:     push   %r13
   0x0000000000400654 <+4>:     push   %r12
   0x0000000000400656 <+6>:     mov    $0xa,%r12d
   0x000000000040065c <+12>:    push   %rbp
   0x000000000040065d <+13>:    push   %rbx
   0x000000000040065e <+14>:    xor    %ebx,%ebx
   0x0000000000400660 <+16>:    sub    $0x896be0,%rsp
   0x0000000000400667 <+23>:    lea    0x17a0(%rsp),%r13
   0x000000000040066f <+31>:    lea    0x30(%rsp),%r14
   0x0000000000400674 <+36>:    lea    0x7d0(%r13),%rbp
   0x000000000040067b <+43>:    nopl   0x0(%rax,%rax,1)
   0x0000000000400680 <+48>:    mov    $0x4,%edx
   0x0000000000400685 <+53>:    mov    %rsp,%rsi
   0x0000000000400688 <+56>:    mov    $0x400740,%edi
=> 0x000000000040068d <+61>:    mov    %ebx,(%r14,%rbx,4)
   0x0000000000400691 <+65>:    mov    %bx,(%rsp)
   0x0000000000400695 <+69>:    mov    %r13,0x8(%rsp)
   0x000000000040069a <+74>:    callq  0x400500 <GOMP_parallel_start@plt>

force-parallel-6.c:

==28261== Memcheck, a memory error detector
==28261== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==28261== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==28261== Command: ./a.out
==28261== 
==28261== Warning: client switching stacks?  SP change: 0x7fefffc98 -->
0x7fe85dab0
==28261==          to suppress, use: --max-stackframe=8004072 or greater
==28261== Invalid write of size 2
==28261==    at 0x400671: foo (force-parallel-6.c:4)
==28261==    by 0x400558: main (force-parallel-6.c:28)
==28261==  Address 0x7fe85dace is on thread 1's stack
==28261== 
==28261== Invalid write of size 8
==28261==    at 0x40067F: foo (force-parallel-6.c:14)
==28261==    by 0x400558: main (force-parallel-6.c:28)
==28261==  Address 0x7fe85dab0 is on thread 1's stack
==28261== 
==28261== Invalid write of size 8
==28261==    at 0x40068A: foo (force-parallel-6.c:17)
==28261==    by 0x400558: main (force-parallel-6.c:28)
==28261==  Address 0x7fe85dab8 is on thread 1's stack
==28261== 
==28261== Invalid write of size 8
==28261==    at 0x400696: foo (force-parallel-6.c:17)
==28261==    by 0x400558: main (force-parallel-6.c:28)
==28261==  Address 0x7fe85dac0 is on thread 1's stack
==28261== 
==28261== Invalid read of size 8
==28261==    at 0x4006B0: foo (force-parallel-6.c:14)
==28261==    by 0x400558: main (force-parallel-6.c:28)
==28261==  Address 0x7fe85dab0 is on thread 1's stack
==28261== 
==28261== Invalid write of size 2
==28261==    at 0x4006C3: foo (force-parallel-6.c:3)
==28261==    by 0x400558: main (force-parallel-6.c:28)
==28261==  Address 0x7fe85dad0 is on thread 1's stack
==28261== 
==28261== Invalid write of size 8
==28261==    at 0x4006C9: foo (force-parallel-6.c:3)
==28261==    by 0x400558: main (force-parallel-6.c:28)
==28261==  Address 0x7fe85dae0 is on thread 1's stack
==28261== 
==28261== Invalid write of size 8
==28261==    at 0x4006CE: foo (force-parallel-6.c:3)
==28261==    by 0x400558: main (force-parallel-6.c:28)
==28261==  Address 0x7fe85dad8 is on thread 1's stack
==28261== 
==28261== Invalid read of size 4
==28261==    at 0x4006D7: foo (force-parallel-6.c:14)
==28261==    by 0x400558: main (force-parallel-6.c:28)
==28261==  Address 0x7fe860200 is on thread 1's stack
==28261== 
==28261== Invalid write of size 4
==28261==    at 0x4006DB: foo (force-parallel-6.c:14)
==28261==    by 0x400558: main (force-parallel-6.c:28)
==28261==  Address 0x7fe85daf4 is on thread 1's stack
==28261== 
==28261== Invalid write of size 4
==28261==    at 0x4006DF: foo (force-parallel-6.c:14)
==28261==    by 0x400558: main (force-parallel-6.c:28)
==28261==  Address 0x7fe85dae8 is on thread 1's stack
==28261== 
==28261== Invalid write of size 8
==28261==    at 0x4006E8: foo (force-parallel-6.c:3)
==28261==  Address 0x7fe85daa8 is on thread 1's stack
==28261== 
==28261== Thread 3:
==28261== Invalid read of size 4
==28261==    at 0x400758: foo._loopfn.0 (force-parallel-6.c:24)
==28261==    by 0x324C808479: ??? (in /usr/lib64/libgomp.so.1.0.0)
==28261==    by 0x322FE07D8F: start_thread (in /lib64/libpthread-2.14.90.so)
==28261==    by 0x322F6EED0C: clone (in /lib64/libc-2.14.90.so)
==28261==  Address 0x7fe85dae8 is on thread 1's stack
==28261== 
==28261== Invalid read of size 8
==28261==    at 0x40075B: foo._loopfn.0 (force-parallel-6.c:24)
==28261==    by 0x324C808479: ??? (in /usr/lib64/libgomp.so.1.0.0)
==28261==    by 0x322FE07D8F: start_thread (in /lib64/libpthread-2.14.90.so)
==28261==    by 0x322F6EED0C: clone (in /lib64/libc-2.14.90.so)
==28261==  Address 0x7fe85dae0 is on thread 1's stack
==28261== 
==28261== Invalid read of size 8
==28261==    at 0x40075F: foo._loopfn.0 (force-parallel-6.c:24)
==28261==    by 0x324C808479: ??? (in /usr/lib64/libgomp.so.1.0.0)
==28261==    by 0x322FE07D8F: start_thread (in /lib64/libpthread-2.14.90.so)
==28261==    by 0x322F6EED0C: clone (in /lib64/libc-2.14.90.so)
==28261==  Address 0x7fe85dad8 is on thread 1's stack
==28261== 
==28261== Invalid read of size 2
==28261==    at 0x400763: foo._loopfn.0 (force-parallel-6.c:24)
==28261==    by 0x324C808479: ??? (in /usr/lib64/libgomp.so.1.0.0)
==28261==    by 0x322FE07D8F: start_thread (in /lib64/libpthread-2.14.90.so)
==28261==    by 0x322F6EED0C: clone (in /lib64/libc-2.14.90.so)
==28261==  Address 0x7fe85dad0 is on thread 1's stack
==28261== 
==28261== Invalid read of size 4
==28261==    at 0x4007D2: foo._loopfn.0 (force-parallel-6.c:17)
==28261==    by 0x324C808479: ??? (in /usr/lib64/libgomp.so.1.0.0)
==28261==    by 0x322FE07D8F: start_thread (in /lib64/libpthread-2.14.90.so)
==28261==    by 0x322F6EED0C: clone (in /lib64/libc-2.14.90.so)
==28261==  Address 0x7fec3071c is on thread 1's stack
==28261== 
==28261== Invalid write of size 4
==28261==    at 0x4007DB: foo._loopfn.0 (force-parallel-6.c:17)
==28261==    by 0x324C808479: ??? (in /usr/lib64/libgomp.so.1.0.0)
==28261==    by 0x322FE07D8F: start_thread (in /lib64/libpthread-2.14.90.so)
==28261==    by 0x322F6EED0C: clone (in /lib64/libc-2.14.90.so)
==28261==  Address 0x7fe860dbc is on thread 1's stack
==28261== 
==28261== Thread 1:
==28261== Invalid read of size 8
==28261==    at 0x324C808999: ??? (in /usr/lib64/libgomp.so.1.0.0)
==28261==  Address 0x7fe85daa8 is on thread 1's stack
==28261== 
==28261== Invalid read of size 4
==28261==    at 0x400758: foo._loopfn.0 (force-parallel-6.c:24)
==28261==    by 0x4006F6: foo (force-parallel-6.c:3)
==28261==    by 0x400558: main (force-parallel-6.c:28)
==28261==  Address 0x7fe85dae8 is on thread 1's stack
==28261== 
==28261== Invalid read of size 8
==28261==    at 0x40075B: foo._loopfn.0 (force-parallel-6.c:24)
==28261==    by 0x4006F6: foo (force-parallel-6.c:3)
==28261==    by 0x400558: main (force-parallel-6.c:28)
==28261==  Address 0x7fe85dae0 is on thread 1's stack
==28261== 
==28261== Invalid read of size 8
==28261==    at 0x40075F: foo._loopfn.0 (force-parallel-6.c:24)
==28261==    by 0x4006F6: foo (force-parallel-6.c:3)
==28261==    by 0x400558: main (force-parallel-6.c:28)
==28261==  Address 0x7fe85dad8 is on thread 1's stack
==28261== 
==28261== Invalid read of size 2
==28261==    at 0x400763: foo._loopfn.0 (force-parallel-6.c:24)
==28261==    by 0x4006F6: foo (force-parallel-6.c:3)
==28261==    by 0x400558: main (force-parallel-6.c:28)
==28261==  Address 0x7fe85dad0 is on thread 1's stack
==28261== 
==28261== Invalid read of size 4
==28261==    at 0x4007D2: foo._loopfn.0 (force-parallel-6.c:17)
==28261==    by 0x4006F6: foo (force-parallel-6.c:3)
==28261==    by 0x400558: main (force-parallel-6.c:28)
==28261==  Address 0x7fec30334 is on thread 1's stack
==28261== 
==28261== Invalid write of size 4
==28261==    at 0x4007DB: foo._loopfn.0 (force-parallel-6.c:17)
==28261==    by 0x4006F6: foo (force-parallel-6.c:3)
==28261==    by 0x400558: main (force-parallel-6.c:28)
==28261==  Address 0x7fe8609d4 is on thread 1's stack
==28261== 
==28261== Invalid read of size 8
==28261==    at 0x4006FC: foo (force-parallel-6.c:17)
==28261==    by 0x400558: main (force-parallel-6.c:28)
==28261==  Address 0x7fe85dac0 is on thread 1's stack
==28261== 
==28261== Invalid read of size 4
==28261==    at 0x400704: foo (force-parallel-6.c:17)
==28261==    by 0x400558: main (force-parallel-6.c:28)
==28261==  Address 0x7fec30b00 is on thread 1's stack
==28261== 
==28261== Invalid read of size 8
==28261==    at 0x400708: foo (force-parallel-6.c:17)
==28261==    by 0x400558: main (force-parallel-6.c:28)
==28261==  Address 0x7fe85dab8 is on thread 1's stack
==28261== 
==28261== Invalid write of size 4
==28261==    at 0x40070D: foo (force-parallel-6.c:17)
==28261==    by 0x400558: main (force-parallel-6.c:28)
==28261==  Address 0x7fe8611a0 is on thread 1's stack
==28261== 
==28261== Invalid read of size 2
==28261==    at 0x400721: foo (force-parallel-6.c:17)
==28261==    by 0x400558: main (force-parallel-6.c:28)
==28261==  Address 0x7fe85dace is on thread 1's stack
==28261== 

Looping here with suppressed errors.

Please note that force-parallel-[178] all involve %rsp.


  reply	other threads:[~2011-12-04 14:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-14 21:31 [Bug libgomp/51132] New: " hjl.tools at gmail dot com
2011-12-04 14:25 ` ubizjak at gmail dot com [this message]
2011-12-04 14:40 ` [Bug libgomp/51132] " jakub at gcc dot gnu.org
2011-12-06 14:00 ` rguenth at gcc dot gnu.org
2011-12-06 14:33 ` jakub at gcc dot gnu.org
2011-12-06 14:38 ` jakub at gcc dot gnu.org
2015-10-09 15:36 ` spop 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-51132-4-unCH4FEacI@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).