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

Re: Segfault in SVN 1.7.4

From: <svn_at_feb17.org>
Date: Mon, 12 Mar 2012 20:30:42 -0700

> svn_at_feb17.org writes:
>
> > to realize it was segfaulting on the linux side. I've upgraded to
> > 1.7.4 and the problem remains. I finally ran the operation with
> > apache runnning in GDB and it's a strlen operation that fails. A lot
> > of vars are optimized out so I didn't get much more information except
> > that it appears to be trying to report a problem but then dying while
> > reporting.
>

Answers to questions:
rep[0] is: {md5_checksum = 0x828c20, sha1_checksum = 0x0, revision = 33, offset = 750127, size = 43, expanded_size = 43, txn_id = 0x0, uniquifier = 0x0}

> Does the Subversion testsuite PASS?

Good suggestion, no it appears to fail a series of tests. There seems to be some problem
with format strings, not getting their actual values inserted. Full test log attached,

does that suggest any particular form of misadventure?

Darren

e.g.

EXPECTED:
--- foo2
+++ bar2
@@ -1,3 +0,0 @@
-Aa
-Bb
-Cc

ACTUAL:
--- foo2
+++ bar2
@@ -%ld,%ld +%ld,%ld (null)
-Aa
-Bb
-Cc

[root_at_clowder subversion-1.7.4-src]# make check
Running tests in auth-test [1/84].............................success
Running tests in cache-test [2/84]............................success
Running tests in checksum-test [3/84].........................success
Running tests in client-test [4/84]...........................FAILURE
Running tests in compat-test [5/84]...........................success
Running tests in config-test [6/84]...........................success
Running tests in db-test [7/84]...............................FAILURE
Running tests in diff-diff3-test [8/84]...FAILURE
Running tests in dirent_uri-test [9/84].......................success
Running tests in entries-compat-test [10/84]..................success
Running tests in error-test [11/84]...........................success
Running tests in fs-pack-test [12/84].........................FAILURE
Running tests in fs-test [13/84]..............................FAILURE
Running tests in hashdump-test [14/84]........................success
Running tests in locks-test [15/84]...........................FAILURE
Running tests in mergeinfo-test [16/84].......................success
Running tests in op-depth-test [17/84]........................FAILURE
Running tests in opt-test [18/84].............................success
Running tests in parse-diff-test [19/84]......................success
Running tests in path-test [20/84]............................success
Running tests in pristine-store-test [21/84]..................success
Running tests in ra-local-test [22/84]........................success
Running tests in random-test [23/84]..........................success
Running tests in repos-test [24/84]...........................FAILURE
Running tests in revision-test [25/84]........................success
Running tests in skel-test [26/84]............................success
Running tests in stream-test [27/84]..........................success
Running tests in string-test [28/84]..........................success
Running tests in subst_translate-test [29/84].................success
Running tests in target-test [30/84]..........................success
Running tests in time-test [31/84]............................success
Running tests in translate-test [32/84].......................success
Running tests in tree-conflict-data-test [33/84]..............success
Running tests in utf-test [34/84].............................success
Running tests in window-test [35/84]..........................success
Running tests in authz_tests.py [36/84]make: *** [check] Error 1

> > Program received signal SIGSEGV, Segmentation fault.
> > 0x0000003be1126d9f in __strlen_sse42 () from /lib64/libc.so.6
> > Missing separate debuginfos, use: debuginfo-install expat-2.0.1-11.fc15.x86_64 glibc-2.14-2.x86_64 keyutils-libs-1.2-7.fc15.x86_64 krb5-libs-1.9-7.fc15.x86_64 libcom_err-1.41.14-2.fc15.x86_64 libselinux-2.0.99-4.fc15.x86_64 libuuid-2.19.1-1.2.fc15.x86_64 libxml2-devel-2.7.8-6.fc15.x86_64 nss-softokn-freebl-3.12.10-1.fc15.x86_64 openssl-1.0.0d-1.fc15.x86_64 zlib-1.2.5-3.fc15.x86_64
> > (gdb)
> > (gdb) where
> > #0 0x0000003be1126d9f in __strlen_sse42 () from /lib64/libc.so.6
> > #1 0x00007ffff7ba0e71 in apr_vformatter (flush_func=0x7ffff7bab730 <psprintf_flush>, vbuff=0x7fffffffddd0,
> > fmt=0x7ffff58be937 "s", ap=0x7fffffffde38) at strings/apr_snprintf.c:974
> > #2 0x00007ffff7bace16 in apr_pvsprintf (pool=0x83b588, fmt=<optimized out>, ap=<optimized out>)
> > at memory/unix/apr_pools.c:1142
> > #3 0x00007ffff7bad0b7 in apr_psprintf (p=<optimized out>, fmt=<optimized out>) at memory/unix/apr_pools.c:2049
> > #4 0x00007ffff58aafd1 in representation_string (rep=0x82f390, format=<optimized out>,
>

