pam problems, is -lpam needed ?

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: pam problems, is -lpam needed ?
Groups: php.dev 
Request: Send a blank email to php-dev+get-10502@lists.php.net to get a copy of this message
Hello, libpam caused big troubles for me... there is a strange interaction between libpam, libc, php and apache, which causes apache to coredump when php is linked against libpam. Here is a backtrace: #0 0x402a9fe4 in _pam_add_handler (pamh=0xbffff778, must_fail=1075294628, other=134943448, type=1024, actions=0x40179280, mod_path=0xbffff748 "", argc=3750201, argv=0x4014e26e, argvlen=1075283672) at pam_handlers.c:510 #1 0x4014e70d in gethostbyname_r () from /lib/libc.so.6 #2 0x4014d692 in gethostbyname () from /lib/libc.so.6 #3 0x806562d in ap_get_local_host () #4 0x8062ecc in ap_fini_vhost_config () #5 0x8055703 in ap_read_config () #6 0x805cb24 in ap_child_terminate () #7 0x805d2ad in main () #8 0x400b9282 in __libc_start_main () from /lib/libc.so.6 If I don't link php with pam, then everything is ok. Btw if I run this with libc with debugging symbols, the trace differs a bit: #0 0x400ba101 in __kill () from /usr/lib/libc_debug/libc.so.6 #1 0x400b9de8 in raise (sig=6) at ../sysdeps/posix/raise.c:27 #2 0x400bb441 in abort () at ../sysdeps/generic/abort.c:88 #3 0x400e601b in Letext () at ../sysdeps/posix/libc_fatal.c:56 #4 0x401460bc in __nss_next (ni=0xbffff6b4, fct_name=0x4016d276 "gethostbyname_r", fctp=0xbffff6b8, status=5, all_values=0) at nsswitch.c:175 #5 0x40149742 in __gethostbyname_r (name=0xbffff758 "hunderchild", resbuf=0x401761a4, buffer=0x80b1330 "W\030", buflen=1024, result=0xbffff724, h_errnop=0xbffff728) at ../nss/getXXbyYY_r.c:197 #6 0x40148692 in gethostbyname (name=0xbffff758 "hunderchild") at ../nss/getXXbyYY.c:137 #7 0x806562d in ap_get_local_host () #8 0x8062ecc in ap_fini_vhost_config () #9 0x8055703 in ap_read_config () #10 0x805cb24 in ap_child_terminate () #11 0x805d2ad in main () #12 0x400b4282 in __libc_start_main (main=0x805cfcc <main>, argc=2, argv=0xbffffd14, init=0x804f018 <_init>, fini=0x807fe4c <_fini>, rtld_fini=0x40009c30 <_dl_fini>, stack_end=0xbffffd0c) at ../sysdeps/generic/libc-start.c:90 Any ideas what might cause this ? And is there any point in having libpam linked against php ? Greg

« previous php.dev (#10502) next »