[Insight-developers] call stack for crash on OSX

Bill Hoffman bill . hoffman at kitware . com
Wed, 28 Aug 2002 09:38:37 -0400


--=====================_-1878004317==_.ALT
Content-Type: text/plain; charset="us-ascii"

Here is a call stack (no debug info) for one of the tests that
is failing on the Mac.

I will ask him to try again with debug info, but I thought someone might
be able to figure out what is wrong with this.

-Bill



>(gdb) run itkConnectedThresholdImageFilterTest /Users/jonk/cvs/Insight/Testing/Data/Input/cthead1.png /Users/jonk/cvs/Insight/Testing/Data/Baseline/BasicFilters/ConnectedThresholdImageFilterTest.png 
>Starting program: /Users/jonk/cvs/ITK-gcc3/Testing/Code/BasicFilters/itkBasicFiltersTests itkConnectedThresholdImageFilterTest /Users/jonk/cvs/Insight/Testing/Data/Input/cthead1.png /Users/jonk/cvs/Insight/Testing/Data/Baseline/BasicFilters/ConnectedThresholdImageFilterTest.png 
>[Switching to process 11020 thread 0xb03] 
>Reading symbols for shared libraries .. done 
>Read: file dimensions = 2 
>Read: file dimensions = 2 
>
>Program received signal EXC_BAD_ACCESS, Could not access memory. 
>0x001b7888 in itk::DefaultConvertPixelTraits<unsigned char>::SetNthComponent(int, unsigned char&, unsigned char const&) () 
>(gdb) bt 
>#0  0x001b7888 in itk::DefaultConvertPixelTraits<unsigned char>::SetNthComponent(int, unsigned char&, unsigned char const&) () 
>#1  0x001ad7fc in itk::ConvertPixelBuffer<unsigned char, unsigned char, itk::DefaultConvertPixelTraits<unsigned char> >::ConvertRGBToGray(unsigned char*, unsigned char*, int) () 
>#2  0x001abadc in itk::ConvertPixelBuffer<unsigned char, unsigned char, itk::DefaultConvertPixelTraits<unsigned char> >::Convert(unsigned char*, int, unsigned char*, int) () 
>#3  0x001a9eac in itk::ImageFileReader<itk::Image<unsigned char, 2>, itk::DefaultConvertPixelTraits<unsigned char> >::DoConvertBuffer(void*, unsigned long) () 
>#4  0x001a60c8 in itk::ImageFileReader<itk::Image<unsigned char, 2>, itk::DefaultConvertPixelTraits<unsigned char> >::GenerateData() () 
>#5  0x00060c10 in itk::ProcessObject::UpdateOutputData(itk::DataObject*) () 
>#6  0x0005cefc in itk::DataObject::UpdateOutputData() () 
>#7  0x0005ca7c in itk::DataObject::Update() () 
>#8  0x0005ff58 in itk::ProcessObject::Update() () 
>#9  0x0001592c in itkConnectedThresholdImageFilterTest(int, char**) () 
>#10 0x000027bc in main () 
>#11 0x00002190 in _start (argc=4, argv=0xbffff8cc, envp=0xbffff8e0) at /SourceCache/Csu/Csu-45/crt.c:267 
>#12 0x00002010 in start () 
>(gdb) 
>
>
>On Tuesday, August 27, 2002, at 09:20 PM, Bill Hoffman wrote: 
>
>>ADD_TEST(itkConnectedThresholdImageFilterTest itkBasicFiltersTests itkConnectedThresholdImageFilterTest C:/Hoff 
>>man/Insight/Testing/Data/Input/cthead1.png C:/Hoffman/Insight/Testing/Data/Baseline/BasicFilters/ConnectedThres 
>>holdImageFilterTest.png) 
>>
>>You can see the arguments that you have to use from there. 
>
>Great ! Se above. 
>
>
>>I am not sure what is wrong with the Histogram test. 
>>
>>If you could rebuild with a -g option we might be able to see more information 
>>in the debugger. 
>
>It will have to wait until tomorrow, or may be I could fit it in tonight at home. Anyway, I will do that at the same time as I set up the cronjob thing on one of our desktop Mac's. 
>
>Regards 
>Jon 
>
>======================================================== 
>Jon Harald Kaspersen                    Tel:            +47 73 59 75 89 
>Ph.D. Mechanical Engineering            Mob:            +47 93 03 65 90 
>Senior Scientist                                Pager   +47 96 84 29 94 
>SINTEF Unimed - Ultralyd                Fax:            +47 73 59 78 73 
>N-7465 Trondheim 
>NORWAY                  e-mail: Jon.H.Kaspersen@unimed.sintef.no 
>                                WEB:    <http://www.us.unimed.sintef.no/>http://www.us.unimed.sintef.no/ 
>======================================================== 
>
></blockquote></x-html> 

--=====================_-1878004317==_.ALT
Content-Type: text/html; charset="us-ascii"

