#88 hang with V-2-4-6 (with detail desc)

open
nobody
None
5
2004-04-18
2004-04-05
Xuefer
No

apache 2
installed on 80 with php+mmcache
and another COPY installed on 81 with php but no
mmcache

after some hours viewing(live site)
both 80 81 stop response
netstat -anp shows:
ip:80 SYN_RECV
ip:80 SYN_RECV
etc...
but not SYN_RECV on 81

any other tcp port can be connected

strange

i try to stop the apache on 80 port
but i have to "apachectl stop" many times to have it
stopped
then start it

both 80 81 is ok

Discussion

  • Xuefer

    Xuefer - 2004-04-05

    Logged In: YES
    user_id=185131

    btw:
    when apache is fine, only 2 "stop"s will tell "httpd (no pid file)
    not running", that means the 1st stop is done quickly, my
    apache is fine
    and i used V-2-4-0 long ago, it's fine, haven't got this this
    problem

     
  • Xuefer

    Xuefer - 2004-04-18

    Logged In: YES
    user_id=185131

    when it happen, if i can get /server-status by chance, i see
    every process in W status, Waiting

     
  • Xuefer

    Xuefer - 2004-04-18
    • summary: hang with V-2-4-6 (detail desc) --> hang with V-2-4-6 (with detail desc)
     
  • Xuefer

    Xuefer - 2004-04-18

    Logged In: YES
    user_id=185131

    httpd error log
    [Sun Apr 18 19:18:47 2004] [notice] child pid 11500 exit
    signal Segmentation fault (11)
    [Sun Apr 18 19:19:00 2004] [notice] child pid 11290 exit
    signal Segmentation fault (11)
    [Sun Apr 18 19:19:23 2004] [notice] child pid 11495 exit
    signal Segmentation fault (11)
    [Sun Apr 18 19:19:26 2004] [notice] child pid 9373 exit signal
    Segmentation fault (11)
    [Sun Apr 18 19:20:33 2004] [error] server reached MaxClients
    setting, consider raising the MaxClients setting

    mmcahe_log with DEBUG defined
    [11856] Enter COMPILE
    [11856] compile_file: "/path_to_file/a.php"
    [11856] compile_file: compiling
    [11856] compile_file: end
    [11856] Leave COMPILE
    the above looks ok, but suddenly:
    [11857] Enter RINIT
    [11857] Leave RINIT
    [11857] Enter COMPILE
    [11857] compile_file: "/path_to_file/b.php"
    [11859] Enter RINIT
    [11859] Leave RINIT
    [11859] Enter COMPILE
    [11859] compile_file: "/path_to_file/c.php"
    [11861] Enter RINIT
    [11861] Leave RINIT
    [11861] Enter COMPILE
    [11861] compile_file: "/path_to_file/d.php"
    [11555] Enter RINIT
    [11555] Leave RINIT
    [11555] Enter COMPILE
    [11555] compile_file: "/path_to_file/e.php"

     
  • Xuefer

    Xuefer - 2004-04-19

    Logged In: YES
    user_id=185131

    there's so many:
    [Mon Apr 19 22:14:07 2004] [notice] child pid 4087 exit signal
    Segmentation fault (11)

    with V-2-4-6, but not so much with V-2-4-2

    the last php that don't have Enter RSHUTDOWN is the one i
    update frequently, thus, reload by mmcache frequently

     
  • Xuefer

    Xuefer - 2004-04-23

    Logged In: YES
    user_id=185131

    #0 mmcache_clean_request () at /home/oursky/src/turck-
    mmcache/mmcache.c:4349
    4349 p->entry->use_cnt--;
    Backtrace:
    ---------------

    #0 mmcache_clean_request () at /home/oursky/src/turck-
    mmcache/mmcache.c:4349
    #1 0x40741b87 in mmcache_crash_handler (dummy=12831)
    at /home/oursky/src/turck-mmcache/mmcache.c:4471
    #2 0x4020ba65 in pthread_sighandler (signo=11, ctx=
    {gs = 7, __gsh = 0, fs = 0, __fsh = 0, es = 43, __esh =
    0, ds = 43, __dsh = 49168, edi = 1090613296, esi =
    137979100, ebp = 3221223400, esp = 3221223376, ebx =
    1081445828, edx = 1081447072, ecx = 0, eax = 1, trapno =
    14, err = 4, eip = 1081350192, cs = 35, __csh = 0, eflags =
    66050, esp_at_signal = 3221223376, ss = 43, __ssh = 0,
    fpstate = 0xbffff550, oldmask = 2147483648, cr2 =
    137979104})
    at signals.c:97
    #3 <signal handler called>
    #4 mmcache_clean_request () at /home/oursky/src/turck-
    mmcache/mmcache.c:4349
    #5 0x407419e8 in mmcache_clean_shutdown ()
    at /home/oursky/src/turck-mmcache/mmcache.c:4414
    #6 0x402c553b in exit (status=0) at exit.c:54
    #7 0x080af34b in child_main ()
    #8 0x080ae144 in make_child ()
    #9 0x080ae468 in perform_idle_server_maintenance ()
    #10 0x080adaed in ap_mpm_run ()
    #11 0x080b56a1 in main ()
    #12 0x402b0657 in __libc_start_main (main=0x80b4cd0
    <main>, argc=3,
    ubp_av=0xbffffb04, init=0x806693c <_init>, fini=0x80d5540
    <_fini>,
    rtld_fini=0x4100dc54 <_dl_fini>, stack_end=0xbffffafc)
    at ../sysdeps/generic/libc-start.c:129

     
  • Xuefer

    Xuefer - 2004-04-23

    Logged In: YES
    user_id=185131

    i found that mmcache hang is because php crash too
    frequently
    but i "solved" the scripts that trigger the crash, no php crash
    now, but suddenly got a mmcache crash itself

    #0 _mm_malloc_nolock (mm=0x0, size=989855744)
    at /home/oursky/src/turck-mmcache/mm.c:983
    983 if (p->size == realsize) {
    Backtrace:
    ---------------

    #0 _mm_malloc_nolock (mm=0x0, size=989855744)
    at /home/oursky/src/turck-mmcache/mm.c:983

     
  • Xuefer

    Xuefer - 2004-05-15

    Logged In: YES
    user_id=185131

    used flock, "seems" solved the problem, but another crash
    bug:

    #0 0x4050de8b in _efree () from /www/modules/libphp4.so
    #1 0x4074b4d1 in mmcache_clean_request ()
    from /usr/local/lib/php/extensions/no-debug-non-zts-
    20020429/mmcache.so
    #2 0x40747aec in zm_deactivate_mmcache ()
    from /usr/local/lib/php/extensions/no-debug-non-zts-
    20020429/mmcache.so
    #3 0x4051faf9 in module_registry_cleanup ()
    from /www/modules/libphp4.so
    #4 0x40522699 in zend_hash_apply ()
    from /www/modules/libphp4.so
    #5 0x4051cf6f in zend_deactivate_modules ()
    from /www/modules/libphp4.so
    #6 0x404f0048 in php_request_shutdown ()
    from /www/modules/libphp4.so
    #7 0x40531296 in php_handler ()
    from /www/modules/libphp4.so
    #8 0x080af7e0 in ap_invoke_handler ()
    #9 0x0809164b in ap_process_request ()
    #10 0x0808bd2c in ap_process_http_connection ()
    #11 0x080bc385 in ap_process_connection ()
    #12 0x080af2da in child_main ()
    #13 0x080ae144 in make_child ()
    #14 0x080ae4bb in perform_idle_server_maintenance ()
    #15 0x080adaed in ap_mpm_run ()
    #16 0x080b56a1 in main ()
    #17 0x402b0657 in __libc_start_main (main=0x80b4cd0
    <main>, argc=3,
    ubp_av=0xbffffaf4, init=0x806693c <_init>, fini=0x80d5540
    <_fini>,
    rtld_fini=0x4100dc54 <_dl_fini>, stack_end=0xbffffaec)
    at ../sysdeps/generic/libc-start.c:129

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks