public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/26456]  New: OpenMP program deadlocks when executed
@ 2006-02-24 14:23 eloranta at jyu dot fi
  2006-02-24 14:58 ` [Bug libgomp/26456] " eloranta at jyu dot fi
  2006-02-24 15:09 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: eloranta at jyu dot fi @ 2006-02-24 14:23 UTC (permalink / raw)
  To: gcc-bugs

OpenMP C programs deadlock immediately after starting when OMP_NUM_THREADS is >
1.
For example, the following simple code just hangs:

#include <stdio.h>

main() {

  int i;

#pragma omp parallel for private(i)
  for (i = 0; i < 100; i++)
    printf("Thread = %d.\n", omp_get_thread_num());
}

This occurs on MacOS X 10.4.5 with gcc version:

Using built-in specs.
Target: powerpc-apple-darwin8.4.0
Configured with:
/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_gcc42/work/gcc-4.2-20060204/configure
--prefix=/opt/local --enable-languages=c,c++,java,objc,fortran
--libdir=/opt/local/lib/gcc42 --includedir=/opt/local/include/gcc42
--infodir=/opt/local/share/info --mandir=/opt/local/share/man
--with-local-prefix=/opt/local --with-system-zlib --disable-nls
--program-suffix=-dp-4.2 --with-gxx-include-dir=/opt/local/include/gcc42/c++/
--with-gmp=/opt/local --with-mpfr=/opt/local --disable-multilib
Thread model: posix
gcc version 4.2.0 20060204 (experimental)

Also it appears that when -fopenmp switch is used, gcc does not automatically
include -lgomp but
this has to be done by hand.


-- 
           Summary: OpenMP program deadlocks when executed
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: eloranta at jyu dot fi


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


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

* [Bug libgomp/26456] OpenMP program deadlocks when executed
  2006-02-24 14:23 [Bug c/26456] New: OpenMP program deadlocks when executed eloranta at jyu dot fi
@ 2006-02-24 14:58 ` eloranta at jyu dot fi
  2006-02-24 15:09 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: eloranta at jyu dot fi @ 2006-02-24 14:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from eloranta at jyu dot fi  2006-02-24 14:23 -------

Most likely this is just OS X specific bug.


-- 

eloranta at jyu dot fi changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |libgomp


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


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

* [Bug libgomp/26456] OpenMP program deadlocks when executed
  2006-02-24 14:23 [Bug c/26456] New: OpenMP program deadlocks when executed eloranta at jyu dot fi
  2006-02-24 14:58 ` [Bug libgomp/26456] " eloranta at jyu dot fi
@ 2006-02-24 15:09 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-24 15:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-02-24 15:09 -------
This is Darwin specific.

This is a dup of bug 25978.

*** This bug has been marked as a duplicate of 25978 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2006-02-24 15:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-24 14:23 [Bug c/26456] New: OpenMP program deadlocks when executed eloranta at jyu dot fi
2006-02-24 14:58 ` [Bug libgomp/26456] " eloranta at jyu dot fi
2006-02-24 15:09 ` pinskia 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).