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

Re: Ruby test failure on 1.6.x

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Tue, 12 Jan 2010 21:06:40 +0000

Julian Foad <julianfoad_at_btopenworld.com> writes:

> Philip Martin wrote:
>> I build with pool debugging enabled. I have run the tests under
>> valgrind as follows:
>>
>> (cd subversion/bindings/swig/ruby && valgrind ruby -I ../../../../../src-1.6/subversion/bindings/swig/ruby ../../../../../src-1.6/subversion/bindings/swig/ruby/test/run-test.rb test_delta.rb)
>>
>> I get a variety of valgrind assertions during the initialisation
>> phase, but during the tests I get:
>>
>> ==19064== Use of uninitialised value of size 8
>> ==19064== at 0x4C6CB78: (within /usr/lib/libruby1.8.so.1.8.7)
>> ==19064== by 0x4C6C69E: (within /usr/lib/libruby1.8.so.1.8.7)
>> ==19064== by 0x4C6CF46: (within /usr/lib/libruby1.8.so.1.8.7)
>> ==19064== by 0x4C6D8FA: rb_gc (in /usr/lib/libruby1.8.so.1.8.7)
>> ==19064== by 0x4C6D918: rb_gc_start (in /usr/lib/libruby1.8.so.1.8.7)
>> ==19064== by 0x4C586C1: (within /usr/lib/libruby1.8.so.1.8.7)
>> ==19064== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
>> ==19064== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
>> ==19064== by 0x4C569BA: (within /usr/lib/libruby1.8.so.1.8.7)
>> ==19064== by 0x4C52BD7: (within /usr/lib/libruby1.8.so.1.8.7)
>> ==19064== by 0x4C55A9E: (within /usr/lib/libruby1.8.so.1.8.7)
>> ==19064== by 0x4C58577: (within /usr/lib/libruby1.8.so.1.8.7)
>> ...........
>> Finished in 34.863395 seconds.
>>
>> 11 tests, 49 assertions, 0 failures, 0 errors
>>
>> The error occurs in test_apply which I assume is the sixth dot in that
>> list; there are no valgrind assertions associated with that particular
>> test.

I think I was a little hasty here. Some of the assertions that occur
before the tests start do involve Subversion code. I don't fully
understand how the ruby tests work, I assumed that each dot was a test
and that I could more-or-less ignore the valgrind assertions before
the dots. However these do look important:

