[Insight-developers] Fwd: Histogramtest

Bill Hoffman bill . hoffman at kitware . com
Tue, 03 Sep 2002 09:15:11 -0400


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

Here is the remaining crash.

Looks like the compiler generated Size copy constructor is not working. 
I am having him try changing these to SizeType const& size, there is no
reason to copy here.

-Bill

>Date: Tue, 3 Sep 2002 14:23:09 +0200
>Subject: Histogramtest
>From: Jon Harald Kaspersen <kaspersen@mac.com>
>To: William Hoffman <bill.hoffman@kitware.com>
>X-Mailer: Apple Mail (2.543)
>
>Hi Bill, 
>
>we have discovered that the malloc error in the histogram test may be a compiler bug. 
>
>We checked the backtrace and found that the error occurs in itkHistogram.txx: 
>
>In Initialize(SizeType size, MeasurementVectorType lowerBound, 
>             MeasurementVectorType upperBound), which is called by the itkHistogramTest, the Initialize(SizeType size) is called, passing the size parameter further to the Initialize(size) function. What happens then is interesting. 
>
>By inserting 
>
>std::cout << "Size: " << size << "\n"; 
>
>as the first line in each of the functions, the following output is generated: 
>
>Size: [64, 64, 64] 
>Size: [3221223168, 3221223492, 583320] 
>
>
>
>======================================================== 
>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> 

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

<html>
Here is the remaining crash.<br>
<br>
Looks like the compiler generated Size copy constructor is not working.
<br>
I am having him try changing these to SizeType const&amp; size, there is
no<br>
reason to copy here.<br>
<br>
-Bill<br>
<br>
<blockquote type=cite class=cite cite>Date: Tue, 3 Sep 2002 14:23:09
+0200<br>
Subject: Histogramtest<br>
From: Jon Harald Kaspersen &lt;kaspersen@mac.com&gt;<br>
To: William Hoffman &lt;bill.hoffman@kitware.com&gt;<br>
X-Mailer: Apple Mail (2.543)<br>
<br>
Hi Bill, <br>
<br>
we have discovered that the malloc error in the histogram test may be a
compiler bug. <br>
<br>
We checked the backtrace and found that the error occurs in
itkHistogram.txx: <br>
<br>
In <font face="Times New Roman, Times" size=4><i>Initialize(SizeType
size, MeasurementVectorType lowerBound, <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
MeasurementVectorType upperBound)</i></font>, which is called by the
itkHistogramTest, the
<font face="Times, Times" size=4><i>Initialize(SizeType size)
</i></font>is called, passing the size parameter further to the
Initialize(size) function. What happens then is interesting. <br>
<br>
By inserting <br>
<br>
std::cout &lt;&lt; &quot;Size: &quot; &lt;&lt; size &lt;&lt;
&quot;\n&quot;; <br>
<br>
as the first line in each of the functions, the following output is
generated: <br>
<br>
Size: [64, 64, 64] <br>
Size: [3221223168, 3221223492, 583320] <br>
<br>
<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> &lt;/blockquote&gt;&lt;/x-html&gt; </blockquote></html>

--=====================_428376252==_.ALT--