On Fri, Mar 14, 2014 at 10:53:05PM +0100, Danilo Piazzalunga wrote:
> Hi all,
> I am asking for confirmation before reporting a bug
> 
> Using Subversion 1.8.8 installed from Ubuntu 14.04 packages, svn
> crashed while performing a merge operation involving a replaced
> directory.
> 
> I already reportted this bug to Ubuntu Launchpad as
> https://bugs.launchpad.net/ubuntu/+source/subversion/+bug/1288829
> 
> I was able to reproduce the bug with Subversion 1.9.0-dev trunk
> (r1577730) with a self-contained test case (see attachment).
> 
> Can I report this to the Issue Tracker?


I can reproduce this crash using your script, with 1.8 and trunk.
Please file an issue. Thanks!

Backtrace using a trunk client:

### Merge from trunk.
assertion "delb != NULL" failed: file "subversion/libsvn_client/merge.c", line 
3128, function "merge_dir_deleted"
Abort trap (core dumped) 

#1  0x0000045fa5c1999a in abort () at /usr/src/lib/libc/stdlib/abort.c:70
#2  0x0000045fa5b97414 in __assert2 (file=Variable "file" is not available.
) at /usr/src/lib/libc/gen/assert.c:52
#3  0x0000045fa3e27486 in merge_dir_deleted (relpath=0x45fa2d5f0b0 "A/D/G", 
left_source=0x45f9b03c300, left_props=0x45f9b03c368, 
    dir_baton=0x45f9b03c310, processor=0x45fa5995c60, 
scratch_pool=0x45f9b03c028) at subversion/libsvn_client/merge.c:3128
#4  0x0000045fa3e5150b in diff_deleted_dir (path=0x45fa2d5f0b0 "A/D/G", 
pb=0x45fa6f430a0, scratch_pool=0x45f9b03c028)
    at subversion/libsvn_client/repos_diff.c:604
#5  0x0000045fa3e516a2 in delete_entry (path=0x45fa2d5f0b0 "A/D/G", 
base_revision=5, parent_baton=0x45fa6f430a0, pool=0x45fa2d5f028)
    at subversion/libsvn_client/repos_diff.c:649
#6  0x0000045fa7b4f6ad in delete_entry (path=0x45fa2d5f0b0 "A/D/G", 
base_revision=5, parent_baton=0x45fa83920d8, pool=0x45fa2d5f028)
    at subversion/libsvn_delta/cancel.c:95
#7  0x0000045fa7b4f6ad in delete_entry (path=0x45fa2d5f0b0 "A/D/G", 
base_revision=5, parent_baton=0x45fa83920c8, pool=0x45fa2d5f028)
    at subversion/libsvn_delta/cancel.c:95
#8  0x0000045f9ef4bbbe in update_entry (b=0x45f9c002410, s_rev=2, 
s_path=0x45fa2d5f0a0 "/trunk/A/D/G", s_entry=0x45fa2338228, 
    t_path=0x45fa2d5f0b8 "/trunk/A/D/G", t_entry=0x45fa2338910, 
dir_baton=0x45fa83920c8, e_path=0x45fa2d5f0b0 "A/D/G", info=0x0, 
    wc_depth=svn_depth_infinity, requested_depth=svn_depth_infinity, 
pool=0x45fa2d5f028) at subversion/libsvn_repos/reporter.c:1007
#9  0x0000045f9ef4cc89 in delta_dirs (b=0x45f9c002410, s_rev=2, 
s_path=0x45fa83920a0 "/trunk/A/D", t_path=0x45fa83920b8 "/trunk/A/D", 
    dir_baton=0x45fa83920c8, e_path=0x45fa83920b0 "A/D", start_empty=0, 
wc_depth=svn_depth_infinity, requested_depth=svn_depth_infinity, 
    pool=0x45fa8392028) at subversion/libsvn_repos/reporter.c:1325
#10 0x0000045f9ef4bebf in update_entry (b=0x45f9c002410, s_rev=2, 
s_path=0x45fa83920a0 "/trunk/A/D", s_entry=0x45f9d624328, 
    t_path=0x45fa83920b8 "/trunk/A/D", t_entry=0x45f9d624ba8, 
