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

Crash of mod_dav_svn Apache thread in membuf_create() at subversion/libsvn_subr/string.c:58

From: Szőts Ákos <szotsaki_at_gmail.com>
Date: Sat, 18 Apr 2015 02:53:04 -0700 (PDT)

Dear list members,

When I update my repository, from time to time Apache threads crash with
Subversion functions appearing on the top.

I use SVN with mod_dav_svn via HTTPS connections.

Versions:
 OS: openSUSE 13.2 x64
 Kernel: 3.16.7
 apache2-prefork: 2.4.10
 subversion and subversion_server: 1.8.13
 
Backtrace:
#0 apr_palloc (pool=pool_at_entry=0x7fbc49587028, in_size=in_size_at_entry=48) at
memory/unix/apr_pools.c:684
#1 0x00007fbc4cd1e961 in membuf_create (pool=0x7fbc49587028, minimum_size=48,
size=<synthetic pointer>, data=<synthetic pointer>) at
subversion/libsvn_subr/string.c:58
#2 svn_stringbuf_create_ensure (blocksize=14, blocksize_at_entry=13,
pool=pool_at_entry=0x7fbc49587028) at subversion/libsvn_subr/string.c:379
#3 0x00007fbc4cd1e9c5 in svn_stringbuf_ncreate
(bytes=bytes_at_entry=0x7fff6437efa0 "id: 0.0.r0/17\ntype: dir\ncount: 0\ntext: 0
0 4 4 2d2977d1c96f487abe4a1e202dd03b4e\n", size=size_at_entry=13,
    pool=pool_at_entry=0x7fbc49587028) at subversion/libsvn_subr/string.c:395
#4 0x00007fbc4cd1d77e in stream_readline_chunky (pool=0x7fbc49587028,
stream=0x7fbc49588038, eol=0x7fbc4cac5c46 "\n", eof=0x7fff6437f044,
stringbuf=0x7fff6437f048) at subversion/libsvn_subr/stream.c:359
#5 stream_readline (pool=0x7fbc49587028, stream=0x7fbc49588038,
eol=0x7fbc4cac5c46 "\n", eof=0x7fff6437f044, stringbuf=0x7fff6437f048) at
subversion/libsvn_subr/stream.c:444
#6 svn_stream_readline (stream=stream_at_entry=0x7fbc49588038,
stringbuf=stringbuf_at_entry=0x7fff6437f048, eol=eol_at_entry=0x7fbc4cac5c46 "\n",
eof=eof_at_entry=0x7fff6437f044, pool=pool_at_entry=0x7fbc49587028)
    at subversion/libsvn_subr/stream.c:471
#7 0x00007fbc4caab025 in read_header_block
(headers=headers_at_entry=0x7fff6437f090, stream=stream_at_entry=0x7fbc49588038,
pool=pool_at_entry=0x7fbc49587028) at subversion/libsvn_fs_fs/fs_fs.c:1807
#8 0x00007fbc4cab4b0b in svn_fs_fs__read_noderev
(noderev_p=noderev_p_at_entry=0x7fff6437f128, stream=0x7fbc49588038,
pool=pool_at_entry=0x7fbc49587028) at subversion/libsvn_fs_fs/fs_fs.c:2398
#9 0x00007fbc4cab51fb in get_node_revision_body (pool=0x7fbc49587028,
id=0x7fbc49588620, fs=0x7fbc49590030, noderev_p=0x7fff6437f128) at
subversion/libsvn_fs_fs/fs_fs.c:2379
#10 svn_fs_fs__get_node_revision (noderev_p=noderev_p_at_entry=0x7fff6437f128,
fs=0x7fbc49590030, id=0x7fbc49588620, pool=0x7fbc49587028) at
subversion/libsvn_fs_fs/fs_fs.c:2546
#11 0x00007fbc4caa83fd in get_node_revision
(noderev_p=noderev_p_at_entry=0x7fff6437f158, node=node_at_entry=0x7fbc495885e8) at
subversion/libsvn_fs_fs/dag.c:163
#12 0x00007fbc4caa8704 in svn_fs_fs__dag_get_node
(node=node_at_entry=0x7fff6437f1c8, fs=fs_at_entry=0x7fbc49590030, id=0x7fbc495885b0,
pool=pool_at_entry=0x7fbc49587028) at subversion/libsvn_fs_fs/dag.c:196
#13 0x00007fbc4caa8ff3 in svn_fs_fs__dag_revision_root
(node_p=node_p_at_entry=0x7fff6437f1c8, fs=fs_at_entry=0x7fbc49590030,
rev=rev_at_entry=0, pool=pool_at_entry=0x7fbc49587028) at
subversion/libsvn_fs_fs/dag.c:612
#14 0x00007fbc4cac1383 in svn_fs_fs__revision_root (root_p=0x7fff6437f230,
fs=0x7fbc49590030, rev=0, pool=0x7fbc49587028) at
subversion/libsvn_fs_fs/tree.c:515
#15 0x00007fbc4d390538 in svn_repos_has_capability (repos=0x7fbc4958d490,
has=has_at_entry=0x7fff6437f290, capability=<optimized out>,
capability_at_entry=0x7fbc4d5c90d9 "mergeinfo", pool=0x7fbc4955c028)
    at subversion/libsvn_repos/repos.c:1635
