[Insight-users] Bug in itkMultiThreaderPThreads.cxx
Fleysher, Lazar
lazar.fleysher at mountsinai.org
Tue Jan 3 15:44:50 EST 2012
Hello Matt
yes, there were two places where the error-code was not checked. In the third one it was.
With the patch, at least a meaningful error message will be generated without a segmentation violation.
Thank you very much for your help
Lazar
________________________________________
From: Matt McCormick [matt.mccormick at kitware.com]
Sent: Tuesday, January 03, 2012 15:29
To: Fleysher, Lazar
Cc: Insight-users at itk.org
Subject: Re: [Insight-users] Bug in itkMultiThreaderPThreads.cxx
Hi Lazar,
You can file a bug report at http://issues.itk.org/, but pinging this
mailing list is a good idea, too.
Please try this patch to see if it fixes your problem.
http://review.source.kitware.com/#/c/3610/
Thanks,
Matt
On Tue, Jan 3, 2012 at 1:38 PM, Fleysher, Lazar
<lazar.fleysher at mountsinai.org> wrote:
> Hello Everybody
>
> I do not know the proper mechanism to report bugs, so I am writing here..
>
> It looks to me as if there is a bug in itkMultiThreaderPThreads.cxx
>
> It looks like error code is not checked when pthread_create() is called.
>
> This caused a lot of headache for me recently
> (see this http://www.itk.org/pipermail/insight-users/2011-December/043296.html).
>
>
> The needed threads where not created, but since the error code was not checked,
> the pthread_join() failed.
>
> It would be nice if someone more experienced with the itk library looked at it and corrected the problem.
>
> Why the threads could not be created is another story ....
>
> Thank you very much for your help
>
> Lazar
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list