Subject: Problem with ap-perl and pthreads
To: None <,>
From: Bernd Ernesti <>
List: tech-pkg
Date: 08/15/2005 20:12:09

I get a
 Abort trap (core dumped) ${HTTPD} -t
when I try to check my apache (1.x) configuration with apachectl configtest.

It is enough to have that line in the httpd.conf:
 LoadModule perl_module /usr/pkg/lib/httpd/

Here is the gdb backtrace with current from yesterday (everything, kernel,
userland and pkgsrc):

(gdb) bt
#0  0xbdb0fe9b in kill () from /usr/lib/
#1  0xbdb11e1f in __libc_mutex_unlock () from /usr/lib/
#2  0xbdb92cd1 in __flockfile_internal () from /usr/lib/
#3  0xbdb6cb4b in fgets () from /usr/lib/
#4  0x08083bf3 in ap_cfg_getline ()
#5  0x08072c07 in ap_srm_command_loop ()
#6  0x08073179 in ap_process_resource_config ()
#7  0x08073863 in ap_read_config ()
#8  0x0807c031 in main ()
#9  0x080503a6 in ___start ()

        -lgcc_s.1 => /usr/lib/
        -lcrypt.0 => /usr/lib/
        -lmm.13 => /usr/pkg/lib/
        -lexpat.0 => /usr/pkg/lib/
        -lc.12 => /usr/lib/

Johnny C. Lam said it shouldn't be needed to link apache against -lpthread,
but that check succeeds if I link httpd against libphtread.

        -lgcc_s.1 => /usr/lib/
        -lcrypt.0 => /usr/lib/
        -lpthread.0 => /usr/lib/
        -lmm.13 => /usr/pkg/lib/
        -lexpat.0 => /usr/pkg/lib/
        -lc.12 => /usr/lib/