6.3-STABLE Apache 2.0 uses high CPU when restarted....

Forrest Aldrich forrie at forrie.com
Fri Feb 22 19:14:21 UTC 2008


Mel,

I recompiled php5 with debugging enabled; but it seems the FreeBSD 
php5-extensions build ignores this flag and compiles the extensions 
as-is.  No option in their makefile.

Anyway, here's the output... I don't think it really says much than before.

Thanks,

Forrest


# php -v
PHP Warning:  PHP Startup: pdf: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=1, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: session: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=1, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: bz2: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=1, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: calendar: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=1, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: ctype: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=1, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: curl: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=1, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: pcre: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=1, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: SimpleXML: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=1, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: SPL: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=1, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: dom: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=1, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: exif: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=1, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: filter: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=1, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: ftp: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=1, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: gd: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=1, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: gettext: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=1, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: gmp: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=1, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: hash: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=1, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: iconv: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=1, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: imap: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=1, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: json: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=1, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: mcrypt: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=1, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: mhash: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=1, thread-safety=0
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: mysql: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=1, thread-safety=0
These options need to match
 in Unknown on line 0
Segmentation fault: 11 (core dumped)
[root at mail /usr/local/lib/php]# gdb /usr/local/bin/php php.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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-marcel-freebsd"...
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.3...done.
Loaded symbols for /lib/libcrypt.so.3
Reading symbols from /lib/libm.so.4...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /usr/local/lib/libxml2.so.5...done.
Loaded symbols for /usr/local/lib/libxml2.so.5
Reading symbols from /lib/libz.so.3...done.
Loaded symbols for /lib/libz.so.3
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x2870a7c3 in ?? ()
(gdb) bt
#0  0x2870a7c3 in ?? ()
#1  0x285698fe in _UTF8_init () from /lib/libc.so.6
#2  0x285ee060 in _thread_autoinit_dummy_decl_stub () from /lib/libc.so.6
#3  0xbfbfe8d4 in ?? ()
#4  0x2828fd3e in elf_hash () from /libexec/ld-elf.so.1
#5  0x0813aa97 in php_error_cb (type=32, error_filename=0x827fb03 
"Unknown", error_lineno=0,
    format=0x8262067 "%s", args=0xbfbfe4e8 "L\235*\b") at 
/usr/ports/lang/php5/work/php-5.2.5/main/main.c:822
#6  0x0818e12d in zend_error (type=32, format=0x8262067 "%s")
    at /usr/ports/lang/php5/work/php-5.2.5/Zend/zend.c:1048
#7  0x0813a821 in php_verror (docref=0x0, params=0x8261ac1 "", type=32,
    format=0x8254848 "Unable to load dynamic library '%s' - %s", 
args=0xbfbfe58c "\230¡*\b\200\a+( \224*\b")
    at /usr/ports/lang/php5/work/php-5.2.5/main/main.c:723
#8  0x0813a886 in php_error_docref0 (docref=0x0, type=32,
    format=0x8254848 "Unable to load dynamic library '%s' - %s")
    at /usr/ports/lang/php5/work/php-5.2.5/main/main.c:735
#9  0x080c64b0 in php_dl (file=0x82a2f08, type=1, 
return_value=0xbfbfe5f0, start_now=0)
    at /usr/ports/lang/php5/work/php-5.2.5/ext/standard/dl.c:152
#10 0x081426e5 in php_load_function_extension_cb (arg=0x82a2f08)
    at /usr/ports/lang/php5/work/php-5.2.5/main/php_ini.c:235
#11 0x08183b5f in zend_llist_apply (l=0x829ee1c, func=0x81426b7 
<php_load_function_extension_cb>)
    at /usr/ports/lang/php5/work/php-5.2.5/Zend/zend_llist.c:375
#12 0x081433e1 in php_ini_register_extensions () at 
/usr/ports/lang/php5/work/php-5.2.5/main/php_ini.c:590
#13 0x0813cabb in php_module_startup (sf=0x829d620, 
additional_modules=0x0, num_additional_modules=0)
    at /usr/ports/lang/php5/work/php-5.2.5/main/main.c:1839
#14 0x081ff825 in php_cli_startup (sapi_module=0x829d620)
    at /usr/ports/lang/php5/work/php-5.2.5/sapi/cli/php_cli.c:358
#15 0x082004f1 in main (argc=2, argv=0xbfbfe8c8) at 
/usr/ports/lang/php5/work/php-5.2.5/sapi/cli/php_cli.c:717




More information about the freebsd-questions mailing list