DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18756>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18756

Apache core dump when using LDAP authentification.





------- Additional Comments From [EMAIL PROTECTED]  2003-09-26 13:31 -------
dumbo:~/apache-2.0.47/bin> ./apachectl startssl
Segmentation Fault - core dumped
dumbo:~/apache-2.0.47/bin> gdb httpd core
GNU gdb 5.3
Copyright 2002 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.9"...
Core was generated by `/home/backuppc/apache-2.0.47/bin/httpd -k start -DSSL'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /home/backuppc/apache-2.0.47/lib/libaprutil-0.so.0...done.
Loaded symbols for /home/backuppc/apache-2.0.47/lib/libaprutil-0.so.0
Reading symbols from /usr/lib/libldap.so.5...done.
Loaded symbols for /usr/lib/libldap.so.5
Reading symbols from /usr/local/lib/liblber.so.2...dbxread.c:1732:
gdb-internal-error: sect_index_data not initialized

An internal GDB error was detected.  This may make further
debugging unreliable.  Quit this debugging session? (y or n) n

Create a core file containing the current state of GDB? (y or n) n

Reading symbols from /home/backuppc/apache-2.0.47/lib/libexpat.so.0...done.
Loaded symbols for /home/backuppc/apache-2.0.47/lib/libexpat.so.0
Reading symbols from /home/backuppc/apache-2.0.47/lib/libapr-0.so.0...done.
Loaded symbols for /home/backuppc/apache-2.0.47/lib/libapr-0.so.0
Reading symbols from /usr/lib/libsendfile.so.1...done.
Loaded symbols for /usr/lib/libsendfile.so.1
Reading symbols from /usr/lib/librt.so.1...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /usr/lib/libm.so.1...done.
Loaded symbols for /usr/lib/libm.so.1
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
---Type <return> to continue, or q <return> to quit---
Reading symbols from /usr/lib/libresolv.so.2...done.
Loaded symbols for /usr/lib/libresolv.so.2
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libpthread.so.1...done.
Loaded symbols for /usr/lib/libpthread.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libmd5.so.1...done.
Loaded symbols for /usr/lib/libmd5.so.1
Reading symbols from /usr/lib/libaio.so.1...done.
Loaded symbols for /usr/lib/libaio.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from 
/usr/platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1
Reading symbols from /usr/lib/libthread.so.1...done.
Loaded symbols for /usr/lib/libthread.so.1
#0  0xfeeb2f68 in strlen () from /usr/lib/libc.so.1
(gdb) bt
#0  0xfeeb2f68 in strlen () from /usr/lib/libc.so.1
#1  0xff16c990 in apr_pstrdup () from 
/home/backuppc/apache-2.0.47/lib/libapr-0.so.0
#2  0x0002ee48 in mod_auth_ldap_parse_url ()
#3  0x0006a4ec in invoke_cmd ()
#4  0x0006bda0 in ap_walk_config_sub ()
#5  0x0006be9c in ap_walk_config ()
#6  0x0008bc2c in dirsection ()
#7  0x0006a36c in invoke_cmd ()
#8  0x0006bda0 in ap_walk_config_sub ()
#9  0x0006be9c in ap_walk_config ()
#10 0x0006d2fc in ap_process_config_tree ()
#11 0x000716d8 in main ()
(gdb) quit
dumbo:~/apache-2.0.47/bin>

.../httpd.conf
==============
<Directory "/home/backuppc/apache-2.0.47/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all

    AuthName "BackupPC Admin Page"
    AuthType Basic
    AuthLDAPEnabled on
    AuthLDAPAuthoritative on
    AuthLDAPURL ldap://...obfuscated...
    require valid-user
</Directory>

No matter what I put in the AuthLDAPURL config entry, the software segfaults on
startup. Looking at the backtrace, it is having trouble parsing the line for
some reason. This is Solaris 9 with Apache 2.0.47 compiled with GNU Make 3.80,
GCC 3.3 and OpenLDAP 2.1.22. I am not setting any entries related to LDAP
caching. The same config entries work fine on Apache 2.0.47 compiled on Linux
(RedHat 9, x86).

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to