[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Another 1.4.x-specific Ruby failure

From: Peter Samuelson <peter_at_p12n.org>
Date: 2006-08-17 03:33:30 CEST

[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.

Received on Thu Aug 17 03:34:08 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.