dir_baton=0x45fa6b9d0c8, e_path=0x45fa83920b0 "A/D", info=0x0, 
    wc_depth=svn_depth_infinity, requested_depth=svn_depth_infinity, 
pool=0x45fa8392028) at subversion/libsvn_repos/reporter.c:1037
#11 0x0000045f9ef4cc89 in delta_dirs (b=0x45f9c002410, s_rev=2, 
s_path=0x45fa6b9d0a0 "/trunk/A", t_path=0x45fa6b9d0b8 "/trunk/A", 
    dir_baton=0x45fa6b9d0c8, e_path=0x45fa6b9d0b0 "A", start_empty=0, 
wc_depth=svn_depth_infinity, requested_depth=svn_depth_infinity, 
    pool=0x45fa6b9d028) at subversion/libsvn_repos/reporter.c:1325
#12 0x0000045f9ef4bebf in update_entry (b=0x45f9c002410, s_rev=2, 
s_path=0x45fa6b9d0a0 "/trunk/A", s_entry=0x45fa0645210, 
    t_path=0x45fa6b9d0b8 "/trunk/A", t_entry=0x45fa06458f8, 
dir_baton=0x45f9c0030e8, e_path=0x45fa6b9d0b0 "A", info=0x0, 
    wc_depth=svn_depth_infinity, requested_depth=svn_depth_infinity, 
pool=0x45fa6b9d028) at subversion/libsvn_repos/reporter.c:1037
#13 0x0000045f9ef4cc89 in delta_dirs (b=0x45f9c002410, s_rev=2, 
s_path=0x45f9c002b00 "/trunk", t_path=0x45f9c0024e8 "/trunk", 
    dir_baton=0x45f9c0030e8, e_path=0x45f9f057447 "", start_empty=0, 
wc_depth=svn_depth_infinity, requested_depth=svn_depth_infinity, 
    pool=0x45f9c002028) at subversion/libsvn_repos/reporter.c:1325
#14 0x0000045f9ef4d176 in drive (b=0x45f9c002410, s_rev=2, info=0x45f9c002ac8, 
pool=0x45f9c002028) at subversion/libsvn_repos/reporter.c:1390
#15 0x0000045f9ef4d5ab in finish_report (b=0x45f9c002410, pool=0x45f9c002028) 
at subversion/libsvn_repos/reporter.c:1454
#16 0x0000045f9ef4da6b in svn_repos_finish_report (baton=0x45f9c002410, 
pool=0x45f9c002028) at subversion/libsvn_repos/reporter.c:1551
#17 0x0000045fa150843b in reporter_finish_report (reporter_baton=0x45f9c002698, 
pool=0x45f9c002028)
    at subversion/libsvn_ra_local/ra_plugin.c:255
#18 0x0000045fa3e2c040 in drive_merge_report_editor 
(target_abspath=0x45fa59951a0 "/tmp/repro-lp1288829/wc/branches/dev", 
    source=0x45f9c0020a0, children_with_mergeinfo=0x45fa6d9d478, 
processor=0x45fa5995c60, depth=svn_depth_infinity, merge_b=0x7f7ffffd0490, 
    scratch_pool=0x45f9c002028) at subversion/libsvn_client/merge.c:5767
#19 0x0000045fa3e32742 in do_mergeinfo_aware_dir_merge (result_catalog=0x0, 
conflict_report=0x7f7ffffd05a8, source=0x45fa59957d8, 
    target_abspath=0x45fa59951a0 "/tmp/repro-lp1288829/wc/branches/dev", 
children_with_mergeinfo=0x45fa6d9d478, processor=0x45fa5995c60, 
    depth=svn_depth_infinity, squelch_mergeinfo_notifications=0, 
merge_b=0x7f7ffffd0490, result_pool=0x45fa6d9d028, 
    scratch_pool=0x45fa6d9d028) at subversion/libsvn_client/merge.c:9374
