Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#50 crash on zend module enumeration

closed
nobody
None
5
2003-10-31
2003-10-02
Anonymous
No

Hello.
Running php 4.3.3 sapi/cli/php -m with turck enabled gives segfault. Also my phpinfo() page has been crashing half way through output with turck enabled. I remove turck from php.ini and both 'php -m' and my phpinfo.php page works fine.

I build php with -g and show you 'bt full':
(gdb) bt full
#0 0x00610eec in ?? ()
No symbol table info available.
#1 0x0815595b in zend_hash_apply_deleter (ht=0x827d4c0, p=0x82cb2e8) at /root/php-4.3.3/_DEBUG/php-4.3.3/Zend/zend_hash.c:608
retval = (Bucket *) 0xbffff9cc
#2 0x081559cb in zend_hash_graceful_reverse_destroy (ht=0x827d4c0) at /root/php-4.3.3/_DEBUG/php-4.3.3/Zend/zend_hash.c:674
p = (Bucket *) 0x1
#3 0x08150f8e in zend_shutdown () at /root/php-4.3.3/_DEBUG/php-4.3.3/Zend/zend.c:558
No locals.
#4 0x0812ae63 in php_module_shutdown () at /root/php-4.3.3/_DEBUG/php-4.3.3/main/main.c:1284
No locals.
#5 0x0816101d in main (argc=2, argv=0xbffffa74) at /root/php-4.3.3/_DEBUG/php-4.3.3/sapi/cli/php_cli.c:875
exit_status = 1
c = 6360812
file_handle = {type = 1 '\001', filename = 0x0, opened_path = 0x195bba "\201Ă\n-", handle = {fd = 134666590, fp = 0x806d95e},
free_filename = 152 '\230'}
behavior = 1
orig_optind = 1
orig_optarg = 0x0
arg_free = 0x0
arg_excp = (char **) 0x1
script_file = 0x0
global_vars = {head = 0x0, tail = 0x0, size = 4, count = 0, dtor = 0, persistent = 0 '\0', traverse_ptr = 0x125bd4}
interactive = 0
module_started = 1
lineno = 0
exec_direct = 0x0
param_error = 0x0
hide_argv = 0
#6 0x004d5917 in __libc_start_main () from /lib/libc.so.6

Discussion

  • Logged In: NO

    also to mention i am using mmcache 2.4.1 with following option in php.ini enabled:

    mmcache.shm_size="0"
    mmcache.cache_dir="/var/cache/php"
    mmcache.enable="1"
    mmcache.optimizer="1"
    mmcache.check_mtime="1"
    mmcache.debug="0"
    mmcache.filter=""
    mmcache.shm_max="4096"
    mmcache.shm_ttl="3600"
    mmcache.shm_prune_period="0"
    mmcache.shm_only="0"
    mmcache.compress="1"

    Also, loading turck as 'extension=mmcache.so' instead of zend_extension, the 'php -m' crash goes away. I will see if the phpinfo.php crash goes away too, this problem takes a while before it begins to happen for some reasons.

     
  • Dmitry Stogov
    Dmitry Stogov
    2003-10-03

    Logged In: YES
    user_id=124551

    Have you compiled MMCache for this PHP build?
    Is php-cli and libphp from the same build?

    phpinfo() problem is depended from incorrect Apache restart
    use
    /etc/rc.d/init.d/httpd stop
    /etc/rc.d/init.d/httpd start
    instead of
    /etc/rc.d/init.d/httpd restart

     
  • Logged In: NO

    Hello,
    Yes, both libphp and the php cli are compiled with php 4.3.3 and then I used the phpize script to compile mmcache so I assume it is using correct version.

    I was hoping to deploy turck mmcache across some production web servers, however the log files are frequently rotated which requires use of 'apachectl graceful' restarts to re-open the log files - I do not like using stop/start/restart as this interrupts all requests in progress and annoys customers. If this is fixable somehow that would be great also :).

    Please let me know if you require more informations.

     
  • Logged In: NO

    FYI, the phpinfo.php crash started happening again after a few days. Is there any way to avoid having to do complete restart of server to avoid this bug??

     
  • Logged In: YES
    user_id=504719

    This is not mmcache bug, this bug was a bug in PHP. Latest
    4.3.4RC should be free of this bug.

     
  • Dmitry Stogov
    Dmitry Stogov
    2003-10-31

    • status: open --> closed