From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2885 invoked by alias); 28 Sep 2007 08:15:41 -0000 Received: (qmail 2783 invoked by uid 48); 28 Sep 2007 08:15:22 -0000 Date: Fri, 28 Sep 2007 08:15:00 -0000 Subject: [Bug c++/33581] New: OpenMP segmentation fault X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "spollmann at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-09/txt/msg02340.txt.bz2 The following code (a general case) generates a segmentation fault when compiled with the -m32 and -fopenmp switch in gcc 4.2.1. With the -m32 switch removed, the program executes correctly. #include int main() { int x; #pragma omp parallel for for (x = 0; x < 100; x++) { std::cout << x << std::endl; } return 0; } compile command line: /usr/local/gcc-4.2.1/bin/g++ --static -fopenmp -m32 -o openMPTestProgram openMPTest.cpp System: SUSE 10 x64 linux distribution, (Dual-core Intel(R) Pentium(R) D CPU 2.80GHz system), 4GB ram GCC configuration option: ../gcc-4.2.1/configure --prefix=/usr/local/gcc-4.2.1 -- Summary: OpenMP segmentation fault Product: gcc Version: 4.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: spollmann at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33581