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

Re: [#4840] Merge assertion failure in svn_sort__array_insert

From: Nathan Hartman <hartman.nathan_at_gmail.com>
Date: Fri, 3 Jan 2020 12:49:48 -0500

On Mon, Dec 30, 2019 at 12:28 PM Julian Foad <julianfoad_at_apache.org> wrote:
> I have added thorough random-input testing for svn_rangelist_merge2().

I assume that's the one added in r1872121,
test_mergeinfo_merge_random_non_validated_inputs().

I got a fail on it.

Quoth the function's docstring: "Unlike the tests with valid inputs,
this test expects many assertion failures. We don't care about those.
All we care about is that it does not crash."

It crashed:

[[[
svn_tests: E200006: Test crashed (run in debugger with '--allow-segfaults')
FAIL: mergeinfo-test 24: test rangelist merge random non-validated inputs
]]]

I know the code contains unfixed bugs that this test is meant to
expose. Sadly, the printf is commented so I don't know what the inputs
were:

+ /*
+ printf("testcase FAIL: %s / %s\n",
+ mergeinfo_to_string_debug(mx, iterpool),
+ mergeinfo_to_string_debug(my, iterpool));
+ svn_handle_error(err, stdout, FALSE);
+ */

Nathan
Received on 2020-01-03 18:50:09 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.