<html>
Here is a call stack (no debug info) for one of the tests that<br>
is failing on the Mac.<br>
<br>
I will ask him to try again with debug info, but I thought someone
might<br>
be able to figure out what is wrong with this.<br>
<br>
-Bill<br>
<br>
<br>
<br>
<blockquote type=cite class=cite cite>(gdb) run
itkConnectedThresholdImageFilterTest
/Users/jonk/cvs/Insight/Testing/Data/Input/cthead1.png
/Users/jonk/cvs/Insight/Testing/Data/Baseline/BasicFilters/ConnectedThresholdImageFilterTest.png
<br>
Starting program:
/Users/jonk/cvs/ITK-gcc3/Testing/Code/BasicFilters/itkBasicFiltersTests
itkConnectedThresholdImageFilterTest
/Users/jonk/cvs/Insight/Testing/Data/Input/cthead1.png
/Users/jonk/cvs/Insight/Testing/Data/Baseline/BasicFilters/ConnectedThresholdImageFilterTest.png
<br>
[Switching to process 11020 thread 0xb03] <br>
Reading symbols for shared libraries .. done <br>
Read: file dimensions = 2 <br>
Read: file dimensions = 2 <br>
<br>
Program received signal EXC_BAD_ACCESS, Could not access memory. <br>
0x001b7888 in itk::DefaultConvertPixelTraits&lt;unsigned
char&gt;::SetNthComponent(int, unsigned char&amp;, unsigned char
const&amp;) () <br>
(gdb) bt <br>
#0&nbsp; 0x001b7888 in itk::DefaultConvertPixelTraits&lt;unsigned
char&gt;::SetNthComponent(int, unsigned char&amp;, unsigned char
const&amp;) () <br>
#1&nbsp; 0x001ad7fc in itk::ConvertPixelBuffer&lt;unsigned char, unsigned
char, itk::DefaultConvertPixelTraits&lt;unsigned char&gt;
&gt;::ConvertRGBToGray(unsigned char*, unsigned char*, int) () <br>
#2&nbsp; 0x001abadc in itk::ConvertPixelBuffer&lt;unsigned char, unsigned
char, itk::DefaultConvertPixelTraits&lt;unsigned char&gt;
&gt;::Convert(unsigned char*, int, unsigned char*, int) () <br>
#3&nbsp; 0x001a9eac in itk::ImageFileReader&lt;itk::Image&lt;unsigned
char, 2&gt;, itk::DefaultConvertPixelTraits&lt;unsigned char&gt;
&gt;::DoConvertBuffer(void*, unsigned long) () <br>
#4&nbsp; 0x001a60c8 in itk::ImageFileReader&lt;itk::Image&lt;unsigned
char, 2&gt;, itk::DefaultConvertPixelTraits&lt;unsigned char&gt;
&gt;::GenerateData() () <br>
#5&nbsp; 0x00060c10 in
itk::ProcessObject::UpdateOutputData(itk::DataObject*) () <br>
#6&nbsp; 0x0005cefc in itk::DataObject::UpdateOutputData() () <br>
#7&nbsp; 0x0005ca7c in itk::DataObject::Update() () <br>
#8&nbsp; 0x0005ff58 in itk::ProcessObject::Update() () <br>
#9&nbsp; 0x0001592c in itkConnectedThresholdImageFilterTest(int, char**)
() <br>
#10 0x000027bc in main () <br>
#11 0x00002190 in _start (argc=4, argv=0xbffff8cc, envp=0xbffff8e0) at
/SourceCache/Csu/Csu-45/crt.c:267 <br>
#12 0x00002010 in start () <br>
(gdb) <br>
<br>
<br>
On Tuesday, August 27, 2002, at 09:20 PM, Bill Hoffman wrote: <br>
<br>
<blockquote type=cite class=cite cite>ADD_TEST(itkConnectedThresholdImageFilterTest
itkBasicFiltersTests itkConnectedThresholdImageFilterTest C:/Hoff <br>
man/Insight/Testing/Data/Input/cthead1.png
C:/Hoffman/Insight/Testing/Data/Baseline/BasicFilters/ConnectedThres
<br>
holdImageFilterTest.png) <br>
<br>
You can see the arguments that you have to use from there.
</blockquote><br>
Great ! Se above. <br>
<br>
<br>
<blockquote type=cite class=cite cite>I am not sure what is wrong with
the Histogram test. <br>
<br>
If you could rebuild with a -g option we might be able to see more
information <br>
in the debugger. </blockquote><br>
It will have to wait until tomorrow, or may be I could fit it in tonight
at home. Anyway, I will do that at the same time as I set up the cronjob
thing on one of our desktop Mac's. <br>
<br>
Regards <br>
Jon <br>
<br>
<font face="Helvetica, Helvetica">========================================================
<br>
Jon Harald
Kaspersen<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Tel:
<x-tab>&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>+47
73 59 75 89 <br>
Ph.D. Mechanical
Engineering<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Mob:<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>+47
93 03 65 90 <br>
Senior
Scientist<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Pager<x-tab>&nbsp;&nbsp;&nbsp;</x-tab>+47
96 84 29 94 <br>
SINTEF Unimed -
Ultralyd<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Fax:
<x-tab>&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>+47
73 59 78 73 <br>
N-7465 Trondheim <br>
NORWAY<x-tab>&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>e-mail:<x-tab>&nbsp;</x-tab>Jon.H.Kaspersen@unimed.sintef.no
<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>WEB:<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;</x-tab></font><a href="http://www.us.unimed.sintef.no/"><font face="Helvetica, Helvetica" color="#1A1AFF"><u>http://www.us.unimed.sintef.no/</a></u></font><font face="Helvetica, Helvetica">
<br>
========================================================</font> <br>
<br>
&lt;/blockquote&gt;&lt;/x-html&gt; </blockquote></html>

--=====================_-1878004317==_.ALT--