Summary: | kdevelop crashes with svn 1.7 | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Michael <garrappachc> |
Component: | general | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | alinm.elena, b.brachaczek, b.buschinski, bugs, cobexer, disp.reg.bugs.kde, int.teo, loox, vivo75+kde, zeekec |
Priority: | VHI | ||
Version: | 4.2.3 | ||
Target Milestone: | 4.2.3 | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
svn1.7 test running svn info on a given folder svn1.7 test running svn info on a given folder New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi |
Description
Michael
2011-10-15 09:21:59 UTC
do you happen to use subversion 1.7? (In reply to comment #1) > do you happen to use subversion 1.7? Yeah, I do. I figured it out, that switching off the SVN plugin solves the problem. Expecting subversion-1.7 patch then ;) ok we really need to come up with a solution on this one *** Bug 284358 has been marked as a duplicate of this bug. *** Created attachment 64725 [details]
New crash information added by DrKonqi
kdevelop (4.2.60) on KDE Platform 4.7.2 (4.7.2) using Qt 4.7.4
- What I was doing when the application crashed:
rightclick project + svn >= 1.7 produce this crash
-- Backtrace (Reduced):
#6 svn_wc__db_wcroot_parse_local_abspath (wcroot=0x7f79b3ffe6a0, local_relpath=0x7f79b3ffe698, db=0x0, local_abspath=0x44acc00 "/home/ethiele/sandbox/itplatform/dss", result_pool=0x44ac588, scratch_pool=0x44ac588) at subversion/libsvn_wc/wc_db_wcroot.c:383
#7 0x00007f79ea652b33 in svn_wc__db_op_read_tree_conflict (tree_conflict=0x7f79b3ffe758, db=0x0, local_abspath=0x44acc00 "/home/ethiele/sandbox/itplatform/dss", result_pool=0x44ac588, scratch_pool=0x44ac588) at subversion/libsvn_wc/wc_db.c:5801
#8 0x00007f79ea61e6c8 in svn_wc__get_info (wc_ctx=0x7f7a088a1258, local_abspath=0x44acc00 "/home/ethiele/sandbox/itplatform/dss", depth=svn_depth_empty, fetch_excluded=0, fetch_actual_only=1, changelist_filter=0x0, receiver=0x7f79eab0e360 <wc_info_receiver>, receiver_baton=0x7f79b3ffe830, cancel_func=0x7f79ead8dfd0 <svn::Context::Data::onCancel(void*)>, cancel_baton=0x4016580, scratch_pool=0x44ac588) at subversion/libsvn_wc/info.c:456
#9 0x00007f79eab0e93b in svn_client_info3 (abspath_or_url=<optimized out>, peg_revision=0x7f79eafb4210, revision=<optimized out>, depth=svn_depth_empty, fetch_excluded=<optimized out>, fetch_actual_only=<optimized out>, changelists=0x0, receiver=0x7f79eab02eb0 <info_receiver_relpath_wrapper>, receiver_baton=0x7f79b3ffe930, ctx=0x40165b0, pool=0x44ac588) at subversion/libsvn_client/info.c:297
#10 0x00007f79eab05b78 in svn_client_info2 (path_or_url=0x7f79b43ae978 "/home/ethiele/sandbox/itplatform/dss", peg_revision=0x7f79eafb4210, revision=0x7f79eafb4210, receiver=<optimized out>, receiver_baton=<optimized out>, depth=svn_depth_empty, changelists=0x0, ctx=0x40165b0, pool=0x44ac588) at subversion/libsvn_client/deprecated.c:2339
*** Bug 283980 has been marked as a duplicate of this bug. *** Created attachment 64741 [details]
svn1.7 test running svn info on a given folder
@ anyone affected, i.e. running svn 1.7. please compile the small attached app and run it like:
mkdir build
cd build
cmake ..
make
./svn17-test /path/to/some/svn-project
does this crash? if so, please get the backtrace by running in gdb.
Program received signal SIGSEGV, Segmentation fault. svn_wc__get_info (wc_ctx=0x7fff00000001, local_abspath=0x605580 "/home/buscher/master2", depth=svn_depth_empty, fetch_excluded=0, fetch_actual_only=1, changelist_filter=0x0, receiver=0x7ffff7bb5720 <wc_info_receiver>, receiver_baton=0x7fffffffd5d0, cancel_func=0x400c38 <_ZNSt8ios_base4InitD1Ev@plt>, cancel_baton=0x60, scratch_pool=0x605118) at subversion/libsvn_wc/info.c:448 448 subversion/libsvn_wc/info.c: Datei oder Verzeichnis nicht gefunden. in subversion/libsvn_wc/info.c (gdb) bt #0 svn_wc__get_info (wc_ctx=0x7fff00000001, local_abspath=0x605580 "/home/buscher/master2", depth=svn_depth_empty, fetch_excluded=0, fetch_actual_only=1, changelist_filter=0x0, receiver=0x7ffff7bb5720 <wc_info_receiver>, receiver_baton=0x7fffffffd5d0, cancel_func=0x400c38 <_ZNSt8ios_base4InitD1Ev@plt>, cancel_baton=0x60, scratch_pool=0x605118) at subversion/libsvn_wc/info.c:448 #1 0x00007ffff7bb5cc2 in svn_client_info3 (abspath_or_url=<optimized out>, peg_revision=0x7fffffffd880, revision=<optimized out>, depth=svn_depth_empty, fetch_excluded=<optimized out>, fetch_actual_only=<optimized out>, changelists=0x0, receiver=0x7ffff7bab680 <info_receiver_relpath_wrapper>, receiver_baton=0x7fffffffd700, ctx=0x7fffffffd7c0, pool=0x605118) at subversion/libsvn_client/info.c:297 #2 0x00007ffff7bae23f in svn_client_info2 (path_or_url=0x605190 "/home/buscher/master2", peg_revision=0x7fffffffd880, revision=0x7fffffffd880, receiver=<optimized out>, receiver_baton=<optimized out>, depth=svn_depth_empty, changelists=0x0, ctx=0x7fffffffd7c0, pool=0x605118) at subversion/libsvn_client/deprecated.c:2339 #3 0x00007ffff7bae2b3 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=0x7fffffffd7c0, pool=0x605118) at subversion/libsvn_client/deprecated.c:2363 #4 0x0000000000400e8f in main (argc=2, argv=0x7fffffffd9b8) at /home/buscher/QT/svnTest/svn17-test/main.cpp:47 ok, quite clearly a bug in the svn lib then. anyone knows where to report these? Created attachment 64820 [details]
svn1.7 test running svn info on a given folder
@ all: please try this updated example app and see whether the crash persists
works fine ./svn17-test ~/master2/ info received: /home/buscher/master2 0x209a3a8 ok, this is the fix then, as pointed out by Stephan Sperling on the SVN-dev ML, many thanks to him. See also below. The question now is how to proceed, rapidsvn seems to be dead, hence we'll have to fix this code ourselves... Any takers?
On Sun, Oct 23, 2011 at 07:47:49PM +0200, Milian Wolff wrote:
> Hey there,
>
> please take a look at: https://bugs.kde.org/show_bug.cgi?id=284061
>
> It shows an apparent bug in libsvn from subversion 1.7 which triggers crashes
> in KDevelop and probably other applications. I've managed to write a minimal
> testcase that also triggers this behavior (see
> https://bugs.kde.org/show_bug.cgi?id=284061#c8 and the test code at
> https://bugs.kde.org/attachment.cgi?id=64741 ).
>
> How to proceed?
>
> http://subversion.apache.org/docs/community-guide/issues.html#reporting-bugs
> says I should first ask here, then go to the issue tracker, correct?
Your example code is not using the Subversion API properly.
You must initialize the client context, see svn_client_create_context().
The context your example code passes to svn_client_info() is not
initialized and therefore contains random garbage values.
You have to canonicalize paths before passing them into the Subversion
libraries. See svn_dirent_canonicalize(), use it instead of
svn_path_internal_style().
Created attachment 64992 [details]
New crash information added by DrKonqi
kdevelop (4.2.60) on KDE Platform 4.7.2 (4.7.2) using Qt 4.7.4
but I'm was starting a new project with git as source code versioner, why kdevelop crash in svn code?
-- Backtrace (Reduced):
#6 svn_wc__get_info (wc_ctx=0x0, local_abspath=0x3aee720 "/home/vivo/digikam-devel/core3", depth=svn_depth_empty, fetch_excluded=<optimized out>, fetch_actual_only=1, changelist_filter=0x0, receiver=0x7f2b6d7f4dc0 <wc_info_receiver>, receiver_baton=0x7f2b5e54d810, cancel_func=0x7f2b6da6ac10 <svn::Context::Data::onCancel(void*)>, cancel_baton=0x3a4e890, scratch_pool=0x3aee0c8) at subversion/libsvn_wc/info.c:447
#7 0x00007f2b6d7f538a in svn_client_info3 (abspath_or_url=<optimized out>, peg_revision=0x7f2b6dc8f130, revision=<optimized out>, depth=svn_depth_empty, fetch_excluded=<optimized out>, fetch_actual_only=<optimized out>, changelists=0x0, receiver=0x7f2b6d7ea780 <info_receiver_relpath_wrapper>, receiver_baton=0x7f2b5e54d950, ctx=0x3a4e8c0, pool=0x3aee0c8) at subversion/libsvn_client/info.c:297
#8 0x00007f2b6d7ed463 in svn_client_info2 (path_or_url=0x3b2cfd8 "/home/vivo/digikam-devel/core3", peg_revision=0x7f2b6dc8f130, revision=0x7f2b6dc8f130, receiver=<optimized out>, receiver_baton=<optimized out>, depth=svn_depth_empty, changelists=0x0, ctx=0x3a4e8c0, pool=0x3aee0c8) at subversion/libsvn_client/deprecated.c:2339
#9 0x00007f2b6d7ed4a3 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=0x3a4e8c0, pool=0x3aee0c8) at subversion/libsvn_client/deprecated.c:2363
#10 0x00007f2b6da68082 in svn::Client::info (this=<optimized out>, pathOrUrl=..., recurse=false, revision=<optimized out>, pegRevision=...) at /usr/src/debug/dev-util/kdevplatform-9999/kdevplatform-9999/plugins/subversion/kdevsvncpp/client_status.cpp:404
Created attachment 65733 [details]
New crash information added by DrKonqi
kdevelop (4.2.60) on KDE Platform 4.7.3 (4.7.3) "release 1" using Qt 4.8.0
- What I was doing when the application crashed:
simpler start and try to import a project... still crashes...
-- Backtrace (Reduced):
#6 svn_wc__get_info (wc_ctx=0x0, local_abspath=0x7f8c071846a8 "/home/alin/playground/c++/chapter4/ex22", depth=svn_depth_empty, fetch_excluded=<optimized out>, fetch_actual_only=1, changelist_filter=0x0, receiver=0x7f8c117cb970 <wc_info_receiver>, receiver_baton=0x7f8bbe817870, cancel_func=0x7f8c11a43930 <svn::Context::Data::onCancel(void*)>, cancel_baton=0x1ebe1d0, scratch_pool=0x7f8c07184028) at subversion/libsvn_wc/info.c:447
#7 0x00007f8c117cbf3a in svn_client_info3 (abspath_or_url=<optimized out>, peg_revision=0x7f8c11c68070, revision=<optimized out>, depth=svn_depth_empty, fetch_excluded=<optimized out>, fetch_actual_only=<optimized out>, changelists=0x0, receiver=0x7f8c117c1350 <info_receiver_relpath_wrapper>, receiver_baton=0x7f8bbe8179a0, ctx=0x1ebe200, pool=0x7f8c07184028) at subversion/libsvn_client/info.c:297
#8 0x00007f8c117c4023 in svn_client_info2 (path_or_url=0x1ef1f98 "/home/alin/playground/c++/chapter4/ex22", peg_revision=0x7f8c11c68070, revision=0x7f8c11c68070, receiver=<optimized out>, receiver_baton=<optimized out>, depth=svn_depth_empty, changelists=0x0, ctx=0x1ebe200, pool=0x7f8c07184028) at subversion/libsvn_client/deprecated.c:2339
#9 0x00007f8c117c4063 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=0x1ebe200, pool=0x7f8c07184028) at subversion/libsvn_client/deprecated.c:2363
#10 0x00007f8c11a40f22 in svn::Client::info (this=<optimized out>, pathOrUrl=..., recurse=false, revision=<optimized out>, pegRevision=...) at /usr/src/debug/kdevplatform-1.2.60.git.1321369595/plugins/subversion/kdevsvncpp/client_status.cpp:404
Git commit 74dec52749e3c3af2ac6492f50e2676128f35b27 by Milian Wolff. Committed on 18/11/2011 at 16:26. Pushed by mwolff into branch 'master'. fix svn api usage: use svn_dirent_canonicalize instead of svn_path_internal_style this was suggested by Stephan Sperling CCBUG: 284061 M +2 -2 plugins/subversion/kdevsvncpp/path.cpp http://commits.kde.org/kdevplatform/74dec52749e3c3af2ac6492f50e2676128f35b27 Git commit cc7f0798d314cdac14b90e427abe22e99c6bd591 by Milian Wolff. Committed on 18/11/2011 at 16:23. Pushed by mwolff into branch 'master'. properly initialize client context for compatibility with subversion API this should hopefully fix the crash with svn 1.7 in kdevelop, please test BUG: 284061 M +16 -16 plugins/subversion/kdevsvncpp/context.cpp http://commits.kde.org/kdevplatform/cc7f0798d314cdac14b90e427abe22e99c6bd591 Created attachment 67897 [details]
New crash information added by DrKonqi
kdevelop (4.2.3) on KDE Platform 4.7.4 (4.7.4) using Qt 4.8.0
- What I was doing when the application crashed:
Importing a project from _GIT_, whatever kdevelop tried to do with subversion crashed it, why it calls subversion on a project folder that is clearly git is something i don't know...
imported .kdev4 file:
[Project]
Name=TestGitProject
Manager=KDevGenericManager
VersionControl=kdevgit
-- Backtrace (Reduced):
#6 svn_wc__get_info (wc_ctx=0x0, local_abspath=0x7f4e0f6ad6b8 "/home/cobexer/Source/FullSync.git/FullSync", depth=svn_depth_empty, fetch_excluded=<optimized out>, fetch_actual_only=1, changelist_filter=0x0, receiver=0x7f4e0b695ef0 <wc_info_receiver>, receiver_baton=0x7f4dbbadf850, cancel_func=0x7f4e0b90e930 <svn::Context::Data::onCancel(void*)>, cancel_baton=0x2062720, scratch_pool=0x7f4e0f6ad028) at subversion/libsvn_wc/info.c:447
#7 0x00007f4e0b6964ba in svn_client_info3 (abspath_or_url=<optimized out>, peg_revision=0x7f4e0bb34070, revision=<optimized out>, depth=svn_depth_empty, fetch_excluded=<optimized out>, fetch_actual_only=<optimized out>, changelists=0x0, receiver=0x7f4e0b68b560 <info_receiver_relpath_wrapper>, receiver_baton=0x7f4dbbadf980, ctx=0x2062750, pool=0x7f4e0f6ad028) at subversion/libsvn_client/info.c:297
#8 0x00007f4e0b68e233 in svn_client_info2 (path_or_url=0x1d7dfb8 "/home/cobexer/Source/FullSync.git/FullSync", peg_revision=0x7f4e0bb34070, revision=0x7f4e0bb34070, receiver=<optimized out>, receiver_baton=<optimized out>, depth=svn_depth_empty, changelists=0x0, ctx=0x2062750, pool=0x7f4e0f6ad028) at subversion/libsvn_client/deprecated.c:2339
#9 0x00007f4e0b68e273 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=0x2062750, pool=0x7f4e0f6ad028) at subversion/libsvn_client/deprecated.c:2363
#10 0x00007f4e0b90bf22 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
|