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

Segfault in SVN 1.7.4

From: <svn_at_feb17.org>
Date: Mon, 12 Mar 2012 01:19:17 -0700

I started having issues with svn a while back and it took me a while 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.

OS: Linux clowder.feb17.org #1 SMP Mon Jun 13 19:49:05 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

Build details: $ ./configure --prefix=/tools/subersion-1.7.4 --with-apr=/tools/apr-1.3.9/ --with-apr-util=/tools/httpd-2.2.19-src/srclib/apr-util/ --with-apxs=/tools/httpd-2.2.19/bin/apxs --with-neon=/tools/neon-0.29.0 --with-sqlite=/tools/sqlite-3.7.10 --with-sasl=/tools/cyrus-sasl-2.1.25

No berkeley db.

Because I wasn't using this repository too often, I don't know what initiated the unhappiness. It's possibly a file
system change (it's running on secure linux and I suspect I had to move the repository due to disk failure so maybe a
permissions issue). The repository passes checks, can be browsed just fine, but when I commit or create a simple folder
(as in the traceback here), it crashes.

Any help greatly appreciated and if there's something I can do to get better information to you, let me know,


Darren Platt

Traceback below.

Starting program: /tools/httpd-2.2.19/bin/httpd -X -f /etc/httpd/conf/httpd.conf
[Thread debugging using libthread_db enabled]

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) 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>,
    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
Received on 2012-03-12 09:55:46 CET

This is an archived mail posted to the Subversion Dev mailing list.