> In gdb print rep[0].
{md5_checksum = 0x828c20, sha1_checksum = 0x0, revision = 33, offset = 750127, size = 43, expanded_size = 43, txn_id = 0x0, uniquifier = 0x0}

>
> > mutable_rep_truncated=<optimized out>, pool=0x83b588) at subversion/libsvn_fs_fs/fs_fs.c:2449
> > #5 0x00007ffff58ae971 in svn_fs_fs__write_noderev (pool=0x83b588, include_mergeinfo=1, format=3, noderev=0x82f2a0,
> > outfile=0x808528) at subversion/libsvn_fs_fs/fs_fs.c:2492
> > #6 svn_fs_fs__write_noderev (outfile=0x808528, noderev=0x82f2a0, format=3, include_mergeinfo=1, pool=0x83b588)
> > at subversion/libsvn_fs_fs/fs_fs.c:2469
> > #7 0x00007ffff58aec33 in svn_fs_fs__put_node_revision (fs=<optimized out>, id=<optimized out>, noderev=0x82f2a0,
> > fresh_txn_root=1, pool=0x83b588) at subversion/libsvn_fs_fs/fs_fs.c:2559
> > #8 0x00007ffff58b0e8a in create_new_txn_noderev_from_rev (pool=0x83b588, src=<optimized out>, txn_id=0x82f120 "33-23",
> > fs=0x826500) at subversion/libsvn_fs_fs/fs_fs.c:4717
> > #9 svn_fs_fs__create_txn (txn_p=0x7fffffffe0f8, fs=0x826500, rev=33, pool=0x83b588) at subversion/libsvn_fs_fs/fs_fs.c:4892
> > #10 0x00007ffff58b3c21 in svn_fs_fs__begin_txn (txn_p=0x7fffffffe0f8, fs=0x826500, rev=33, flags=2, pool=0x83b588)
> > at subversion/libsvn_fs_fs/fs_fs.c:7585
> > #11 0x00007ffff5cdaf66 in svn_repos_fs_begin_txn_for_commit2 (txn_p=0x7fffffffe0f8, repos=0x802048, rev=33,
> > revprop_table=0x82ed58, pool=0x83b588) at subversion/libsvn_repos/fs-wrap.c:95
> > #12 0x00007ffff5f02628 in dav_svn__create_txn (repos=0x82e7e0, ptxn_name=0x7fffffffe138, pool=0x83b588)
> > at subversion/mod_dav_svn/activity.c:264
> > #13 0x00007ffff5f07e55 in dav_svn__post_create_txn (resource=0x82e610, request_skel=<optimized out>, output=<optimized out>)
> > at subversion/mod_dav_svn/posts/create_txn.c:45
> > #14 0x00007ffff5f13332 in handle_post_request (output=0x83cab0, resource=0x82e610, r=0x83b600)
> > at subversion/mod_dav_svn/repos.c:4433
> > #15 dav_svn__method_post (r=0x83b600) at subversion/mod_dav_svn/repos.c:4462
> > #16 0x00000000004384e8 in ap_run_handler (r=0x83b600) at config.c:158
> > #17 0x000000000043894e in ap_invoke_handler (r=0x83b600) at config.c:376
> > #18 0x0000000000445730 in ap_process_request (r=0x83b600) at http_request.c:282
> > #19 0x0000000000442780 in ap_process_http_connection (c=0x7f25e0) at http_core.c:190
> > #20 0x000000000043eb08 in ap_run_process_connection (c=0x7f25e0) at connection.c:43
> > #21 0x0000000000449baf in child_main (child_num_arg=<optimized out>) at prefork.c:667
> > #22 0x000000000044a290 in make_child (s=0x67c838, slot=0) at prefork.c:712
> > #23 0x000000000044a9ee in ap_mpm_run (_pconf=<optimized out>, plog=<optimized out>, s=0x67c838) at prefork.c:988
> > #24 0x0000000000423fb4 in main (argc=4, argv=0x7fffffffe688) at main.c:739
> >
>
> --
> uberSVN: Apache Subversion Made Easy
> http://www.uberSVN.com

Received on 2012-03-13 04:31:23 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.