==13541== Conditional jump or move depends on uninitialised value(s)
==13541== at 0x7211D2C: svn_md5__digest_to_cstring (md5.c:62)
==13541== by 0x7211E02: svn_md5_digest_to_cstring (md5.c:97)
==13541== by 0xB9A1159: _wrap_svn_txdelta_apply_wrapper (svn_delta.c:7289)
==13541== by 0x4C586C1: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C631E3: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C5430F: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58577: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C53C01: (within /usr/lib/libruby1.8.so.1.8.7)
==13541==
==13541== Use of uninitialised value of size 8
==13541== at 0x7211CAE: svn_md5__digest_to_cstring_display (md5.c:48)
==13541== by 0x7211D3A: svn_md5__digest_to_cstring (md5.c:63)
==13541== by 0x7211E02: svn_md5_digest_to_cstring (md5.c:97)
==13541== by 0xB9A1159: _wrap_svn_txdelta_apply_wrapper (svn_delta.c:7289)
==13541== by 0x4C586C1: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C631E3: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C5430F: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58577: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541==
==13541== Use of uninitialised value of size 8
==13541== at 0x7211CE2: svn_md5__digest_to_cstring_display (md5.c:49)
==13541== by 0x7211D3A: svn_md5__digest_to_cstring (md5.c:63)
==13541== by 0x7211E02: svn_md5_digest_to_cstring (md5.c:97)
==13541== by 0xB9A1159: _wrap_svn_txdelta_apply_wrapper (svn_delta.c:7289)
==13541== by 0x4C586C1: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C631E3: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C5430F: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58577: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541==
==13541== Invalid write of size 1
==13541== at 0x3E8E20E893: apr_md5_final (apr_md5.c:240)
==13541== by 0x7B11DFC: apply_window (text_delta.c:645)
==13541== by 0x7B12569: svn_txdelta_send_txstream (text_delta.c:838)
==13541== by 0xB997891: _wrap_svn_txdelta_send_txstream (svn_delta.c:3716)
==13541== by 0x4C586C1: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C631E3: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C5430F: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58577: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== Address 0x7fefdd2a0 is not stack'd, malloc'd or (recently) free'd
==13541==
==13541== Invalid write of size 1
==13541== at 0x3E8E20E89B: apr_md5_final (apr_md5.c:241)
==13541== by 0x7B11DFC: apply_window (text_delta.c:645)
==13541== by 0x7B12569: svn_txdelta_send_txstream (text_delta.c:838)
==13541== by 0xB997891: _wrap_svn_txdelta_send_txstream (svn_delta.c:3716)
==13541== by 0x4C586C1: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C631E3: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C5430F: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58577: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== Address 0x7fefdd2a1 is not stack'd, malloc'd or (recently) free'd
==13541==
==13541== Invalid write of size 1
==13541== at 0x3E8E20E8A3: apr_md5_final (apr_md5.c:242)
==13541== by 0x7B11DFC: apply_window (text_delta.c:645)
==13541== by 0x7B12569: svn_txdelta_send_txstream (text_delta.c:838)
==13541== by 0xB997891: _wrap_svn_txdelta_send_txstream (svn_delta.c:3716)
==13541== by 0x4C586C1: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C631E3: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C5430F: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58577: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== Address 0x7fefdd2a2 is not stack'd, malloc'd or (recently) free'd
==13541==
==13541== Invalid write of size 1
==13541== at 0x3E8E20E8AB: apr_md5_final (apr_md5.c:243)
==13541== by 0x7B11DFC: apply_window (text_delta.c:645)
==13541== by 0x7B12569: svn_txdelta_send_txstream (text_delta.c:838)
==13541== by 0xB997891: _wrap_svn_txdelta_send_txstream (svn_delta.c:3716)
==13541== by 0x4C586C1: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C631E3: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C5430F: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58577: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== Address 0x7fefdd2a3 is not stack'd, malloc'd or (recently) free'd
==13541==
==13541== Invalid write of size 1
==13541== at 0x3E8E20E8B1: apr_md5_final (apr_md5.c:244)
==13541== by 0x7B11DFC: apply_window (text_delta.c:645)
==13541== by 0x7B12569: svn_txdelta_send_txstream (text_delta.c:838)
==13541== by 0xB997891: _wrap_svn_txdelta_send_txstream (svn_delta.c:3716)
==13541== by 0x4C586C1: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C631E3: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C5430F: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58577: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== Address 0x7fefdd2a4 is not stack'd, malloc'd or (recently) free'd
==13541==
==13541== Invalid write of size 1
==13541== at 0x3E8E20E8BA: apr_md5_final (apr_md5.c:245)
==13541== by 0x7B11DFC: apply_window (text_delta.c:645)
==13541== by 0x7B12569: svn_txdelta_send_txstream (text_delta.c:838)
==13541== by 0xB997891: _wrap_svn_txdelta_send_txstream (svn_delta.c:3716)
==13541== by 0x4C586C1: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C631E3: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C5430F: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58577: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== Address 0x7fefdd2a5 is not stack'd, malloc'd or (recently) free'd
==13541==
==13541== Invalid write of size 1
==13541== at 0x3E8E20E8C1: apr_md5_final (apr_md5.c:246)
==13541== by 0x7B11DFC: apply_window (text_delta.c:645)
==13541== by 0x7B12569: svn_txdelta_send_txstream (text_delta.c:838)
==13541== by 0xB997891: _wrap_svn_txdelta_send_txstream (svn_delta.c:3716)
==13541== by 0x4C586C1: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C631E3: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C5430F: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58577: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== Address 0x7fefdd2a6 is not stack'd, malloc'd or (recently) free'd
==13541==
==13541== Invalid write of size 1
==13541== at 0x3E8E20E8C8: apr_md5_final (apr_md5.c:247)
==13541== by 0x7B11DFC: apply_window (text_delta.c:645)
==13541== by 0x7B12569: svn_txdelta_send_txstream (text_delta.c:838)
==13541== by 0xB997891: _wrap_svn_txdelta_send_txstream (svn_delta.c:3716)
==13541== by 0x4C586C1: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C631E3: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C5430F: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58577: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== Address 0x7fefdd2a7 is not stack'd, malloc'd or (recently) free'd
==13541==
==13541== Invalid write of size 1
==13541== at 0x3E8E20E8CE: apr_md5_final (apr_md5.c:248)
==13541== by 0x7B11DFC: apply_window (text_delta.c:645)
==13541== by 0x7B12569: svn_txdelta_send_txstream (text_delta.c:838)
==13541== by 0xB997891: _wrap_svn_txdelta_send_txstream (svn_delta.c:3716)
==13541== by 0x4C586C1: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C631E3: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C5430F: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58577: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== Address 0x7fefdd2a8 is not stack'd, malloc'd or (recently) free'd
==13541==
==13541== Invalid write of size 1
==13541== at 0x3E8E20E8D7: apr_md5_final (apr_md5.c:249)
==13541== by 0x7B11DFC: apply_window (text_delta.c:645)
==13541== by 0x7B12569: svn_txdelta_send_txstream (text_delta.c:838)
==13541== by 0xB997891: _wrap_svn_txdelta_send_txstream (svn_delta.c:3716)
==13541== by 0x4C586C1: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C631E3: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C5430F: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58577: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== Address 0x7fefdd2a9 is not stack'd, malloc'd or (recently) free'd
==13541==
==13541== Invalid write of size 1
==13541== at 0x3E8E20E8DE: apr_md5_final (apr_md5.c:250)
==13541== by 0x7B11DFC: apply_window (text_delta.c:645)
==13541== by 0x7B12569: svn_txdelta_send_txstream (text_delta.c:838)
==13541== by 0xB997891: _wrap_svn_txdelta_send_txstream (svn_delta.c:3716)
==13541== by 0x4C586C1: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C631E3: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C5430F: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58577: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== Address 0x7fefdd2aa is not stack'd, malloc'd or (recently) free'd
==13541==
==13541== Invalid write of size 1
==13541== at 0x3E8E20E8E5: apr_md5_final (apr_md5.c:251)
==13541== by 0x7B11DFC: apply_window (text_delta.c:645)
==13541== by 0x7B12569: svn_txdelta_send_txstream (text_delta.c:838)
==13541== by 0xB997891: _wrap_svn_txdelta_send_txstream (svn_delta.c:3716)
==13541== by 0x4C586C1: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C631E3: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C5430F: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58577: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== Address 0x7fefdd2ab is not stack'd, malloc'd or (recently) free'd
==13541==
==13541== Invalid write of size 1
==13541== at 0x3E8E20E8EB: apr_md5_final (apr_md5.c:252)
==13541== by 0x7B11DFC: apply_window (text_delta.c:645)
==13541== by 0x7B12569: svn_txdelta_send_txstream (text_delta.c:838)
==13541== by 0xB997891: _wrap_svn_txdelta_send_txstream (svn_delta.c:3716)
==13541== by 0x4C586C1: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C631E3: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C5430F: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58577: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== Address 0x7fefdd2ac is not stack'd, malloc'd or (recently) free'd
==13541==
==13541== Invalid write of size 1
==13541== at 0x3E8E20E8F4: apr_md5_final (apr_md5.c:253)
==13541== by 0x7B11DFC: apply_window (text_delta.c:645)
==13541== by 0x7B12569: svn_txdelta_send_txstream (text_delta.c:838)
==13541== by 0xB997891: _wrap_svn_txdelta_send_txstream (svn_delta.c:3716)
==13541== by 0x4C586C1: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C631E3: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C5430F: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58577: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== Address 0x7fefdd2ad is not stack'd, malloc'd or (recently) free'd
==13541==
==13541== Invalid write of size 1
==13541== at 0x3E8E20E8FB: apr_md5_final (apr_md5.c:254)
==13541== by 0x7B11DFC: apply_window (text_delta.c:645)
==13541== by 0x7B12569: svn_txdelta_send_txstream (text_delta.c:838)
==13541== by 0xB997891: _wrap_svn_txdelta_send_txstream (svn_delta.c:3716)
==13541== by 0x4C586C1: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C631E3: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C5430F: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58577: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== Address 0x7fefdd2ae is not stack'd, malloc'd or (recently) free'd
==13541==
==13541== Invalid write of size 1
==13541== at 0x3E8E20E902: apr_md5_final (apr_md5.c:255)
==13541== by 0x7B11DFC: apply_window (text_delta.c:645)
==13541== by 0x7B12569: svn_txdelta_send_txstream (text_delta.c:838)
==13541== by 0xB997891: _wrap_svn_txdelta_send_txstream (svn_delta.c:3716)
==13541== by 0x4C586C1: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C631E3: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C5430F: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58577: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== by 0x4C527DF: (within /usr/lib/libruby1.8.so.1.8.7)
==13541== Address 0x7fefdd2af is not stack'd, malloc'd or (recently) free'd

