Subject: what's the deal with apache, pthreads, and mod_perl?
To: None <>
From: Chuck Cranor <>
List: tech-pkg
Date: 02/05/2006 15:42:20

    we've got a NetBSD 3.0/i386 system with pkgsrc compiled from 
scratch using a Jan 17th pkgsrc CVS tree.

    we are having the same problem reported by Dieter Baron back 
on Jan 3 --- httpd aborts if you try and enable mod_perl.  
has this been fixed?  if so, what do I update?  if not, has a 
PR been filed?

    you can force it to work by preloading libpthread (using


# ./apachetest start
[1]   Abort trap              ${HTTPD} -DSSL
/usr/pkg/sbin/apachectl startssl: httpd could not be started
# env LD_PRELOAD=/usr/lib/ ./apachetest start
/usr/pkg/sbin/apachectl startssl: httpd started
# env LD_PRELOAD=/usr/lib/ ./apachetest stop
/usr/pkg/sbin/apachectl stop: httpd stopped

   545 httpd    CALL  __sysctl(0xbfbfc574,2,0xbfbfc56c,0xbfbfc570,0,0)
   545 httpd    RET   __sysctl 0
   545 httpd    CALL  getpid
   545 httpd    RET   getpid 545/0x221, 7244/0x1c4c
   545 httpd    CALL  kill(0x221, SIGABRT)
   545 httpd    RET   kill 0
   545 httpd    PSIG  SIGABRT SIG_DFL
   545 httpd    NAMI  "httpd.core"

(gdb) where
#0  0xbdb150bb in kill () from /usr/lib/
#1  0xbdb1701b in __libc_mutex_unlock () from /usr/lib/
#2  0xbdb9431d in __flockfile_internal () from /usr/lib/
#3  0xbdb6e19b in fgets () from /usr/lib/
#4  0x08083f07 in ap_cfg_getline ()
#5  0x08072c4b in ap_srm_command_loop ()
#6  0x080731bd in ap_process_resource_config ()
#7  0x080738a7 in ap_read_config ()
#8  0x0807c111 in main ()
#9  0x080503c6 in ___start ()