php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16589 php 4.2.0rc3+apache2.0.35+zlib crashes while displaying error
Submitted: 2002-04-13 11:20 UTC Modified: 2002-04-14 09:00 UTC
From: misiek at pld dot org dot pl Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.2.0RC3 OS: PLD Linux
Private report: No CVE-ID: None
 [2002-04-13 11:20 UTC] misiek at pld dot org dot pl
php 4.2.0rc3+apache2.0.35+zlib crashes while displaying error:

#0  0x007783eb in php_apache_sapi_log_message (
    msg=0xbfffeec0 "PHP Warning:  zlib: Unable to initialize module\nModule compiled with module API=20010901, debug=1, thread-safety=1\nPHP    compiled with module API=20010901, debug=0, thread-safety=1\nThese options need"...)
    at sapi_apache2.c:214
214             ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO | APLOG_STARTUP, 0, ctx->r->server, "%s", msg);
(gdb) bt
#0  0x007783eb in php_apache_sapi_log_message (
    msg=0xbfffeec0 "PHP Warning:  zlib: Unable to initialize module\nModule compiled with module API=20010901, debug=1, thread-safety=1\nPHP    compiled with module API=20010901, debug=0, thread-safety=1\nThese options need"...)
    at sapi_apache2.c:214
#1  0x00839856 in php_log_err (
    log_message=0xbfffeec0 "PHP Warning:  zlib: Unable to initialize module\nModule compiled with module API=20010901, debug=1, thread-safety=1\nPHP    compiled with module API=20010901, debug=0, thread-safety=1\nThese options need"..., tsrm_ls=0x1775ff0) at main.c:324
#2  0x00839d57 in php_error_cb (type=32, error_filename=0x8e8f2b "Unknown", error_lineno=0, 
    format=0x8f3de0 "%s: Unable to initialize module\nModule compiled with module API=%d, debug=%d, thread-safety=%d\nPHP    compiled with module API=%d, debug=%d, thread-safety=%d\nThese options need to match\n", 
    args=0xbffff758 "w?|") at main.c:459
#3  0x0082c917 in zend_error (type=32, 
    format=0x8f3de0 "%s: Unable to initialize module\nModule compiled with module API=%d, debug=%d, thread-safety=%d\nPHP    compiled with module API=%d, debug=%d, thread-safety=%d\nThese options need to match\n") at zend.c:682
#4  0x0088cd51 in php_dl (file=0x1d46ff0, type=1, return_value=0xbffff7c0, tsrm_ls=0x1775ff0) at dl.c:202
#5  0x0083f5c3 in php_load_function_extension_cb (arg=0x1d46ff0, tsrm_ls=0x1775ff0) at php_ini.c:188
#6  0x008244cd in zend_llist_apply (l=0x915f3c, func=0x83f58a <php_load_function_extension_cb>, tsrm_ls=0x1775ff0)
    at zend_llist.c:186
#7  0x0083faa4 in php_ini_delayed_modules_startup (tsrm_ls=0x1775ff0) at php_ini.c:313
#8  0x0083ba4b in php_module_startup (sf=0x77a020) at main.c:1001
#9  0x00778ca3 in php_apache_server_startup (pconf=0x4d4010, plog=0x513010, ptemp=0x516010, s=0x4fe118)
    at sapi_apache2.c:435
#10 0x080681e5 in ap_run_post_config (pconf=0x4d4010, plog=0x513010, ptemp=0x516010, s=0x4fe118) at config.c:130
#11 0x0806e545 in main (argc=2, argv=0xbffff9e4) at main.c:569
#12 0x003c0418 in __libc_start_main () from /lib/libc.so.6
(gdb) frame 0
#0  0x007783eb in php_apache_sapi_log_message (
    msg=0xbfffeec0 "PHP Warning:  zlib: Unable to initialize module\nModule compiled with module API=20010901, debug=1, thread-safety=1\nPHP    compiled with module API=20010901, debug=0, thread-safety=1\nThese options need"...)
    at sapi_apache2.c:214
214             ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO | APLOG_STARTUP, 0, ctx->r->server, "%s", msg);
(gdb) print ctx
$8 = (struct php_struct *) 0x0
(gdb) 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-13 11:21 UTC] misiek at pld dot org dot pl
Fix version.
 [2002-04-13 12:50 UTC] msopacua at idg dot nl
First update php.ini to reflect the correct extension dir. You're using a lib compiled with debug=1 and a php version without.

The extension dir, then changes.
 [2002-04-13 23:26 UTC] sniper@php.net
What if you remove the zlib.so from your php.ini?

 [2002-04-14 03:04 UTC] misiek at pld dot org dot pl
Doesn't change anything (category changed). It happens if _any_ of my php modules is loaded in php.ini...

My php is split in that way, see: ftp://ftp.pld.org.pl/test/i686/php* (ps. this is apache 1.3 version but I'm using this recompiled with apache 2.0.35).
 [2002-04-14 08:15 UTC] sniper@php.net
So if there are NO extensions loaded in php.ini, it doesn't
crash? Did you compile those extensions same time you compiled the php you're trying to load them in? 


 [2002-04-14 09:00 UTC] misiek at pld dot org dot pl
I was debugging apache2+php brokeness and main php module was compiled from the same build after few modifications in TSRM.

Anyway recompilation of whole php fixed my problem. Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 17:01:29 2024 UTC