httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cahya Wirawan <cwira...@email.archlab.tuwien.ac.at>
Subject [users@httpd] apache-2.0.43 crash on AIX
Date Mon, 07 Oct 2002 10:48:08 GMT
Hi,
I have some problem to compile and run apache-2.0.43 on AIX 4.3.3
with gcc 2.95.3 .
I configure httpd with:
./configure \
  --with-ssl=/usr/local/ssl \
  --enable-layout=newopt \ # my own opt layout
  --enable-auth-dbm=shared \
  --enable-charset-lite=shared \
  --enable-cache=shared \
  --enable-ssl=shared \
  ... # another modules  
  --enable-so \
  --enable-static-htpasswd \
  --enable-static-htdigest \
  --enable-static-rotatelogs \
  --enable-static-logresolve \
  --enable-static-htdbm \
  --enable-static-ab \
  --enable-static-checkgid

 when I compiled the source, it failed on directory
support, the linker couldn't find htpasswd.o,htdigest.o and so on.
so because I see in the older version that this *.o in support directory
only a soft link to *.lo file, I just make soft links to each of this *.lo,
and then it works with compiling in support directory, and the rest of source.
but the real problem is after I have succesfully compiled the httpd binary,
this httpd crash immediately if I start it . gdb output say:
____________________
(gdb) r -t
Starting program: /opt/apache-2.0.43/sbin/httpd -t

Program received signal SIGSEGV, Segmentation fault.
0xd1832240 in pthread_mutexattr_init ()
(gdb) where
#0  0xd1832240 in pthread_mutexattr_init ()
#1  0xd1831e0c in apr_thread_mutex_create (mutex=0x2ff22a18, flags=804399560, pool=0x20023970)
    at thread_mutex.c:97
#2  0xd182f94c in apr_pool_initialize () at apr_pools.c:553
#3  0xd184a0a8 in apr_initialize () at start.c:93
#4  0xd184a034 in apr_app_initialize (argc=0x2ff229c8, argv=0x0, env=0x44) at start.c:74
#5  0x10000b5c in main (argc=2, argv=0x2ff22b80) at main.c:415
#6  0x100001dc in __start ()
_____________________
I don't know if the dump of httpd relevant is, but here it is,
"dump -Hv httpd" :
_____________________
/opt/apache-2.0.43/sbin/httpd:

                        ***Loader Section***
                      Loader Header Information
VERSION#         #SYMtableENT     #RELOCent        LENidSTR
0x00000001       0x0000040c       0x00001799       0x000001b9       

#IMPfilID        OFFidSTR         LENstrTBL        OFFstrTBL
0x0000000a       0x00017c6c       0x00004e97       0x00017e25       


                        ***Import File Strings***
INDEX  PATH                          BASE                MEMBER              
0      /work/dist/httpd-2.0.43/srclib/apr-util/xml/expat/lib:/usr/local/ssl/lib:/opt/apache-2.0.43/lib:/work/dist/httpd-2.0.43/srclib/apr-util/xml/expat/lib/.libs:/work/dist/httpd-2.0.43/srclib/apr/.libs:/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.3:/usr/local/lib:/usr/lib/threads:/usr/lib:/lib
                                        
1                                    libaprutil.a                            
2                                    libexpat.a                              
3                                    libapr.a                                
4                                    libnsl.a            shr.o               
5                                    libpthreads.a       shr_comm.o          
6                                    libpthreads.a       shr_xpg5.o          
7                                    libc_r.a            shr.o               
8                                    librtl.a            shr.o               
9                                    .             
______________________

and after searching in google, I got a hint that I have to use
option "-nostdlib /lib/crt0_r.o -lpthreads -lc_r -lgcc" in LDFLAGS, so I did
it, but then httpd crash when it tried to load any module, gdb output:
______________________
(gdb) r -t
Starting program: /opt/apache-2.0.43/sbin/httpd -t

Program received signal SIGSEGV, Segmentation fault.
0xd18c7b48 in ap_hook_check_user_id () at request.c:111
111     request.c: No such file or directory.
(gdb) where
#0  0xd18c7b48 in ap_hook_check_user_id () at request.c:111
#1  0xd18c8308 in register_hooks (p=0x2009b7f0) at mod_auth_dbm.c:321
#2  0x1000af48 in ap_register_hooks (m=0x2009b690, p=0x2002e020) at config.c:439
#3  0x1000b134 in ap_add_module (m=0x2009b690, p=0x2002e020) at config.c:510
#4  0x1000b274 in ap_add_loaded_module (mod=0x2009b690, p=0x0) at config.c:565
#5  0x1004c76c in load_module (cmd=0x2ff228b0, dummy=0x2009b690, 
    modname=0x2006dd50 "auth_dbm_module", filename=0x20030f80 " \006P \t\\\\\\220") at mod_so.c:323
#6  0x1000b944 in invoke_cmd (cmd=0x20002780, parms=0x2ff228b0, mconfig=0x2ff207f8, 
    args=0x2ff20892 "") at config.c:739
#7  0x1000d084 in execute_now (cmd_line=0x2006dcf8 "LoadModule", 
    args=0x2ff2086b "auth_dbm_module libexec/mod_auth_dbm.so", parms=0x2ff228b0, p=0xa, 
    ptemp=0x53, sub_tree=0x2ff207f8, parent=0xf083e868) at config.c:1345
#8  0x1000c40c in ap_build_config_sub (p=0x2002e020, temp_pool=0x200681f0, l=0x0, 
    parms=0x2ff228b0, current=0x2ff22860, curr_parent=0x2ff22864, conftree=0x200014cc)
    at config.c:942
#9  0x1000ca50 in ap_build_config (parms=0x2ff228b0, p=0x2002e020, temp_pool=0x200681f0, 
    conftree=0x200014cc) at config.c:1149
#10 0x1000d764 in ap_process_resource_config (s=0x20030d08, 
    fname=0x2006b1c8 "/opt/apache-2.0.43/conf/httpd.conf", conftree=0x200014cc, p=0x2002e020,

    ptemp=0x200681f0) at config.c:1554
#11 0x1000e1c8 in ap_read_config (process=0x2009b7f0, ptemp=0x200681f0, 
    filename=0x10059be4 "conf/httpd.conf", conftree=0x200014cc) at config.c:1832
#12 0x10001068 in main (argc=2, argv=0x2ff22b70) at main.c:557
#13 0x100001dc in __start ()
_______________________

so, can someone help me to solve this problem please, do I forget something 
here? I am really desperate.

thanks for your help,
Cahya Wirawan.




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message