#20 0x0000045fa3e32bbe in do_directory_merge (result_catalog=0x0, 
conflict_report=0x7f7ffffd05a8, source=0x45fa59957d8, 
    target_abspath=0x45fa59951a0 "/tmp/repro-lp1288829/wc/branches/dev", 
processor=0x45fa5995c60, depth=svn_depth_infinity, 
    squelch_mergeinfo_notifications=0, merge_b=0x7f7ffffd0490, 
result_pool=0x45fa6d9d028, scratch_pool=0x45fa6d9d028)
    at subversion/libsvn_client/merge.c:9529
#21 0x0000045fa3e335bf in do_merge (modified_subtrees=0x0, result_catalog=0x0, 
conflict_report=0x7f7ffffd08a8, use_sleep=0x7f7ffffd0788, 
    merge_sources=0x45fa5995450, target=0x45fa5995178, 
src_session=0x45f9cd240e0, sources_related=1, same_repos=1, ignore_mergeinfo=0, 
    diff_ignore_ancestry=0, force_delete=1, dry_run=0, record_only=0, 
record_only_paths=0x0, reintegrate_merge=0, 
    squelch_mergeinfo_notifications=0, depth=svn_depth_infinity, 
merge_options=0x0, ctx=0x45fa8d6f298, result_pool=0x45fa8d6e028, 
    scratch_pool=0x45fa8d6e028) at subversion/libsvn_client/merge.c:9874
#22 0x0000045fa3e39a9d in do_automatic_merge_locked 
(conflict_report=0x7f7ffffd08a8, merge=0x45fa59935c0, 
    target_abspath=0x45fa5993530 "/tmp/repro-lp1288829/wc/branches/dev", 
depth=svn_depth_unknown, diff_ignore_ancestry=0, force_delete=1, 
    record_only=0, dry_run=0, merge_options=0x0, ctx=0x45fa8d6f298, 
result_pool=0x45fa8d6e028, scratch_pool=0x45fa8d6e028)
    at subversion/libsvn_client/merge.c:12667
#23 0x0000045fa3e37ea3 in svn_client_merge_peg5 
(source_path_or_url=0x45fa5993418 "file:///tmp/repro-lp1288829/repos/trunk", 
    ranges_to_merge=0x0, source_peg_revision=0x7f7ffffd0930, 
target_wcpath=0x45fa5992310 "branches/dev", depth=svn_depth_unknown, 
    ignore_mergeinfo=0, diff_ignore_ancestry=0, force_delete=1, record_only=0, 
dry_run=0, allow_mixed_rev=0, merge_options=0x0, 
    ctx=0x45fa8d6f298, pool=0x45fa8d6e028) at 
subversion/libsvn_client/merge.c:11848
#24 0x0000045d98f1dc36 in run_merge (two_sources_specified=0, 
sourcepath1=0x45fa5993418 "file:///tmp/repro-lp1288829/repos/trunk", 
    peg_revision1={kind = svn_opt_revision_head, value = {number = 
4808846680320, date = 4808846680320}}, 
    sourcepath2=0x45fa5993418 "file:///tmp/repro-lp1288829/repos/trunk", 
targetpath=0x45fa5992310 "branches/dev", ranges_to_merge=0x0, 
    first_range_start={kind = svn_opt_revision_unspecified, value = {number = 
0, date = 0}}, first_range_end=
        {kind = svn_opt_revision_unspecified, value = {number = 0, date = 0}}, 
opt_state=0x7f7ffffd0b90, options=0x0, ctx=0x45fa8d6f298, 
    scratch_pool=0x45fa8d6e028) at subversion/svn/merge-cmd.c:108
#25 0x0000045d98f1e825 in svn_cl__merge (os=0x45fa8d6e520, 
baton=0x7f7ffffd0de0, pool=0x45fa8d6e028) at subversion/svn/merge-cmd.c:434
#26 0x0000045d98f2e82c in sub_main (exit_code=0x7f7ffffd108c, argc=7, 
argv=0x7f7ffffd10d0, pool=0x45fa8d6e028) at subversion/svn/svn.c:2943
#27 0x0000045d98f2eaeb in main (argc=7, argv=0x7f7ffffd10d0) at 
subversion/svn/svn.c:3029

Reply via email to