You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Aaron Williams <Aa...@cavium.com> on 2012/01/24 08:29:23 UTC

Crash after upgrading to 1.7.2 from 1.6.1 in KDevelop

Hi all,

I upgraded Subversion in OpenSUSE 12.1 from the default 1.6.1 to 1.7.2 
compiled from sources.

After upgrading I am seeing kdevelop crash each time I right click in the 
editor.  It gives me the following stack trace:

Thread 2 (Thread 0x7f36f4b84700 (LWP 8151)):
[KCrash Handler]
#6  svn_wc__db_wcroot_parse_local_abspath (wcroot=0x7f36f4b835b0, 
local_relpath=0x7f36f4b835b8, db=0x0, local_abspath=0x7f3700d4b758 
"/home/aaronw/projects/tot/sdk/bootloader/u-boot/drivers/mmc/octeon_mmc.c", 
result_pool=0x7f3700d41028, scratch_pool=0x7f3700d41028) at 
subversion/libsvn_wc/wc_db_wcroot.c:383
#7  0x00007f36fcd18dbb in svn_wc__db_read_info (status=0x7f36f4b8370c, 
kind=0x7f36f4b83704, revision=0x0, repos_relpath=0x0, repos_root_url=0x0, 
repos_uuid=0x0, changed_rev=0x0, changed_date=0x0, changed_author=0x0, 
depth=0x0, checksum=0x0, target=0x0, original_repos_relpath=0x0, 
original_root_url=0x0, original_uuid=0x0, original_revision=0x0, lock=0x0, 
recorded_size=0x0, recorded_mod_time=0x0, changelist=0x0, conflicted=0x0, 
op_root=0x0, have_props=0x0, props_mod=0x0, have_base=0x0, have_more_work=0x0, 
have_work=0x0, db=0x0, local_abspath=0x7f3700d4b758 
"/home/aaronw/projects/tot/sdk/bootloader/u-boot/drivers/mmc/octeon_mmc.c", 
result_pool=0x7f3700d41028, scratch_pool=0x7f3700d41028) at 
subversion/libsvn_wc/wc_db.c:6711
#8  0x00007f36fccebeda in svn_wc__internal_walk_children (db=0x0, 
local_abspath=0x7f3700d4b758 "/home/aaronw/projects/tot/sdk/bootloader/u-
boot/drivers/mmc/octeon_mmc.c", show_hidden=0, changelist_filter=0x0, 
walk_callback=0x7f36fcce5570 <info_found_node_callback>, 
walk_baton=0x7f36f4b83790, walk_depth=svn_depth_empty, 
cancel_func=0x7f36fd44e5d0 <svn::Context::Data::onCancel(void*)>, 
cancel_baton=0x114bca90, scratch_pool=0x7f3700d41028) at 
subversion/libsvn_wc/node.c:697
#9  0x00007f36fcce6251 in svn_wc__get_info (wc_ctx=0x7f3714913598, 
local_abspath=0x7f3700d4b758 "/home/aaronw/projects/tot/sdk/bootloader/u-
boot/drivers/mmc/octeon_mmc.c", depth=svn_depth_empty, 
fetch_excluded=<optimized out>, fetch_actual_only=1, changelist_filter=0x0, 
receiver=0x7f36fd1d8f70 <wc_info_receiver>, receiver_baton=0x7f36f4b83870, 
cancel_func=0x7f36fd44e5d0 <svn::Context::Data::onCancel(void*)>, 
cancel_baton=0x114bca90, scratch_pool=0x7f3700d4b028) at 
subversion/libsvn_wc/info.c:453
#10 0x00007f36fd1d953a in svn_client_info3 (abspath_or_url=<optimized out>, 
peg_revision=0x7f36fd673070, revision=<optimized out>, depth=svn_depth_empty, 
fetch_excluded=<optimized out>, fetch_actual_only=<optimized out>, 
changelists=0x0, receiver=0x7f36fd1ce5e0 <info_receiver_relpath_wrapper>, 
receiver_baton=0x7f36f4b839a0, ctx=0x114bcac0, pool=0x7f3700d4b028) at 
subversion/libsvn_client/info.c:297
#11 0x00007f36fd1d12b3 in svn_client_info2 (path_or_url=0x7f36ec009988 
"/home/aaronw/projects/tot/sdk/bootloader/u-boot/drivers/mmc/octeon_mmc.c", 
peg_revision=0x7f36fd673070, revision=0x7f36fd673070, receiver=<optimized 
out>, receiver_baton=<optimized out>, depth=svn_depth_empty, changelists=0x0, 
ctx=0x114bcac0, pool=0x7f3700d4b028) at 
subversion/libsvn_client/deprecated.c:2339
#12 0x00007f36fd1d12f3 in svn_client_info (path_or_url=<optimized out>, 
peg_revision=<optimized out>, revision=<optimized out>, receiver=<optimized 
out>, receiver_baton=<optimized out>, recurse=<optimized out>, ctx=0x114bcac0, 
pool=0x7f3700d4b028) at subversion/libsvn_client/deprecated.c:2363
#13 0x00007f36fd44bb72 in svn::Client::info (this=<optimized out>, 
pathOrUrl=..., recurse=false, revision=<optimized out>, pegRevision=...) at 
/usr/src/debug/kdevplatform-1.2.3/plugins/subversion/kdevsvncpp/client_status.cpp:404
#14 0x00007f36fd43378d in SvnInternalInfoJob::run (this=0x114bbf40) at 
/usr/src/debug/kdevplatform-1.2.3/plugins/subversion/svninfojob.cpp:47
#15 0x00007f370c3d9d31 in ThreadWeaver::JobRunHelper::runTheJob 
(this=0x7f36f4b83dc0, th=0xeecde90, job=0x114bbf40) at 
/usr/src/debug/kdelibs-4.7.4/threadweaver/Weaver/Job.cpp:106
#16 0x00007f370c3d9e5c in ThreadWeaver::Job::execute (this=0x114bbf40, 
th=0xeecde90) at /usr/src/debug/kdelibs-4.7.4/threadweaver/Weaver/Job.cpp:135
#17 0x00007f370c3d953f in ThreadWeaver::ThreadRunHelper::run 
(this=0x7f36f4b83e40, parent=0x114bbd40, th=0xeecde90) at 
/usr/src/debug/kdelibs-4.7.4/threadweaver/Weaver/Thread.cpp:95
#18 0x00007f370c3d95fb in ThreadWeaver::Thread::run (this=0xeecde90) at 
/usr/src/debug/kdelibs-4.7.4/threadweaver/Weaver/Thread.cpp:142
#19 0x00007f3715641025 in QThreadPrivate::start (arg=0xeecde90) at 
thread/qthread_unix.cpp:331
#20 0x00007f3714077f05 in start_thread () from /lib64/libpthread.so.0
#21 0x00007f371436663d in clone () from /lib64/libc.so.6

