ID:               26360
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mike at blackchaos dot net
-Status:           Open
+Status:           Feedback
 Bug Type:         LDAP related
 Operating System: Solaris 8 on SPARC
 PHP Version:      4.3.4
 New Comment:

Does it work if you compile php without --with-ldap ?
Does it work if you compile php without --with-snmp ?

And what net-snmp version do you have there? 
This actually is caused by snmp, not ldap..but I'd like
to know whether that linkage with openldap causes this.



Previous Comments:
------------------------------------------------------------------------

[2003-11-25 15:45:12] mike at blackchaos dot net

Output from gdb:

porn$ gdb sapi/cli/php
GNU gdb 5.0
Copyright 2000 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 "sparc-sun-solaris2.8"...(no debugging
symbols found)...
(gdb) run
Starting program: /usr/home/mike/www/php-4.3.4/sapi/cli/php
(no debugging symbols found)...(no debugging symbols found)...warning:
Lowest section in /usr/lib/libintl.so.1 is .hash at 00000074
(no debugging symbols found)...Assertion failed: BER_VALID( ber ), file
encode.c, line 471
                                                                       
                                                                   
Program received signal SIGABRT, Aborted.
0xfed9f8d8 in _libc_kill () from /usr/lib/libc.so.1
(gdb) bt
#0  0xfed9f8d8 in _libc_kill () from /usr/lib/libc.so.1
#1  0xfed35944 in abort () from /usr/lib/libc.so.1
#2  0xfed35be8 in _assert () from /usr/lib/libc.so.1
#3  0xff323c88 in ber_start_seq () from /usr/local/lib/liblber.so.2
#4  0xfeb2b52c in __BP_ber_printf () from /usr/lib/sldaputil.so.5
#5  0xfeb431b4 in simple_bind_nolock () from /usr/lib/sldaputil.so.5
#6  0xfec424f0 in openConnection () from /usr/lib/libsldap.so.1
#7  0xfec41998 in makeConnection () from /usr/lib/libsldap.so.1
#8  0xfec434cc in __s_api_getConnection () from /usr/lib/libsldap.so.1
#9  0xfec39b30 in get_current_session () from /usr/lib/libsldap.so.1
#10 0xfec3a8e0 in search_state_machine () from /usr/lib/libsldap.so.1
#11 0xfec3b3d8 in __ns_ldap_list () from /usr/lib/libsldap.so.1
#12 0xfec6a444 in _nss_ldap_lookup () from /usr/lib/nss_ldap.so.1
#13 0xfec69a6c in getbyname () from /usr/lib/nss_ldap.so.1
#14 0xfed49554 in nss_search () from /usr/lib/libc.so.1
#15 0xfefb9c08 in _switch_getservbyname_r () from /usr/lib/libnsl.so.1
#16 0xfef9b63c in _get_hostserv_inetnetdir_byname () from
/usr/lib/libnsl.so.1
#17 0xff045c34 in getservbyname_r () from /usr/lib/libsocket.so.1
#18 0xfeec24c8 in _init_snmp () from /usr/local/lib/libnetsnmp.so.5
#19 0xfeeb5298 in init_snmp () from /usr/local/lib/libnetsnmp.so.5
#20 0xd9064 in zm_startup_snmp ()
#21 0x19c388 in zend_startup_module ()
#22 0x167f48 in php_startup_extensions ()
#23 0x1684dc in php_module_startup ()
#24 0x1ae1b4 in main ()
(gdb)

------------------------------------------------------------------------

[2003-11-25 14:14:20] [EMAIL PROTECTED]

Okay..try this:

# gdb sapi/cli/php
(gdb) run
(gdb) bt

(dunno if you have gdb installed..but use the debugger you have there)



------------------------------------------------------------------------

[2003-11-25 13:16:39] mike at blackchaos dot net

Yes, all of the LDAP command line utilities work perfectly.

------------------------------------------------------------------------

[2003-11-25 02:50:17] [EMAIL PROTECTED]

Another test..do the openldap command line tools work?
For example 'ldapsearch' program?


------------------------------------------------------------------------

[2003-11-24 15:00:46] mike at blackchaos dot net

Results from 'make test':

Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).
 
mmcneil$ make test
Assertion failed: BER_VALID( ber ), file encode.c, line 471
Abort
make: [test] Error 134 (ignored)

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/26360

-- 
Edit this bug report at http://bugs.php.net/?id=26360&edit=1

Reply via email to