public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgomp/52230] New: OpenMP: Simple C program triggers SIGSEGV at execution
@ 2012-02-13 11:18 fanusergiu at yahoo dot com
  2012-02-13 11:25 ` [Bug libgomp/52230] " jakub at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: fanusergiu at yahoo dot com @ 2012-02-13 11:18 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52230
           Summary: OpenMP: Simple C program triggers SIGSEGV at execution
    Classification: Unclassified
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgomp
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: fanusergiu@yahoo.com


bash-3.2$ gcc -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.1~22/src/configure
--disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2
--mandir=/share/man --enable-languages=c,objc,c++,obj-c++
--program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
--with-slibdir=/usr/lib --build=i686-apple-darwin11
--enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.1~22/dst-llvmCore/Developer/usr/local
--program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11
--target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)


The following program is compiled with -fopenmp. (gcc -fopenmp -Wall a.c)
There are no warnings, no compilation errors.
OS: OSX Lion 10.7.3

int main(void)
{
int i;
#pragma omp parallel for
for(i=0;i<4;i++) {
    while(1);
}
return 0;
}


If I run the program several times, sometimes I get a SIGSEGV. If you don't
receive the SIGSEGV in the first 5-7 seconds, just intrerupt it (via Ctrl-C)
and run it again.

bash-3.2$ ./a.out
Segmentation fault: 11 (core dumped)


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

end of thread, other threads:[~2012-07-02 14:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-13 11:18 [Bug libgomp/52230] New: OpenMP: Simple C program triggers SIGSEGV at execution fanusergiu at yahoo dot com
2012-02-13 11:25 ` [Bug libgomp/52230] " jakub at gcc dot gnu.org
2012-02-13 11:32 ` fanusergiu at yahoo dot com
2012-02-13 12:01 ` [Bug middle-end/52230] " jakub at gcc dot gnu.org
2012-02-13 12:05 ` jakub at gcc dot gnu.org
2012-02-13 12:05 ` jakub at gcc dot gnu.org
2012-02-13 19:58 ` jakub at gcc dot gnu.org
2012-02-13 20:05 ` jakub at gcc dot gnu.org
2012-02-14 23:33 ` jakub at gcc dot gnu.org
2012-03-22  9:30 ` rguenth at gcc dot gnu.org
2012-07-02 14:11 ` rguenth at gcc dot gnu.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).