Hi,
I have a crash svn during a checkout. I am checking out through ra_dav
and in file libsvn_ra_dav\fetch.c and the function start_element the
crash happens in the following part of code:
case ELEM_open_directory:
att = get_attr(atts, "rev");
/* ### verify we got it. punt on error. */
base = SVN_STR_TO_REV(att);
if (rb->dirs->nelts == 0)
{
/* pathbuf has to live for the whole edit! */
pathbuf = svn_stringbuf_create("", rb->ras->pool);
/* During switch operations, we need to invalidate the
tree's version resource URLs in case something goes
wrong. */
if (rb->is_switch && rb->ras->callbacks->invalidate_wc_props)
{
CHKERR( rb->ras->callbacks->invalidate_wc_props
(rb->ras->callback_baton,
"", SVN_RA_DAV__LP_VSN_URL, rb->ras->pool) );
}
subpool = svn_pool_create(rb->ras->pool);
CHKERR( (*rb->editor->open_root)(rb->edit_baton, base,
subpool, &new_dir_baton) );
/* push the new baton onto the directory baton stack */
push_dir(rb, new_dir_baton, pathbuf, subpool);
}
else
{
name = get_attr(atts, "name"); <<<<<<<<<< this returns NULL
/* ### verify we got it. punt on error. */
svn_stringbuf_set(rb->namestr, name); <<<<<<<<<<< this crashes
parent_dir = &TOP_DIR(rb);
subpool = svn_pool_create(parent_dir->pool);
pathbuf = svn_stringbuf_dup(parent_dir->pathbuf, subpool);
svn_path_add_component(pathbuf, rb->namestr->data);
CHKERR( (*rb->editor->open_directory)(pathbuf->data,
parent_dir->baton, base,
subpool,
&new_dir_baton) );
/* push the new baton onto the directory baton stack */
push_dir(rb, new_dir_baton, pathbuf, subpool);
}
/* Property fetching is NOT implied in replacement. */
TOP_DIR(rb).fetch_props = FALSE;
break;
This crash happens in the current svn trunk (r6139). I have a crash at
the same place during merging. I susppect the crash originates in a
trunkcated server reply. The comment looks like someone knowns something
about that problem. Can anybody help me debugging the problem ?
Regards,
Patrick
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 4 12:45:17 2003