[Insight-users] bug in itkCurvatureFlowImageFilter (?)

dean.inglis@on.aibn.com dean.inglis@on.aibn.com
Wed, 12 Feb 2003 7:24:54 -0500


Hi,

in trying to get an itk/vtk Borland C++ Builder 5
GUI app going, I thought I'd try a simple console
app,generated through the BCB5 IDE (as opposed to
command line tools with CMake (1.6.3)) based
on Insight/Auxiliary/vtk/itkVTKtoITKtoVTK.cxx.
I kept getting access violations and eventually, by
elimination, found the culprit to be 
itkCurvatureFlowImageFilter.
The Borland IDE offers a monitoring program called 
CodeGuard: part of the log generated from a run
with 1 filter iteration is below (will send more of
it if required). Switching to a different filter,
itkBinomialBlurImageFilter, and the app runs 
without error.  

Dean



Error 00035. 0x130210 (Thread 0x0450):
Pointer arithmetic overrun: 0x01A56E04+8, that is at offset 262140+8 in heap
 block 0x01A16E08 which is only 262144 bytes long.
Call Tree:
   0x00421738(=itkvtkTest2Prj.exe:0x01:020738)
   0x0041DA50(=itkvtkTest2Prj.exe:0x01:01CA50)
   0x0041A25D(=itkvtkTest2Prj.exe:0x01:01925D)
   0x0043FB71(=itkvtkTest2Prj.exe:0x01:03EB71)
   0x0041A15B(=itkvtkTest2Prj.exe:0x01:01915B)
   0x00418DE7(=itkvtkTest2Prj.exe:0x01:017DE7)

The object array (0x01A16E08) [size: 262144 bytes] was created with new[]
Call Tree:
   0x004178BF(=itkvtkTest2Prj.exe:0x01:0168BF)
   0x004177B1(=itkvtkTest2Prj.exe:0x01:0167B1)
   0x00418D9B(=itkvtkTest2Prj.exe:0x01:017D9B)
   0x00446B82(=itkvtkTest2Prj.exe:0x01:045B82)
   0x0043D226(=itkvtkTest2Prj.exe:0x01:03C226)
   0x0043CF33(=itkvtkTest2Prj.exe:0x01:03BF33)

------------------------------------------
Error 00036. 0x130210 (r) (Thread 0x0450):
Pointer arithmetic overrun: 0x01A56E08+8, that is at offset 262144+8 in heap
 block 0x01A16E08 which is only 262144 bytes long.
Call Tree:
   0x00421738(=itkvtkTest2Prj.exe:0x01:020738)
   0x0041DA50(=itkvtkTest2Prj.exe:0x01:01CA50)
   0x0041A25D(=itkvtkTest2Prj.exe:0x01:01925D)
   0x0043FB71(=itkvtkTest2Prj.exe:0x01:03EB71)
   0x0041A15B(=itkvtkTest2Prj.exe:0x01:01915B)
   0x00418DE7(=itkvtkTest2Prj.exe:0x01:017DE7)

The object array (0x01A16E08) [size: 262144 bytes] was created with new[]
Call Tree:
   0x004178BF(=itkvtkTest2Prj.exe:0x01:0168BF)
   0x004177B1(=itkvtkTest2Prj.exe:0x01:0167B1)
   0x00418D9B(=itkvtkTest2Prj.exe:0x01:017D9B)
   0x00446B82(=itkvtkTest2Prj.exe:0x01:045B82)
   0x0043D226(=itkvtkTest2Prj.exe:0x01:03C226)
   0x0043CF33(=itkvtkTest2Prj.exe:0x01:03BF33)

------------------------------------------
Error 00037. 0x140210 (Thread 0x0450):
Pointer arithmetic underrun: 0x01A16E08-4, that is at offset 0-4 in heap block
 0x01A16E08 (size 262144).
Call Tree:
   0x004327B6(=itkvtkTest2Prj.exe:0x01:0317B6)
   0x00431556(=itkvtkTest2Prj.exe:0x01:030556)
   0x004210A4(=itkvtkTest2Prj.exe:0x01:0200A4)
   0x0041E3AF(=itkvtkTest2Prj.exe:0x01:01D3AF)
   0x0041A25D(=itkvtkTest2Prj.exe:0x01:01925D)
   0x0043FB71(=itkvtkTest2Prj.exe:0x01:03EB71)

The object array (0x019D6E04) [size: 262144 bytes] was created with new[]
Call Tree:
   0x004178BF(=itkvtkTest2Prj.exe:0x01:0168BF)
   0x004177B1(=itkvtkTest2Prj.exe:0x01:0167B1)
   0x004269FA(=itkvtkTest2Prj.exe:0x01:0259FA)
   0x00446B82(=itkvtkTest2Prj.exe:0x01:045B82)
   0x0043D226(=itkvtkTest2Prj.exe:0x01:03C226)
   0x00446730(=itkvtkTest2Prj.exe:0x01:045730)