cutCreateTimer issue

Hi,
I have a linux multi-gpu code which opens 6 host threads working against 6 gpus. The application crashed frequently, it seems that what crashed
it was that each thread called cutCreateTimer and cutDeleteTimer before and after each kernel invocation. When I removed the timing code, the application stopped crashing
Is it possible that the the cutCreateTimer is not thread safe?

The code is like this:
cutCreateTimer( &iTimer );
cutResetTimer( iTimer );
cutStartTimer( iTimer );

kernel<<< … >>>
cutStopTimer( iTimer ) ;

I think what happens is this:
Two threads get the same id for the timer and when they come to stop the timer the application crashes.

Any idea?

This is the log I see on the screen when the segmentation happens:

25\02_IL_IN01027.mft] chores [155] to [164]
[2009/3/31 , 22:21:47 ], Thread[1] - MF SEARCH Calculating chores [155] to [164], using [GPU]
[2009/3/31 , 22:21:47 ], Thread[1] - MF SEARCH Calculating chore [155] out of chores [155] to [164]
*** glibc detected *** /home/run/bin64/GSlaveClusterConsole64: double free or corruption (fasttop): 0x00002aaac3ba7f00 ***
======= Backtrace: =========
/lib64/libc.so.6[0x3364e71634]
/lib64/libc.so.6(cfree+0x8c)[0x3364e74c5c]
/home/run/lib64/libcutil.so(_ZN9StopWatch7destroyERKj+0x3c)[0x2b21a2af65cc]
/home/run/lib64/libcutil.so(cutDeleteTimer+0x13)[0x2b21a2af0d93]

/home/run/lib64/libGeoEngineGNU64.so(CalculateSearchOnGPU+0x1b4)[0x2b21a20f9
dd4]
/home/run/lib64/libGeoEngineGNU64.so(Calculate3DMFSearchOnGPU+0xdc)[0x2b21a2
0faa0c]
/home/run/lib64/libGeoEngineGNU64.so(_ZN13GHI3DimSearch12GPUCalculateEiiiP12
GThreadSpace+0x219)[0x2b21a20f3319]
/home/run/lib64/libGeoEngineGNU64.so(_ZN13GHI3DimSearch9CalculateEiP12GThrea
dSpace+0xe3)[0x2b21a20f3ba3]
/home/run/lib64/libInfraGenericThreadsGNU64.so(_ZN19GMultiThreadHandler6DoWo
rkEv+0x1bc)[0x2b21a0c649bc]
/home/run/lib64/libInfraGenericThreadsGNU64.so(_ZN19GMultiThreadHandler12Wor
kerThreadEPv+0x52)[0x2b21a0c67de2]
/lib64/libpthread.so.0[0x3365a062f7]
/lib64/libc.so.6(clone+0x6d)[0x3364ed1b6d]
======= Memory map: ========
00400000-00443000 r-xp 00000000 08:13 54821528 /home/run/bin64.GPUTest2/GSlaveClusterConsole64
00642000-0064d000 rw-p 00042000 08:13 54821528 /home/run/bin64.GPUTest2/GSlaveClusterConsole64
0064d000-00650000 rw-p 0064d000 00:00 0
18396000-21f3c000 rw-p 18396000 00:00 0
40cef000-40cf0000 —p 40cef000 00:00 0
40cf0000-416f0000 rw-p 40cf0000 00:00 0