> Philip, please could you also run in valgring the "test_info.rb" test
> file, because it is in that file that the two errors occurred that were
> previously reported (on two different machine architectures), and I
> don't think we did anything in particular to fix them.

All the valgrind assertions for test_info.rb occur within the ruby
library code, typically:

==13547== Conditional jump or move depends on uninitialised value(s)
==13547== at 0x4C6C603: (within /usr/lib/libruby1.8.so.1.8.7)
==13547== by 0x4C6CF30: (within /usr/lib/libruby1.8.so.1.8.7)
==13547== by 0x4C6D99E: rb_newobj (in /usr/lib/libruby1.8.so.1.8.7)
==13547== by 0x4C8CD87: rb_node_newnode (in /usr/lib/libruby1.8.so.1.8.7)
==13547== by 0x4C97109: ruby_yyparse (in /usr/lib/libruby1.8.so.1.8.7)
==13547== by 0x4C9CC1B: (within /usr/lib/libruby1.8.so.1.8.7)
==13547== by 0x4CB443C: (within /usr/lib/libruby1.8.so.1.8.7)
==13547== by 0x4C65D0B: rb_load (in /usr/lib/libruby1.8.so.1.8.7)
==13547== by 0x4C663D9: rb_require_safe (in /usr/lib/libruby1.8.so.1.8.7)
==13547== by 0x4C586C1: (within /usr/lib/libruby1.8.so.1.8.7)
==13547== by 0x4C58829: (within /usr/lib/libruby1.8.so.1.8.7)
==13547== by 0x4C52911: (within /usr/lib/libruby1.8.so.1.8.7)

There are no valgrind assertions in Subversion code for test_info.rb.

One other thing that worries me is the runtime for the tests. On
compiled code, such as libsvn_subr/path-tests, running under valgrind
is usually 10 to 100 times slower but the ruby tests are only a little
bit slower, less than a factor of 2. I'm not sure why there is such a
difference between compiled C code and byte-compiled ruby code?
Perhaps valgrind does some sort of byte-compiling? Or perhaps it's to
do with how long the ruby tests take on my machine compared to Hyrum's
machine (528 seconds versus 18 seconds).

-- 
Philip
Received on 2010-01-12 22:07:19 CET

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