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

Re: Ruby bindings 1.4.0 core dump on Ubuntu Breezy

From: Kouhei Sutou <kou_at_cozmixng.org>
Date: 2006-10-06 03:36:46 CEST

Hi,

2006/10/6, Blair Zajac <blair@orcaware.com>:

> With the --with-ruby-test-verbose=verbose, I get this:
>
> make check-swig-rb
...
> test_add_force(SvnClientTest):
> /home/blair/Packages/ubuntu/blair/subversion/subversion-1.4.0/subversion/bindings/swig/ruby/test/util.rb:47:
> [BUG] Segmentation fault
> ruby 1.8.3 (2005-06-23) [i486-linux]

> Are there any particular swig/ruby commits we should be considering for backport
> into the 1.4.x branch?

Could you try a change of r21652?

> 1) Failure:
> test_load(SvnReposTest)
> [/home/blair/Packages/ubuntu/blair/subversion/subversion-trunk/subversion/bindings/swig/ruby/test/test_repos.rb:417]:
> <NoMethodError> exception expected but was
> Class: <TypeError>
> Message: <"can't convert nil into String">

I can't reproduce that.
What SWIG version are you using? I'm using 1.3.29.

Could you identify where the problem is occured?

  * remove '-O2' option from SWIG_RB_COMPILE in Makefile
  * make clean-swig-rb
  * make swig-rb
  * cd subversion/bindings/swig/ruby
  * gdb --args ruby test/run-test.rb -n test_load
  * (gdb) b _wrap_svn_repos_load_fs2
    Function "_wrap_svn_repos_load_fs2" not defined.
    Make breakpoint pending on future shared library load? (y or [n]) y
  * (gdb) r
  * (gdb) n
  * ...

In my thought, it's the fourth argument of Svn::Repos#load_fs
(parent_dir).

Thanks,

--
kou
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Oct 6 03:37:01 2006

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