1.5.25: gcc/gomp crash

robs aquegg@yahoo.co.uk
Fri Jul 10 08:12:00 GMT 2009


Hello,

Compiling and running the attached gomp test code crashes (or sometimes locks up) on a dual core PC.

I.e.

gcc -fopenmp -lgomp gomp-test.c
./a.exe

crashes.  If invoked as 

./a.exe 1

however, the program is run single-threaded and completes correctly.

Does the test code appear to be correct usage of gomp?

Note that the problem seems to be highly dependent on the heap usage pattern prior to the multi-threaded part of the code (the pattern used in the test code was extracted from a run of a real application).

Cheers,
Rob


      
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20090710/24ff41ad/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gomp-test.c
Type: text/x-csrc
Size: 1435 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20090710/24ff41ad/attachment.bin>
-------------- next part --------------
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list