Peter Samuelson wrote:
> [Max Bowsher]
>> 1) Error:
>> test_apply(SvnDeltaTest):
>> ArgumentError: NULL pointer given
>> swig/ruby/svn/util.rb:60:in `svn_txdelta_apply_wrapper'
>> swig/ruby/svn/util.rb:60:in `txdelta_apply_wrapper'
>> swig/ruby/svn/delta.rb:52:in `apply'
>> swig/ruby/test/test_delta.rb:124:in `test_apply'
>
> That looks like something we fixed in the Debian build with a patch to
> Makefile.in (though I note that this was long before 1.4.x):
>
> -SWIG_RB_COMPILE = @SWIG_RB_COMPILE@
> +SWIG_RB_COMPILE = @SWIG_RB_COMPILE@ -fno-strict-aliasing
>
> (Of course, this should be done by autoconf in $SWIG_RB_COMPILE, as it
> is gcc-specific.)
>
> Omitting this flag results in a lot of warnings about type-punned
> pointers, which are a bug in C99 and can cause gcc to mis-optimise
> code. However, I did not dig in to see whether these warnings are
> caused by ruby, or swig, or the subversion bindings.
My SWIG_RB_COMPILE is picking up -fno-strict-aliasing anyway (from Ruby,
I assume).
I'm getting reproducable failures with 1.4.x, yet trunk is fine.
I'm working on amd64 Debian etch.
Max.
Received on Thu Aug 17 15:21:07 2006