This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with an openMP and pthread program compiled with gcc


On 15 July 2010 15:18, MSteve <steve.macao@previznet.fr> wrote:
> There is no error in my code, in the declarations of my variables, in the
> openmp directives,... and I really think it is due to gcc because the code
> works when I compile it with the intel c compiler.

Thing is compiling without warnings doesnt guarentee no sigsegv :-).

> More precisions on the problem :
> I have simplified my code as far as possible (sorry if it is still too big)
> to keep only the part where the problem occurs. Consequently, the program
> does nothing so don't try to understand its goal :-D (normally it's an algo
> to make some operations on images). I have put some comments in the code to
> help, and I have precised where the problem occurs in Classe2.cpp.
> I work on Linux (version debian 2.6.26 amd64) and compile with the lines at
> the beginning of main.cpp. Other packages are necessary to make the code

This is all too big, try to build a small test case showing the error.
You may want to run your program through gdb or valgrind might give
you some ideas but beyond that i doubt we can be much help.

--Phil


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]