Subject: Problem with ap-perl and pthreads
To: None <tech-userlevel@NetBSD.org,>
From: Bernd Ernesti <netbsd@lists.veego.de>
List: tech-userlevel
Date: 08/15/2005 20:12:09
Hi,

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/mod_perl.so

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

(gdb) bt
#0  0xbdb0fe9b in kill () from /usr/lib/libc.so.12
#1  0xbdb11e1f in __libc_mutex_unlock () from /usr/lib/libc.so.12
#2  0xbdb92cd1 in __flockfile_internal () from /usr/lib/libc.so.12
#3  0xbdb6cb4b in fgets () from /usr/lib/libc.so.12
#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 ()

httpd:
        -lgcc_s.1 => /usr/lib/libgcc_s.so.1
        -lcrypt.0 => /usr/lib/libcrypt.so.0
        -lmm.13 => /usr/pkg/lib/libmm.so.13
        -lexpat.0 => /usr/pkg/lib/libexpat.so.0
        -lc.12 => /usr/lib/libc.so.12

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

httpd:
        -lgcc_s.1 => /usr/lib/libgcc_s.so.1
        -lcrypt.0 => /usr/lib/libcrypt.so.0
        -lpthread.0 => /usr/lib/libpthread.so.0
        -lmm.13 => /usr/pkg/lib/libmm.so.13
        -lexpat.0 => /usr/pkg/lib/libexpat.so.0
        -lc.12 => /usr/lib/libc.so.12

Bernd