#16 0x00007fbc4d5c2bfa in get_option (resource=0x7fbc4956ebe8,
elem=0x7fbc49551560, option=0x7fff6437f370) at
subversion/mod_dav_svn/version.c:252
#17 0x00007fbc500f9337 in dav_method_options (r=r_at_entry=0x7fbc4955c0a0) at
mod_dav.c:1892
#18 0x00007fbc500f9f08 in dav_handler (r=0x7fbc4955c0a0) at mod_dav.c:4709
#19 0x00007fbc542e1980 in ap_run_handler (r=0x7fbc4955c0a0) at config.c:173
#20 0x00007fbc542e1ec9 in ap_invoke_handler (r=r_at_entry=0x7fbc4955c0a0) at
config.c:437
#21 0x00007fbc542f691a in ap_process_async_request (r=r_at_entry=0x7fbc4955c0a0)
at http_request.c:317
#22 0x00007fbc542f6bf4 in ap_process_request (r=r_at_entry=0x7fbc4955c0a0) at
http_request.c:363
#23 0x00007fbc542f36a2 in ap_process_http_sync_connection (c=0x7fbc4fecc290)
at http_core.c:190
#24 ap_process_http_connection (c=0x7fbc4fecc290) at http_core.c:231
#25 0x00007fbc542eafa0 in ap_run_process_connection (c=0x7fbc4fecc290) at
connection.c:41
#26 0x00007fbc542eb388 in ap_process_connection (c=c_at_entry=0x7fbc4fecc290,
csd=<optimized out>) at connection.c:203
#27 0x00007fbc542fe72e in child_main (child_num_arg=child_num_arg_at_entry=2) at
prefork.c:704
#28 0x00007fbc542fe962 in make_child (s=0x7fbc54248448, slot=2) at
prefork.c:800
#29 0x00007fbc542ff5ae in perform_idle_server_maintenance (p=<optimized out>)
at prefork.c:902
#30 prefork_run (_pconf=<optimized out>, plog=<optimized out>, s=<optimized
out>) at prefork.c:1090
#31 0x00007fbc542c7dde in ap_run_mpm (pconf=0x7fbc5428b028,
plog=0x7fbc54250028, s=0x7fbc54248448) at mpm_common.c:94
#32 0x00007fbc542c1476 in main (argc=11, argv=0x7fff6437fad8) at main.c:777

Full backtrace:
#0 apr_palloc (pool=pool_at_entry=0x7fbc49587028, in_size=in_size_at_entry=48) at
memory/unix/apr_pools.c:684
        active = 0x30312037310a0a0a
        node = <optimized out>
        mem = <optimized out>
        size = 48
        free_index = <optimized out>
