Double linked list error?

General OpenMP discussion

Double linked list error?

Postby daviddoria » Wed Jun 11, 2008 1:46 pm

OpenMP seems to be working fine - here is the output of
make ConcentricScan

icc -I../GeometryLibrary -I../ObjReader -c ConcentricScan.cpp -o ConcentricScan.o -L../GeometryLibrary -lgeom -lstdc++ -L/usr/local/lib -openmp -fPIC
ConcentricScan.cpp(82) : (col. 1) remark: OpenMP DEFINED LOOP WAS PARALLELIZED.

in the code I have simply:

#pragma omp parallel for
for(int PoseCounter = 0; PoseCounter < NumPositions; PoseCounter++)

What I get when I run it though is:

*** glibc detected *** double free or corruption (!prev): 0x0807b828 ***
Aborted

I have done this before and it has worked, so what could be going wrong? Note that if I remove the #pragma the code runs fine.

Thanks!

Dave
daviddoria
 
Posts: 21
Joined: Fri May 23, 2008 11:03 am

Re: Double linked list error?

Postby daviddoria » Wed Jun 11, 2008 2:54 pm

So I fixed it... I had a variable that was not instantiated inside the loop so it was being modified by all the processors at once.

It seemed like a bizarre error for that, I thought it would warn me / explain it better.

Hope this helps the next guy :)

Thanks,

Dave
daviddoria
 
Posts: 21
Joined: Fri May 23, 2008 11:03 am


Return to Using OpenMP

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest