[Date Prev][Date Next] [Chronological] [Thread] [Top]

2.0.7 slapd hangs using Pth-1.3.7 on RH (ITS#1033)



Full_Name: Carrie Coy
Version: 2.0.7
OS: RH6.1 (2.2.12-smp)
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (159.105.102.240)


Slapd hangs on first query with error: ldap_pvt_thread_pool_submit failed (-1)
===============================================================================
Linux corr5.doc.state.vt.us 2.2.12-20smp #9 SMP Thu Sep 28 10:31:41 EDT 2000
i68
6 unknown                                                                      

Configured pth 1.3.7 using:
  ./configure --enable-optimize --enable-tests --enable-syscall-soft
--enable-pth
ead  (passes all tests)

Configured db-3.1.17:
  ../dist/configure --enable-shared

Configured OpenLDAP 2.07 using:
  CPPFLAGS="-I/usr/local/BerkeleyDB.3.1/include -I/usr/local/include
-DPTH_SYSCALL_SOFT=1"
  LDFLAGS="-L/usr/local/BerkeleyDB.3.1/lib -L/usr/local/lib"                    

  export CPPFLAGS LDFLAGS                                                       

  ./configure  --with-threads=pth --enable-cleartext --enable-crypt
--with-ldbm-a
i=berkeley --enable-shared --with-gnu=ld --without-yielding-select --enable-rlo
kups=no  

Output from configure:
  Copyright 1998-2000 The OpenLDAP Foundation,  All Rights Reserved.            
 
Restrictions apply, see COPYRIGHT and LICENSE files.                           

Configuring OpenLDAP 2.0.7-Release ...                                         

checking host system type... i686-pc-linux-gnu                                 

checking target system type... i686-pc-linux-gnu                               

checking build system type... i686-pc-linux-gnu                                

checking for a BSD compatible install... /usr/bin/install -c                   

checking whether build environment is sane... yes                              

checking for mawk... mawk                                                      

checking whether make sets ${MAKE}... yes                                      

checking for working aclocal... found                                          

checking for working autoconf... found                                         

checking for working automake... found                                         

checking for working autoheader... found                                       

checking for working makeinfo... found                                         

checking for gnutar... no                                                      

checking for gtar... gtar                                                      

checking configure arguments... done                                           

checking for cc... cc                                                          

checking for ranlib... ranlib                                                  

checking for gcc... (cached) cc                                                

checking whether the C compiler (cc  -I/usr/local/BerkeleyDB.3.1/include
-I/usr/
local/include -DPTH_SYSCALL_SOFT=1 -L/usr/local/BerkeleyDB.3.1/lib
-L/usr/local/
lib) works... yes                                                              

checking whether the C compiler (cc  -I/usr/local/BerkeleyDB.3.1/include
-I/usr/
local/include -DPTH_SYSCALL_SOFT=1 -L/usr/local/BerkeleyDB.3.1/lib
-L/usr/local/
lib) is a cross-compiler... no                                                 

checking whether we are using GNU C... yes                                     

checking whether cc accepts -g... yes                                          

checking for ld used by GCC... /usr/bin/ld                                     

checking if the linker (/usr/bin/ld) is GNU ld... yes                          

checking for BSD-compatible nm... /usr/bin/nm -B                               

checking whether ln -s works... yes                                            

checking for object suffix... o                                                

checking for executable suffix... no                                           

checking for cc option to produce PIC... -fPIC                                 

checking if cc PIC flag -fPIC works... yes                                     

checking if cc supports -c -o file.o... yes                                    

checking if cc supports -c -o file.lo... yes                                   

checking if cc supports -fno-rtti -fno-exceptions ... yes                      

checking if cc static flag -static works... -static                            

checking if the linker (/usr/bin/ld) is GNU ld... yes                          

checking whether the linker (/usr/bin/ld) supports shared libraries... yes     

checking command to parse /usr/bin/nm -B output... ok                          

checking how to hardcode library paths into programs... immediate   
checking for /usr/bin/ld option to reload object files... -r        
checking dynamic linker characteristics... Linux ld.so              
checking if libtool supports shared libraries... yes                
checking whether to build shared libraries... yes                   
checking whether to build static libraries... yes                   
checking for objdir... .libs                                        
checking for dlopen in -ldl... yes                                  
checking for dlfcn.h... yes                                         
checking whether a program can dlopen itself... yes                 
checking whether a statically linked program can dlopen itself... no
creating libtool                                                    
not updating unwritable cache ./config.cache                        
checking for mawk... (cached) mawk                                  
checking whether ln works... yes                                    
checking whether ln -s works... (cached) yes                        
checking for sendmail... /usr/lib/sendmail                          
checking for vi... /bin/vi                                          
checking for finger... /usr/bin/finger                              
checking how to run the C preprocessor... cc -E                     
checking for AIX... no                                              
checking for POSIXized ISC... no                                    
checking for minix/config.h... no                             
checking for Cygwin environment... no                         
checking for mingw32 environment... no                        
checking for EMX OS/2 environment... no                       
checking for executable suffix... no                          
checking for object suffix... o                               
checking for be_app in -lbe... no                             
checking for cc option to accept ANSI C... none needed        
checking for cc depend flag... -M                             
checking for afopen in -ls... no                              
checking for EBCDIC... no                                     
checking for ANSI C header files... yes                       
checking for dirent.h that defines DIR... yes                 
checking for opendir in -ldir... no                           
checking for sys/wait.h that is POSIX.1 compatible... yes     
checking POSIX termios... yes                                 
checking whether use of TIOCGWINSZ requires sys/ioctl.h... yes
checking for arpa/inet.h... yes                               
checking for arpa/nameser.h... yes                            
checking for assert.h... yes                                  
checking for conio.h... no                                    
checking for crypt.h... yes                                   
checking for direct.h... no      
checking for errno.h... yes      
checking for fcntl.h... yes      
checking for filio.h... no       
checking for getopt.h... yes     
checking for grp.h... yes        
checking for io.h... no          
checking for libutil.h... no     
checking for limits.h... yes     
checking for locale.h... yes     
checking for netinet/tcp.h... yes
checking for malloc.h... yes     
checking for memory.h... yes     
checking for psap.h... no        
checking for pwd.h... yes        
checking for process.h... no     
checking for resolv.h... yes     
checking for sgtty.h... yes      
checking for shadow.h... yes     
checking for stddef.h... yes     
checking for string.h... yes     
checking for strings.h... yes    
checking for sysexits.h... yes                                           
checking for sys/file.h... yes                                           
checking for sys/filio.h... no                                           
checking for sys/errno.h... yes                                          
checking for sys/ioctl.h... yes                                          
checking for sys/param.h... yes                                          
checking for sys/resource.h... yes                                       
checking for sys/select.h... yes                                         
checking for sys/socket.h... yes                                         
checking for sys/syslog.h... yes                                         
checking for sys/time.h... yes                                           
checking for sys/types.h... yes                                          
checking for syslog.h... yes                                             
checking for termios.h... yes                                            
checking for unistd.h... yes                                             
checking for winsock.h... no                                             
checking for sigset in -lV3... no                                        
checking for socket... yes                                               
checking for select... yes                                               
checking types of arguments for select()... int,fd_set *,struct timeval *
checking for regex.h... yes                                              
checking for regfree... yes                                              
checking for compatible POSIX regex... yes          
checking for res_query... no                        
checking for res_query in -lbind... no              
checking for __res_query in -lbind... no            
checking for res_query in -lresolv... yes           
checking for getaddrinfo... yes                     
checking for gai_strerror... yes                    
checking INET6_ADDRSTRLEN... yes                    
checking for sys/un.h... yes                        
checking for openssl/ssl.h... no                    
checking for ssl.h... no                            
checking for ctime_r... yes                         
checking for gethostbyname_r... yes                 
checking for gethostbyaddr_r... yes                 
checking number of arguments of ctime_r... 2        
checking number of arguments of gethostbyname_r... 6
checking number of arguments of gethostbyaddr_r... 8
checking for pth.h... yes                           
checking for pth_version in -lpth... yes            
checking for thread specific errno... yes           
checking for thread specific h_errno... yes         
checking for db.h... yes                            
checking for Berkeley DB link (default)... no       
checking for Berkeley DB link (-ldb)... yes         
checking for Berkeley DB thread support... yes      
checking for openlog... yes                         
checking for termcap.h... yes                       
checking for ncurses.h... yes                       
checking for tputs in -ltermcap... yes              
checking for sasl.h... no                           
checking fetch(3) library... no                     
checking for readline/readline.h... yes             
checking for readline/history.h... yes              
checking for readline in -lreadline... yes          
checking for crypt... no                            
checking for crypt in -lcrypt... yes                
checking for setproctitle... no                     
checking for setproctitle in -lutil... no           
checking for ANSI C header files... (cached) disable
checking for mode_t... yes                          
checking for off_t... yes                           
checking for pid_t... yes                           
checking for ptrdiff_t... yes                       
checking return type of signal handlers... void     
checking for size_t... yes                                         
checking for ssize_t... yes                                        
checking for caddr_t... yes                                        
checking for socklen_t... yes                                      
checking for member st_blksize in aggregate type struct stat... yes
checking whether time.h and sys/time.h may both be included... yes 
checking whether struct tm is in sys/time.h or time.h... time.h    
checking for uid_t in sys/types.h... yes                           
checking for sig_atomic_t... yes                                   
checking struct passwd for pw_gecos... yes                         
checking struct passwd for pw_passwd... yes                        
checking if toupper() requires islower()... no                     
checking for working const... yes                                  
checking if compiler understands volatile... yes                   
checking whether byte ordering is bigendian... no                  
checking size of short... 2                                        
checking size of int... 4                                          
checking size of long... 4                                         
checking for 8-bit clean memcmp... yes                             
checking for strftime... yes                                       
checking for inet_aton()... yes                                    
checking for _spawnlp... no                                        
checking for _snprintf... no     
checking for _vsnprintf... no    
checking for vprintf... yes      
checking for vsnprintf... yes    
checking for vsprintf... yes     
checking for bcopy... yes        
checking for closesocket... no   
checking for chroot... yes       
checking for endgrent... yes     
checking for endpwent... yes     
checking for flock... yes        
checking for getdtablesize... yes
checking for getgrgid... yes     
checking for gethostname... yes  
checking for getpass... yes      
checking for getpassphrase... no 
checking for getpwuid... yes     
checking for getpwnam... yes     
checking for getspnam... yes     
checking for gettimeofday... yes 
checking for initgroups... yes   
checking for lockf... yes        
checking for memcpy... yes   
checking for memmove... yes  
checking for mkstemp... yes  
checking for pipe... yes     
checking for read... yes     
checking for recv... yes     
checking for recvfrom... yes 
checking for setpwfile... no 
checking for setgid... yes   
checking for setegid... yes  
checking for setsid... yes   
checking for setuid... yes   
checking for seteuid... yes  
checking for sigaction... yes
checking for signal... yes   
checking for sigset... yes   
checking for snprintf... yes 
checking for strdup... yes   
checking for strerror... yes 
checking for strpbrk... yes  
checking for strrchr... yes  
checking for strsep... yes   
checking for strstr... yes                
checking for strtol... yes                
checking for strtoul... yes               
checking for strspn... yes                
checking for sysconf... yes               
checking for waitpid... yes               
checking for wait4... yes                 
checking for write... yes                 
checking for send... yes                  
checking for sendto... yes                
checking for getopt... yes                
checking for tempnam... yes               
checking declaration of sys_errlist... yes
creating ./config.status                  
creating Makefile                         
...                                       
creating include/portable.h               
include/portable.h is unchanged           
creating include/ldap_features.h          
include/ldap_features.h is unchanged      
creating include/lber_types.h             
include/lber_types.h is unchanged        

[root@corr5 openldap-2.0.7]# ldd servers/slapd/slapd                           
        libdb-3.1.so => /usr/local/BerkeleyDB.3.1/lib/libdb-3.1.so (0x40013000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x40080000)                       
        libresolv.so.2 => /lib/libresolv.so.2 (0x400ad000)                     
        libpth.so.13 => /usr/local/lib/libpth.so.13 (0x400bc000)               
        libc.so.6 => /lib/libc.so.6 (0x400ce000)                               
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)                  
 
Output from           
   ./servers/slapd/slapd -h ldap://0.0.0.0:9009 -d1 
@(#) $OpenLDAP: slapd 2.0.7-Release (Fri Feb 16 11:59:28 EST 2001) $           
        carriec@corr5.doc.state.vt.us:/usr/local/src/openldap/openldap-2.0.7/ser
vers/slapd                                                                     
daemon_init: listen on ldap://0.0.0.0:9009                                     
daemon_init: 1 listeners to open...                                            
ldap_url_parse(ldap://0.0.0.0:9009)                                            
daemon: initialized ldap://0.0.0.0:9009                                        
daemon_init: 1 listeners opened                                                
slapd init: initiated server.                                                  
slapd startup: initiated.                                                      
slapd starting                                                                 
connection_get(9): got connid=0                                                
connection_read(9): checking for input on id=0                                 
ber_get_next                                                                   
ber_get_next: tag 0x30 len 12 contents:                                        
ldap_pvt_thread_pool_submit failed (-1)                                        
ber_get_next                                                                   
ber_get_next on fd 9 failed errno=11 (Resource temporarily unavailable)