Some how the database is NULL.

It looks like the develop svn code has not been updated in quite a while.

Note that I have also recompiled kdevelop and kdevplatform with the updated 
subversion but that made no difference.

-Aaron Williams
-- 
Aaron Williams <Aa...@cavium.com>
 (408) 943-7198


RE: Crash after upgrading to 1.7.2 from 1.6.1 in KDevelop

Posted by Bert Huijben <be...@qqmail.nl>.

> -----Original Message-----
> From: Aaron Williams [mailto:Aaron.Williams@cavium.com]
> Sent: dinsdag 24 januari 2012 8:29
> To: users@subversion.apache.org
> Subject: Crash after upgrading to 1.7.2 from 1.6.1 in KDevelop
> 
> Hi all,
> 
> I upgraded Subversion in OpenSUSE 12.1 from the default 1.6.1 to 1.7.2
> compiled from sources.
> 
> After upgrading I am seeing kdevelop crash each time I right click in the
> editor.  It gives me the following stack trace:
> 
> Thread 2 (Thread 0x7f36f4b84700 (LWP 8151)):
> [KCrash Handler]
> #6  svn_wc__db_wcroot_parse_local_abspath (wcroot=0x7f36f4b835b0,
> local_relpath=0x7f36f4b835b8, db=0x0, local_abspath=0x7f3700d4b758
> "/home/aaronw/projects/tot/sdk/bootloader/u-
> boot/drivers/mmc/octeon_mmc.c",
> result_pool=0x7f3700d41028, scratch_pool=0x7f3700d41028) at
> subversion/libsvn_wc/wc_db_wcroot.c:383

This looks like a bug in kdevelop to me. The DB parameter must be a valid
reference.

My best guess would be that kdevelop just initializes a
svn_wc_client_context_t with all 0s, while it should have used
svn_client_create_context (). In Subversion <= 1.6 this worked ok for some
operations although it was documented as *don't do this* since well before
1.0. Since Subversion 1.7 it will create this crash.

Googling for kdevelop and Subversion got me:
https://bugs.kde.org/show_bug.cgi?id=284061

Which validates my guess, and says it has been fixed since October 2011. So
you should probably upgrade your kdevelop.

	Bert