[Insight-developers] WrapITK + Tcl -- still having a crash with itk::Vector

kent williams norman-k-williams at uiowa.edu
Fri Jun 18 11:13:54 EDT 2010


I will be at neither. I think my boss Hans Johnson will be at one or the
other.

As it turns out I did some more testing. It is failing on OS X 10.6 with the
XCode 3.2.2 compilers.  It isn't failing on RHEL 5.5.

The OS X uses gcc 4.2.1 RHEL is using 4.1.2.

The problem occurs in <builddir>/Wrapping/WrapITK/SwigRuntime/swigrunTcl.cxx
in (on my systems) line 738 in SWIG_Tcl_GetArgs:

    vptr = va_arg(ap,void *);

SWIG_Tcl_GetArgs steps through a variable argument list, in order to pick up
arguments and store them so that _wrap_itkFixedArrayD3_SetElement can call
SetElement on the vector.

On RHEL5, 64-bit, the va_arg macro correctly steps through the arguments on
the stack.  On OS X, it gets the first 2 arguments -- apparently -- correct,
but then returns 0x100000000 for the third arg.  Then on line 780 it tries
to use this as a pointer, and you get a crash.

On 6/18/10 12:39 AM, "Alexandre GOUAILLARD" <agouaillard at gmail.com> wrote:

> dear kent,
> 
> will you be either at the namic project week in boston next week or at
> the itk 10 years fest ++ in washington the week after?
> I would like to look into that error with you.
> 
> alex.
> 
> 
> On Fri, Jun 18, 2010 at 5:12 AM, kent williams
> <norman-k-williams at uiowa.edu> wrote:
>> I reported this bug last november.  The bug report is here:
>> 
>> http://public.kitware.com/Bug/view.php?id=9889
>> 
>> Nothing has changed -- this bug is still here; and it is still 64-bit only,
>> meaning WrapITK Tcl Wrapping is not 64-bit clean.
>> 
>> Can I be the only ITK user on earth using Tcl with ITK on 64-bit builds?
>> 
>> _______________________________________________
>> 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://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-developers
>> 



More information about the Insight-developers mailing list