#1 0x00007fbc4cd1e961 in membuf_create (pool=0x7fbc49587028, minimum_size=48,
size=<synthetic pointer>, data=<synthetic pointer>) at
subversion/libsvn_subr/string.c:58
No locals.
#2 svn_stringbuf_create_ensure (blocksize=14, blocksize_at_entry=13,
pool=pool_at_entry=0x7fbc49587028) at subversion/libsvn_subr/string.c:379
        mem = <optimized out>
        new_string = <optimized out>
#3 0x00007fbc4cd1e9c5 in svn_stringbuf_ncreate
(bytes=bytes_at_entry=0x7fff6437efa0 "id: 0.0.r0/17\ntype: dir\ncount: 0\ntext: 0
0 4 4 2d2977d1c96f487abe4a1e202dd03b4e\n", size=size_at_entry=13,
pool=pool_at_entry=0x7fbc49587028) at subversion/libsvn_subr/string.c:395
        strbuf = <optimized out>
#4 0x00007fbc4cd1d77e in stream_readline_chunky (pool=0x7fbc49587028,
stream=0x7fbc49588038, eol=0x7fbc4cac5c46 "\n", eof=0x7fff6437f044,
stringbuf=0x7fff6437f048) at subversion/libsvn_subr/stream.c:359
        buffer = "id: 0.0.r0/17\ntype: dir\ncount: 0\ntext: 0 0 4 4
2d2977d1c96f487abe4a1e202dd03b4e\n"
        eol_pos = <optimized out>
        total_parsed = 0
        mark = 0x7fbc49588150
        numbytes = 80
        eol_len = 1
#5 stream_readline (pool=0x7fbc49587028, stream=0x7fbc49588038,
eol=0x7fbc4cac5c46 "\n", eof=0x7fff6437f044, stringbuf=0x7fff6437f048) at
subversion/libsvn_subr/stream.c:444
No locals.
#6 svn_stream_readline (stream=stream_at_entry=0x7fbc49588038,
stringbuf=stringbuf_at_entry=0x7fff6437f048, eol=eol_at_entry=0x7fbc4cac5c46 "\n",
eof=eof_at_entry=0x7fff6437f044, pool=pool_at_entry=0x7fbc49587028) at
subversion/libsvn_subr/stream.c:471
No locals.
#7 0x00007fbc4caab025 in read_header_block
(headers=headers_at_entry=0x7fff6437f090, stream=stream_at_entry=0x7fbc49588038,
pool=pool_at_entry=0x7fbc49587028) at subversion/libsvn_fs_fs/fs_fs.c:1807
        svn_err__temp = <optimized out>
        value = <optimized out>
        i = 0
        header_str = 0x7fbc4cd07653 <svn_io_file_seek+19>
        name = <optimized out>
        eof = 0
#8 0x00007fbc4cab4b0b in svn_fs_fs__read_noderev
(noderev_p=noderev_p_at_entry=0x7fff6437f128, stream=0x7fbc49588038,
pool=pool_at_entry=0x7fbc49587028) at subversion/libsvn_fs_fs/fs_fs.c:2398
        svn_err__temp = <optimized out>
        headers = 0x7fbc49588080
        value = <optimized out>
        noderev_id = <optimized out>
#9 0x00007fbc4cab51fb in get_node_revision_body (pool=0x7fbc49587028,
id=0x7fbc49588620, fs=0x7fbc49590030, noderev_p=0x7fff6437f128) at
subversion/libsvn_fs_fs/fs_fs.c:2379
        svn_err__temp = <optimized out>
        revision_file = 0x7fbc49588748
        err = <optimized out>
        is_cached = 0
#10 svn_fs_fs__get_node_revision (noderev_p=noderev_p_at_entry=0x7fff6437f128,
fs=0x7fbc49590030, id=0x7fbc49588620, pool=0x7fbc49587028) at
subversion/libsvn_fs_fs/fs_fs.c:2546
No locals.
#11 0x00007fbc4caa83fd in get_node_revision
(noderev_p=noderev_p_at_entry=0x7fff6437f158, node=node_at_entry=0x7fbc495885e8) at
subversion/libsvn_fs_fs/dag.c:163
        svn_err__temp = <optimized out>
        noderev = 0x0
#12 0x00007fbc4caa8704 in svn_fs_fs__dag_get_node
(node=node_at_entry=0x7fff6437f1c8, fs=fs_at_entry=0x7fbc49590030, id=0x7fbc495885b0,
pool=pool_at_entry=0x7fbc49587028) at subversion/libsvn_fs_fs/dag.c:196
        svn_err__temp = <optimized out>
        noderev = 0x7fbc49590030
#13 0x00007fbc4caa8ff3 in svn_fs_fs__dag_revision_root
(node_p=node_p_at_entry=0x7fff6437f1c8, fs=fs_at_entry=0x7fbc49590030,
rev=rev_at_entry=0, pool=pool_at_entry=0x7fbc49587028) at
subversion/libsvn_fs_fs/dag.c:612
        root_id = 0x7fbc495885b0
#14 0x00007fbc4cac1383 in svn_fs_fs__revision_root (root_p=0x7fff6437f230,
fs=0x7fbc49590030, rev=0, pool=0x7fbc49587028) at
subversion/libsvn_fs_fs/tree.c:515
        svn_err__temp = <optimized out>
        root_dir = 0x7fbc4cd131ce <svn_pool_create_ex+30>
        pool = 0x7fbc49587028
        rev = 0
        fs = 0x7fbc49590030
        root_p = 0x7fff6437f230
#15 0x00007fbc4d390538 in svn_repos_has_capability (repos=0x7fbc4958d490,
has=has_at_entry=0x7fff6437f290, capability=<optimized out>,
capability_at_entry=0x7fbc4d5c90d9 "mergeinfo", pool=0x7fbc4955c028) at
subversion/libsvn_repos/repos.c:1635
        svn_err__temp = <optimized out>
        err = <optimized out>
        root = 0x1300000010
        ignored = 0x7fbc49551748
        paths = 0x7fbc495811c0
        val = <optimized out>
#16 0x00007fbc4d5c2bfa in get_option (resource=0x7fbc4956ebe8,
elem=0x7fbc49551560, option=0x7fff6437f370) at
subversion/mod_dav_svn/version.c:252
        serr = <optimized out>
        has = 1230508376
        r = 0x7fbc4955c0a0
        repos_root_uri = 0x7fbc49551cc0 "/svn/skyrim"
#17 0x00007fbc500f9337 in dav_method_options (r=r_at_entry=0x7fbc4955c0a0) at
mod_dav.c:1892
        core_option = 0
        err = <optimized out>
        locks_hooks = <optimized out>
        vsn_hooks = <optimized out>
        binding_hooks = <optimized out>
        search_hooks = <optimized out>
        resource = 0x7fbc4956ebe8
        dav_level = <optimized out>
        allow = <optimized out>
        s = <optimized out>
        arr = <optimized out>
        elts = <optimized out>
        methods = <optimized out>
        vsn_options = {first = 0x7fbc49551660, last = 0x7fbc495516f0}
        body = {first = 0x7fbc49551cd0, last = 0x7fbc49551d18}
        t = <optimized out>
        text_size = <optimized out>
        result = <optimized out>
        i = <optimized out>
        uri_ary = <optimized out>
        doc = 0x7fbc49551400
        elem = 0x7fbc49551560
        err = <optimized out>
        extensions = <optimized out>
        entry = <optimized out>
#18 0x00007fbc500f9f08 in dav_handler (r=0x7fbc4955c0a0) at mod_dav.c:4709
        r = 0x7fbc4955c0a0
#19 0x00007fbc542e1980 in ap_run_handler (r=0x7fbc4955c0a0) at config.c:173
        pHook = 0x7fbc541ca0c8
        n = 4
        rv = 48
#20 0x00007fbc542e1ec9 in ap_invoke_handler (r=r_at_entry=0x7fbc4955c0a0) at
config.c:437
        handler = <optimized out>
        p = <optimized out>
        result = <optimized out>
        old_handler = 0x7fbc50101508 "dav-handler"
        ignore = <optimized out>
#21 0x00007fbc542f691a in ap_process_async_request (r=r_at_entry=0x7fbc4955c0a0)
at http_request.c:317
        access_status = 0
#22 0x00007fbc542f6bf4 in ap_process_request (r=r_at_entry=0x7fbc4955c0a0) at
http_request.c:363
        bb = <optimized out>
        b = <optimized out>
        c = 0x7fbc4fecc290
        rv = <optimized out>
#23 0x00007fbc542f36a2 in ap_process_http_sync_connection (c=0x7fbc4fecc290)
at http_core.c:190
        r = 0x7fbc4955c0a0
        cs = 0x0
        csd = 0x7fbc4fecc0a0
        mpm_state = 1
#24 ap_process_http_connection (c=0x7fbc4fecc290) at http_core.c:231
No locals.
#25 0x00007fbc542eafa0 in ap_run_process_connection (c=0x7fbc4fecc290) at
connection.c:41
        pHook = 0x7fbc541ca8b0
        n = 1
        rv = 48
#26 0x00007fbc542eb388 in ap_process_connection (c=c_at_entry=0x7fbc4fecc290,
csd=<optimized out>) at connection.c:203
        rc = <optimized out>
#27 0x00007fbc542fe72e in child_main (child_num_arg=child_num_arg_at_entry=2) at
prefork.c:704
        current_conn = 0x7fbc4fecc290
        csd = 0x7fbc4fecc0a0
        thd = 0x7fbc4fece0a0
        osthd = 140446842439552
        ptrans = 0x7fbc4fecc028
        allocator = 0x7fbc56670fd0
        status = <optimized out>
        i = <optimized out>
        lr = <optimized out>
        pollset = 0x7fbc4fece180
        sbh = 0x7fbc4fece178
        bucket_alloc = 0x7fbc4fec8028
        last_poll_idx = 1
        lockfile = <optimized out>
#28 0x00007fbc542fe962 in make_child (s=0x7fbc54248448, slot=2) at
prefork.c:800
        pid = 0
#29 0x00007fbc542ff5ae in perform_idle_server_maintenance (p=<optimized out>)
at prefork.c:902
        i = <optimized out>
        idle_count = <optimized out>
        ws = <optimized out>
        free_length = <optimized out>
        free_slots = {2, 11, 11, 12, 13, 14, 15, 16, 27, 28, 29, 30, 31, 32,
33, 34, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55}
        last_non_dead = <optimized out>
        total_non_dead = <optimized out>
#30 prefork_run (_pconf=<optimized out>, plog=<optimized out>, s=<optimized
out>) at prefork.c:1090
        status = 11
        pid = {pid = -1, in = 0x7fbc539cb5a0 <apr_pool_cleanup_null>, out =
0x0, err = 0x7fbc5428b028}
        child_slot = <optimized out>
        exitwhy = APR_PROC_SIGNAL
        processed_status = <optimized out>
        index = <optimized out>
        remaining_children_to_start = 0
        rv = <optimized out>
#31 0x00007fbc542c7dde in ap_run_mpm (pconf=0x7fbc5428b028,
plog=0x7fbc54250028, s=0x7fbc54248448) at mpm_common.c:94
        pHook = 0x7fbc541ca9d8
        n = 0
        rv = 48
#32 0x00007fbc542c1476 in main (argc=11, argv=0x7fff6437fad8) at main.c:777
        c = 68 'D'
        showcompile = 0
        showdirectives = 0
        confname = 0x7fff64380eae "/etc/apache2/httpd.conf"
        def_server_root = 0x7fbc543007e3 "/srv/www"
        temp_error_log = 0x0
        error = <optimized out>
        process = 0x7fbc5428d118
        pconf = 0x7fbc5428b028
        plog = 0x7fbc54250028
        ptemp = 0x7fbc5424c028
        pcommands = 0x7fbc5425a028
        opt = 0x7fbc5425a118
        rv = <optimized out>
        mod = 0x7fbc54521b18 <ap_prelinked_modules+56>
        opt_arg = 0x7fff64380eec "FOREGROUND"
        signal_server = <optimized out>

All the best,

kos
Received on 2015-04-18 13:12:48 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.