From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25697 invoked by alias); 29 Mar 2008 17:42:51 -0000 Received: (qmail 25684 invoked by uid 22791); 29 Mar 2008 17:42:50 -0000 X-Spam-Check-By: sourceware.org Received: from mail.gmx.net (HELO mail.gmx.net) (213.165.64.20) by sourceware.org (qpsmtpd/0.31) with SMTP; Sat, 29 Mar 2008 17:42:30 +0000 Received: (qmail invoked by alias); 29 Mar 2008 17:42:27 -0000 Received: from p5087DA22.dip.t-dialin.net (EHLO burns.bruehl.pontohonk.de) [80.135.218.34] by mail.gmx.net (mp046) with SMTP; 29 Mar 2008 18:42:27 +0100 X-Authenticated: #1174187 From: Christoph Bartoschek To: gcc-help@gcc.gnu.org Subject: Re: Openmp sections Date: Sat, 29 Mar 2008 17:42:00 -0000 User-Agent: KMail/1.9.9 References: <200803291829.20534.bartoschek@gmx.de> In-Reply-To: <200803291829.20534.bartoschek@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803291844.40501.bartoschek@gmx.de> X-Y-GMX-Trusted: 0 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-03/txt/msg00301.txt.bz2 I have changed the code to #pragma omp parallel sections But now I get an SIGILL. Here is the console log: -bash-3.00$ LANG=C gdb ./a.out GNU gdb 6.6 Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu"... Using host libthread_db library "/lib64/tls/libthread_db.so.1". (gdb) run Starting program: /lfs/user/bartosch/cg/a.out [Thread debugging using libthread_db enabled] [New Thread 182898459584 (LWP 16540)] 1 8 [New Thread 1084229984 (LWP 16543)] [New Thread 1094719840 (LWP 16544)] [New Thread 1105209696 (LWP 16545)] [New Thread 1115699552 (LWP 16546)] [New Thread 1126189408 (LWP 16547)] [New Thread 1136679264 (LWP 16548)] [New Thread 1147169120 (LWP 16549)] Program received signal SIGILL, Illegal instruction. [Switching to Thread 1094719840 (LWP 16544)] 0x0000000000400a93 in main.omp_fn.0 (.omp_data_i=0x0) at ga.C:10 10 #pragma omp parallel sections (gdb) where #0 0x0000000000400a93 in main.omp_fn.0 (.omp_data_i=0x0) at ga.C:10 #1 0x0000002a9555b635 in gomp_thread_start (xdata=) at ../../../gcc-4.3.0/libgomp/team.c:108 #2 0x0000003e90c0610a in start_thread () from /lib64/tls/libpthread.so.0 #3 0x0000003e8fdc68c3 in clone () from /lib64/tls/libc.so.6 #4 0x0000000000000000 in ?? () (gdb) wherei Undefined command: "wherei". Try "help". (gdb) disassemble Dump of assembler code for function main.omp_fn.0: 0x0000000000400a6e : push %rbp 0x0000000000400a6f : mov %rsp,%rbp 0x0000000000400a72 : sub $0x20,%rsp 0x0000000000400a76 : mov %rdi,0xffffffffffffffe8(%rbp) 0x0000000000400a7a : mov $0x2,%edi 0x0000000000400a7f : callq 0x400900 0x0000000000400a84 : mov %eax,0xffffffffffffffe4(%rbp) 0x0000000000400a87 : cmpl $0x1,0xffffffffffffffe4(%rbp) 0x0000000000400a8b : je 0x400aa2 0x0000000000400a8d : cmpl $0x2,0xffffffffffffffe4(%rbp) 0x0000000000400a91 : je 0x400a95 0x0000000000400a93 : ud2a 0x0000000000400a95 : movl $0x0,0xfffffffffffffff8(%rbp) 0x0000000000400a9c : addl $0x1,0xfffffffffffffff8(%rbp) 0x0000000000400aa0 : jmp 0x400a9c 0x0000000000400aa2 : movl $0x0,0xfffffffffffffffc(%rbp) 0x0000000000400aa9 : addl $0x1,0xfffffffffffffffc(%rbp) 0x0000000000400aad : jmp 0x400aa9 End of assembler dump. (gdb)