Subject: pkg/28259: databases/php-ldap broken after PHP updates
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <j+nbsd@2004.salmi.ch>
List: pkgsrc-bugs
Date: 11/12/2004 17:52:00
>Number:         28259
>Category:       pkg
>Synopsis:       databases/php-ldap broken after PHP updates
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 12 17:52:00 +0000 2004
>Originator:     j+nbsd@2004.salmi.ch
>Release:        NetBSD 2.0_RC4
>Organization:
>Environment:
System: NetBSD bart.stasoft.ch 2.0_RC4 NetBSD 2.0_RC4 (GENERIC) #0: Thu Oct 14 23:41:00 CEST 2004 build@bart.stasoft.ch:/build/nbsd/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
Since I updated a NetBSD 2.0_RC4 i386 system using current pkgsrc
(apache-1.3.33, php-4.3.9nb1, ap-php-4.3.9nb1, php-gettext-4.3.9
and php-ldap-4.3.9) apache dumps core when starting. Removing the
line 'extension=ldap.so' from php.ini makes Apache startup succeed.
>How-To-Repeat:
Build php-ldap-4.3.9 (and Apache 1, PHP 4) and try to start Apache.

$ sudo /etc/rc.d/apache start                                                  
[1]   Abort trap (core dumped) ${HTTPD} -DSSL
/usr/pkg/sbin/apachectl startssl: httpd could not be started
$ gdb /usr/pkg/sbin/httpd httpd.core 
GNU gdb 5.3nb1
[...]
(gdb) bt
#0  0x48102feb in kill () from /usr/lib/libc.so.12
#1  0x481050af in __libc_mutex_unlock () from /usr/lib/libc.so.12
#2  0x48177003 in malloc () from /usr/lib/libc.so.12
#3  0x484ee017 in zend_hash_add_or_update ()
   from /usr/pkg/lib/httpd/mod_php4.so
#4  0x484f39c2 in zend_register_ini_entries ()
   from /usr/pkg/lib/httpd/mod_php4.so
#5  0x485b9891 in zm_startup_ldap () from /usr/pkg/lib/php/20020429/ldap.so
#6  0x4846dccc in php_dl () from /usr/pkg/lib/httpd/mod_php4.so
#7  0x484c6839 in php_load_function_extension_cb ()
   from /usr/pkg/lib/httpd/mod_php4.so
#8  0x484e5219 in zend_llist_apply () from /usr/pkg/lib/httpd/mod_php4.so
#9  0x484c6df6 in php_ini_delayed_modules_startup ()
   from /usr/pkg/lib/httpd/mod_php4.so
#10 0x484c2c5e in php_module_startup () from /usr/pkg/lib/httpd/mod_php4.so
#11 0x484fba93 in php_apache_startup () from /usr/pkg/lib/httpd/mod_php4.so
#12 0x484fc7de in php_init_handler () from /usr/pkg/lib/httpd/mod_php4.so
#13 0x080739f3 in ap_init_modules ()
#14 0x0807c35b in main ()
#15 0x080503b2 in ___start ()
>Fix:
Unknown, sorry.