[Insight-developers] Error message using itk::Multithreader

Kent Williams norman-k-williams at uiowa.edu
Wed Apr 6 12:09:47 EDT 2005


Sorry about the misfire!

We've begun using itk Semaphores and threading in brains2.

Basically brains2 always has 2 threads running - one does the GUI and 
the other the computation.

When we run it under valgrind we get this message:
==30709== pthread_attr_setscope: invalid or unsupported scope
==30709==    at 0x3592AA3E: pthread_error (vg_libpthread.c:382)
==30709==    by 0x3592AC7E: pthread_attr_setscope (vg_libpthread.c:504)
==30709==    by 0x352A87E4: itk::MultiThreader::SpawnThread(void* 
(*)(void*), void*) (itkMultiThreader.cxx:709)
==30709==    by 0x8052C4D: glbGuiIPC::SpawnThread(void* (*)(void*), 
void*) (glbGuiIPC.h:108)

It looks like the call to pthread_attr_setscope is silently failing, 
normally, and either valgrind isn't up to date on what a valid scope is, 
or something invalid is being passed in.

Everything seems to work as it should, so I wouldn't call this a big bug....



More information about the Insight-developers mailing list