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

Re: Segfault in ruby tests

From: Joe Swatosh <joe.swatosh_at_gmail.com>
Date: Thu, 29 Jan 2009 20:32:56 -0800

On Thu, Jan 29, 2009 at 10:27 AM, Hyrum K. Wright
<hyrum_wright_at_mail.utexas.edu> wrote:
> Joe Swatosh wrote:
>> <hyrum_wright_at_mail.utexas.edu> wrote:
>>>> On Wed, Jan 28, 2009 at 10:36 AM, Hyrum K. Wright
>>>> <hyrum_wright_at_mail.utexas.edu> wrote:
>>>>> Joe Swatosh wrote:
>>>>>> On Tue, Jan 27, 2009 at 9:57 AM, Hyrum K. Wright
>>>>>> <hyrum_wright_at_mail.utexas.edu> wrote:
>>>>>>> Joe, Kou,
>>>>>>> The ruby bindings tests are segfaulting on the buildbot. I can
>>>>>>> reproduce
>>>>>>> locally:

>>> the buildbot continued to fail.
>>>
>>
>> I'm not much help. Maybe try running the tests with a -v so we will
>> at least know the name of the test that causes the segfault?
>
> hwright_at_orac:~/dev/svn-trunk/subversion/bindings/swig/ruby$ /usr/bin/ruby -I
> /home/hwright/dev/svn-trunk/subversion/bindings/swig/ruby
> /home/hwright/dev/svn-trunk/subversion/bindings/swig/ruby/test/run-test.rb
> -v
> Loaded suite .
> Started
> ...
> test_apply(SvnDeltaTest):
> /home/hwright/dev/svn-trunk/subversion/bindings/swig/ruby/svn/util.rb:86:
> [BUG] Segmentation fault
> ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
>

Not much to go on. Looking back at the buildbot results r35373 was
the last time the x64-ubuntu gcc passed. So:

D:\SVN\src-trunk>svn log -rhead:35373 subversion\libsvn_delta
------------------------------------------------------------------------

D:\SVN\src-trunk>

Really nothing to go on.

D:\SVN\src-trunk>svn log -rhead:35373 subversion\include\svn_delta.h
------------------------------------------------------------------------
r35424 | gstein | 2009-01-23 10:30:04 -0800 (Fri, 23 Jan 2009) | 86 lines

Adjust a bunch of our public header files:

- make sure everything the header needs is included
- make sure nothing is included which is NOT needed

Added an exception to svn_types.h: it now explicitly includes svn_error.h
since Everybody needs that thing. We go ahead and make it easy for them,
even though that is counter-philosophy.

After altering the header files, some .c files in our codebase would not
compile -- they used stuff that they did not explicitly include. Thus, a
goodly number of .c files were updated, too.

* subversion/libsvn_ra/wrapper_template.h:
* subversion/libsvn_ra/deprecated.c:
* subversion/libsvn_ra/compat.c:
* subversion/libsvn_subr/iter.c:
* subversion/libsvn_subr/cmdline.c:
* subversion/libsvn_subr/ssl_client_cert_pw_providers.c:
* subversion/libsvn_subr/error.c:
* subversion/libsvn_subr/auth.c:
* subversion/libsvn_subr/opt.c:
* subversion/libsvn_subr/checksum.c:
* subversion/libsvn_subr/compat.c:
* subversion/libsvn_subr/sha1.c:
* subversion/libsvn_subr/deprecated.c:
* subversion/libsvn_subr/ssl_server_trust_providers.c:
* subversion/mod_dav_svn/activity.c:
* subversion/mod_dav_svn/reports/log.c:
* subversion/tests/libsvn_fs/fs-test.c:
* subversion/tests/libsvn_repos/repos-test.c:
* subversion/svn/list-cmd.c:
* subversion/svn/changelist-cmd.c:
* subversion/svn/log-cmd.c:
* subversion/svn/conflict-callbacks.c:
* subversion/libsvn_fs_base/dag.c:
* subversion/libsvn_fs_base/util/fs_skels.c:
* subversion/include/svn_dirent_uri.h:
* subversion/include/svn_error_codes.h:
* subversion/include/svn_fs.h:
* subversion/include/svn_diff.h:
* subversion/include/svn_sorts.h:
* subversion/include/svn_mergeinfo.h:
* subversion/include/svn_base64.h:
* subversion/include/svn_dso.h:
* subversion/include/svn_ra_svn.h:
* subversion/include/svn_repos.h:
* subversion/include/svn_delta.h:
* subversion/include/svn_path.h:
* subversion/include/svn_subst.h:
* subversion/include/svn_xml.h:
* subversion/include/svn_props.h:
* subversion/include/svn_iter.h:
* subversion/include/svn_types.h:
* subversion/include/svn_config.h:
* subversion/include/svn_string.h:
* subversion/include/svn_io.h:
* subversion/include/svn_wc.h:
* subversion/include/svn_cmdline.h:
* subversion/include/svn_client.h:
* subversion/include/svn_user.h:
* subversion/include/svn_hash.h:
* subversion/include/svn_md5.h:
* subversion/include/svn_error.h:
* subversion/include/svn_pools.h:
* subversion/include/private/svn_log.h:
* subversion/include/svn_time.h:
* subversion/include/svn_utf.h:
* subversion/include/svn_auth.h:
* subversion/include/svn_ra.h:
* subversion/include/svn_opt.h:
* subversion/include/svn_checksum.h:
* subversion/libsvn_wc/deprecated.c:
* subversion/libsvn_wc/util.c:
* subversion/libsvn_wc/merge.c:
* subversion/libsvn_wc/tree_conflicts.c:
* subversion/libsvn_client/list.c:
* subversion/libsvn_client/log.c:
* subversion/libsvn_ra_neon/util.c:
* subversion/libsvn_ra_neon/log.c:
* subversion/libsvn_repos/deprecated.c:
* subversion/libsvn_fs_fs/tree.c:
* subversion/libsvn_fs_fs/fs_fs.c:
  (): adjust #include statements appropriately

------------------------------------------------------------------------

D:\SVN\src-trunk>

Okay that seems really unlikely....

> The buildbot is back up, too, so you can see the error in the binding test
> output.

What do you see at:
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=552&dsMessageId=1069466
? :-)

--
Joe
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1072192
Received on 2009-01-30 05:33:16 CET

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.