Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 36242
Product:  
Component:  
Status: RESOLVED
Resolution: INVALID
Assigned To: Not yet assigned to anyone <unassigned@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: Stefan Eilemann <eilemann@gmail.com>
Add CC:
CC:
Remove selected CCs
Build:
URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
test.ii the preprocessed file (*.i*) that triggers the bug, application/octet-stream 2008-05-15 08:12 2.87 KB Edit
test.cpp Standalone test case - compile line within text/plain 2008-05-15 08:13 562 bytes Edit
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 36242 depends on: Show dependency tree
Show dependency graph
Bug 36242 blocks:

Additional Comments:






View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: Opened: 2008-05-15 08:11
OpenMP crashes in gomp_resolve_num_threads when used concurrently from multiple
threads.

% g++-4.2 -v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc_42/gcc_42-5553~4/src/configure --disable-checking
-enable-werror --prefix=/usr --mandir=/usr/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
--with-gxx-include-dir=/usr/include/c++/4.0.0 --with-slibdir=/usr/lib
--build=powerpc-apple-darwin9 --program-prefix= --host=i686-apple-darwin9
--target=i686-apple-darwin9
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5553)

------- Comment #1 From Stefan Eilemann 2008-05-15 08:12 -------
Created an attachment (id=15641) [edit]
the preprocessed file (*.i*) that triggers the bug,

------- Comment #2 From Stefan Eilemann 2008-05-15 08:13 -------
Created an attachment (id=15642) [edit]
Standalone test case - compile line within

------- Comment #3 From Steven Bosscher 2008-06-11 20:19 -------
Jakub is the OpenMP guru.

------- Comment #4 From Jakub Jelinek 2008-06-11 20:29 -------
Using OpenMP pragmas in multiple pthread_create created threads concurrently
isn't supported in 4.2/4.3.
There is a support for it on the trunk since a few days ago though.

------- Comment #5 From Jascha Wetzel 2009-04-08 10:46 -------
(In reply to comment #4)
> Using OpenMP pragmas in multiple pthread_create created threads concurrently

It also crashes when using omp pragmas from a single pthread if it is not the
main thread.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug