httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Priebe - Profihost AG <s.pri...@profihost.ag>
Subject Re: mod_http2 and Frequent wake-ups for mpm_event
Date Mon, 06 Feb 2017 12:25:04 GMT
Am 06.02.2017 um 11:56 schrieb Yann Ylavic:
> Hi Stefan,
> 
> On Mon, Feb 6, 2017 at 9:57 AM, Stefan Priebe - Profihost AG
> <s.priebe@profihost.ag> wrote:
>>
>> your last patch results in multiple crashes every second:
> 
> Sorry about that, the changes in mpm_event were incorrect (the mutex
> was cleared with the pool when recycled, hence its pointer was
> dangling).
> 
> New patch attached, this time tested with the httpd framework (where
> the previous patch segfaulted too).

Thanks but that one had crashed already once again.

This time:

error.log:
*** Error in `/usr/local/apache/bin/httpd': free(): invalid pointer:
0x00007f4bdc023dc0 ***

Core was generated by `/usr/local/apache/bin/httpd -DFOREGROUND'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  allocator_free (node=0x4480447f447e4466, allocator=0x7f4bc40008c0)
    at memory/unix/apr_pools.c:381
#0  allocator_free (node=0x4480447f447e4466, allocator=0x7f4bc40008c0)
    at memory/unix/apr_pools.c:381
#1  apr_pool_destroy (pool=0x7f4bc404a178) at memory/unix/apr_pools.c:856
#2  0x000055dab5531bff in task_destroy (m=0x7f4c4c00e8f8,
task=0x7f4bc404e210,
    called_from_master=0) at h2_mplx.c:396
#3  0x000055dab5532e6b in task_done_iter (ctx=<optimized out>,
    val=<optimized out>) at h2_mplx.c:1060
#4  0x00007f4c8b6965e6 in apr_hash_do (
    comp=comp@entry=0x55dab5545140 <ihash_iter>,
rec=rec@entry=0x7f4c6bfe6480,
    ht=<optimized out>) at tables/apr_hash.c:542
#5  0x000055dab5545b1f in h2_ihash_iter (ih=<optimized out>,
    fn=fn@entry=0x55dab5532e60 <task_done_iter>,
ctx=ctx@entry=0x7f4c4c00e8f8)
    at h2_util.c:315
#6  0x000055dab5533433 in h2_mplx_release_and_join (m=0x7f4c4c00e8f8,
    wait=0x7f4c4c00e8a0) at h2_mplx.c:615
#7  0x000055dab5538ab4 in session_pool_cleanup (data=0x7f4c04005c78)
    at h2_session.c:827
#8  0x00007f4c8b69f48e in run_cleanups (cref=0x7f4c4c00e878)
    at memory/unix/apr_pools.c:2352
#9  apr_pool_destroy (pool=0x7f4c4c00e808) at memory/unix/apr_pools.c:804
#10 0x00007f4c8b69f745 in apr_pool_clear (pool=0x7f4c78058198)
    at memory/unix/apr_pools.c:769
#11 0x000055dab5570668 in ap_push_pool (queue_info=0x7f4bc40008c0,
    pool_to_recycle=0xc4041f91) at fdqueue.c:234
#12 0x000055dab556b99a in process_lingering_close (cs=0x7f4c78058478,
    pfd=0x55dab6cf3fa8) at event.c:1513
#13 0x000055dab556f4d0 in listener_thread (thd=0x7f4bc40008c0,
    dummy=0x547dbb6874f83) at event.c:1837
#14 0x00007f4c8b46e0a4 in start_thread ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
#15 0x00007f4c8b1a362d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Greets,
Stefan

Mime
View raw message