Menu

#79 Segmentation fault in mmcache_clean_shutdown

open
nobody
None
5
2004-02-10
2004-02-10
No

On an old old redhat I get a lot of these errors in
error_log:

[Tue Feb 10 20:18:13 2004] [notice] child pid 20220
exit signal Segmentation fault (11)
[Tue Feb 10 20:18:14 2004] [notice] child pid 20219
exit signal Segmentation fault (11)
[Tue Feb 10 20:18:15 2004] [notice] child pid 20129
exit signal Segmentation fault (11)
[Tue Feb 10 20:22:04 2004] [notice] child pid 20257
exit signal Segmentation fault (11)
[Tue Feb 10 20:22:08 2004] [notice] child pid 20256
exit signal Segmentation fault (11)
[Tue Feb 10 20:22:10 2004] [notice] child pid 20255
exit signal Segmentation fault (11)
[Tue Feb 10 20:22:12 2004] [notice] child pid 20254
exit signal Segmentation fault (11)
[Tue Feb 10 20:22:13 2004] [notice] child pid 20253
exit signal Segmentation fault (11)
[Tue Feb 10 20:22:14 2004] [notice] child pid 20252
exit signal Segmentation fault (11)
[Tue Feb 10 20:25:34 2004] [notice] child pid 20296
exit signal Segmentation fault (11)

GDB shows it happens during apache instance shutdown:

GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public
License, and you are
welcome to change it and/or distribute copies of it
under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show
warranty" for details.
This GDB was configured as "i386-redhat-linux"...

/usr/local/17496: No such file or directory.
Attaching to program: /pack/apache/bin/httpd, Pid 17496
Reading symbols from /lib/libpam.so.0...done.
Reading symbols from /usr/lib/libpspell.so.4...done.
Reading symbols from /usr/lib/libpq.so.2...done.
Reading symbols from
/pack/mysql-3.23.46/lib/mysql/libmysqlclient.so.10...done.
Reading symbols from /usr/lib/libldap.so.2...done.
Reading symbols from /usr/lib/liblber.so.2...done.
Reading symbols from /usr/lib/libgd.so.1...done.
Reading symbols from /usr/lib/libfreetype.so.6...done.
Reading symbols from /usr/lib/libpng.so.2...done.
Reading symbols from /usr/lib/libz.so.1...done.
Reading symbols from /usr/lib/libjpeg.so.62...done.
Reading symbols from /lib/libcrypt.so.1...done.
Reading symbols from /lib/libresolv.so.2...done.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libnsl.so.1...done.
Reading symbols from /lib/libdb.so.3...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /usr/lib/libltdl.so.3...done.
Reading symbols from
/usr/lib/libpspell-modules.so.1...done.
Reading symbols from
/usr/lib/libstdc++-libc6.1-1.so.2...done.
Reading symbols from /usr/lib/libssl.so.0...done.
Reading symbols from /usr/lib/libcrypto.so.0...done.
Reading symbols from /usr/kerberos/lib/libkrb5.so.2...done.
Reading symbols from
/usr/kerberos/lib/libk5crypto.so.2...done.
Reading symbols from
/usr/kerberos/lib/libcom_err.so.3...done.
Reading symbols from /usr/lib/libsasl.so.7...done.
Reading symbols from /usr/lib/libttf.so.2...done.
Reading symbols from /usr/X11R6/lib/libXpm.so.4...done.
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /lib/libnss_files.so.2...done.
Reading symbols from /lib/libnss_dns.so.2...done.
Reading symbols from
/pack/apache-1.3.22/libexec/mod_caucho.so...done.
Reading symbols from /pack/apache/libexec/libdav.so...done.
Reading symbols from
/usr/local/lib/php/extensions/no-debug-non-zts-20020429/mmcache.so...done.
Reading symbols from /usr/lib/gconv/ISO8859-1.so...done.
0x402da0b4 in semop () at
../sysdeps/unix/sysv/linux/semop.c:35
35 ../sysdeps/unix/sysv/linux/semop.c: No such
file or directory.
(gdb) cont
Continuing.

Program received signal SIGUSR1, User defined signal 1.
0x402da0b4 in semop () at
../sysdeps/unix/sysv/linux/semop.c:35
35 in ../sysdeps/unix/sysv/linux/semop.c
(gdb) bt
#0 0x402da0b4 in semop () at
../sysdeps/unix/sysv/linux/semop.c:35
#1 0x8144c32 in accept_mutex_on_sysvsem ()
#2 0x8146dd1 in child_main ()
#3 0x8147296 in make_child ()
#4 0x8147552 in perform_idle_server_maintenance ()
#5 0x8147966 in standalone_main ()
#6 0x8147dff in main ()
#7 0x4023f9cb in __libc_start_main () at
../sysdeps/generic/libc-start.c:122
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x406b1024 in mmcache_clean_shutdown () from
/usr/local/lib/php/extensions/no-debug-non-zts-20020429/mmcache.so
(gdb) bt
#0 0x406b1024 in mmcache_clean_shutdown () from
/usr/local/lib/php/extensions/no-debug-non-zts-20020429/mmcache.so
Cannot access memory at address 0x406b1024.
(gdb)

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Happens for me too.. everytime I RELOAD Apache (V2)

     
  • Aman Gupta

    Aman Gupta - 2004-03-28

    Logged In: YES
    user_id=338529

    Same problem here:

    Program received signal SIGSEGV, Segmentation fault.
    0x000000000045303e in _efree ()
    (gdb) bt
    #0 0x000000000045303e in _efree ()
    #1 0x0000002a96e076fb in mmcache_clean_request ()
    from
    /usr/lib/php/extensions/no-debug-non-zts-20020429/mmcache.so
    #2 0x0000002a96e04170 in zm_deactivate_mmcache ()
    from
    /usr/lib/php/extensions/no-debug-non-zts-20020429/mmcache.so
    #3 0x00000000004653d3 in module_registry_cleanup ()
    #4 0x000000000046789f in zend_hash_apply ()
    #5 0x0000000000461fdf in zend_deactivate_modules ()
    #6 0x000000000043c894 in php_request_shutdown ()
    #7 0x00000000004745aa in apache_php_module_main ()
    #8 0x0000000000436076 in ap_get_server_built ()
    #9 0x00000000005218ca in ap_invoke_handler ()
    #10 0x000000000053971f in ap_update_mtime ()
    #11 0x0000000000538ad3 in ap_process_request ()
    #12 0x0000000000531c16 in suck_in_ap_validate_password ()
    #13 0x00000000005306b4 in suck_in_ap_validate_password ()
    #14 0x00000000005308c5 in suck_in_ap_validate_password ()
    #15 0x000000000052f714 in suck_in_ap_validate_password ()
    #16 0x000000000052db4a in main ()

     
  • Xuefer

    Xuefer - 2004-05-15

    Logged In: YES
    user_id=185131

    apache2 with php4-3-6
    #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

     

Log in to post a comment.