Subject: apache/ap-python core on NetBSD/i386 3.0_STABLE
To: None <pkgsrc-users@netbsd.org>
From: Gary Duzan <gary@duzan.org>
List: pkgsrc-users
Date: 07/31/2006 05:49:39
Since upgrading apache to 1.3.36 httpd cores on startup when
mod_python is configured; otherwise it comes up fine. The backtrace
is always:
#0 0xbdb150fb in kill () from /usr/lib/libc.so.12
#1 0xbdb1705b in __libc_mutex_unlock () from /usr/lib/libc.so.12
#2 0xbdb94261 in __flockfile_internal () from /usr/lib/libc.so.12
#3 0xbdb6daa7 in fgets () from /usr/lib/libc.so.12
#4 0x08083e73 in ap_cfg_getline ()
#5 0x08072baf in ap_srm_command_loop ()
#6 0x08073121 in ap_process_resource_config ()
#7 0x0807380b in ap_read_config ()
#8 0x0807c075 in main ()
#9 0x08050386 in ___start ()
I've tried rebuilding apache, rebuilding all the modules (I'm
also running ap-php5 and ap-ssl), disabling php5, updating to the
latest 3.0 branch code, rebuilding python23, updating ap-python to
2.7.11 (just changing version and distinfo; it builds fine), and
even building ap-python against python24, but it always does exactly
the same thing.
Any ideas what to try next? Thanks.
Gary Duzan
p.s. I tried recreating the problem on a NetBSD/amd64-current box, but
the build breaks:
/usr/pkg/sbin/apxs -I/usr2/pkgsrc-work/www/ap-python/work.x86_64/mod_python-2.7.11/src/include -I/usr/pkg/include/httpd -I/usr/pkg/include/python2.3 -c mod_python.o _apachemodule.o requestobject.o tableobject.o util.o serverobject.o connobject.o -lm /usr/pkg/lib/python2.3/config/libpython2.3.a -lpthread -lutil -lm
ld -shared -o mod_python.so mod_python.o _apachemodule.o requestobject.o tableobject.o util.o serverobject.o connobject.o -lm /usr/pkg/lib/python2.3/config/libpython2.3.a -lpthread -lutil -lm
/usr/bin/ld: mod_python.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
mod_python.o: could not read symbols: Bad value
apxs:Break: Command failed with rc=1
*** Error code 1
If I manually build with CC="apxs -c" it links, but still crashes,
and I don't get a backtrace.