You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Ask Bjoern Hansen <as...@netcetera.dk> on 1999/02/18 09:10:44 UTC
apache/mod_perl sigsegvs in parse_log_string
I can't figure this one out. The httpd coredumps when it reads the
config file. I have tried everything like cleaning the sourcetree and
recompiling. It looks like apache without mod_perl works okey, but I'm
cc'ing new-httpd anyway since the backtrace ends in an apache module.
Latest modperl+apache (from cvs), pretty fresh redhat 5.2 system. I
compiled with this makepl_args.mod_perl file:
EVERYTHING=1
DO_HTTPD=1
PERL_TRACE=1
PERL_DEBUG=1
APACHE_PREFIX=~value/apache
APACHE_SRC=/usr/src/apache/apache-1.3
USE_APACI=1
ADD_MODULE=rewrite
apache coredumps in 'make start_httpd', like this:
[ask@embla modperl]$ gdb ../apache-1.3/src/httpd
... gdb blah blah ...
(gdb) run -f /usr/src/apache/modperl/t/conf/httpd.conf -X -d /usr/src/apache/modperl/t/conf
Starting program: /usr/src/apache/modperl/../apache-1.3/src/httpd -f /usr/src/apache/modperl/t/conf/httpd.conf -X -d /usr/src/apache/modperl/t/conf
Program received signal SIGSEGV, Segmentation fault.
0x8061076 in parse_log_string (p=0x8152b7c, s=0x0, err=0xbfffd7c0) at mod_log_config.c:627
627 while (*s) {
(gdb) bt
#0 0x8061076 in parse_log_string (p=0x8152b7c, s=0x0, err=0xbfffd7c0) at mod_log_config.c:627
#1 0x8061954 in add_custom_log (cmd=0xbffff8c8, dummy=0x0, fn=0x8440e9c "/dev/null", fmt=0x0, envclause=0x0)
at mod_log_config.c:942
#2 0x806198c in set_transfer_log (cmd=0xbffff8c8, dummy=0x0, fn=0x8440e9c "/dev/null") at mod_log_config.c:951
#3 0x8099694 in invoke_cmd (cmd=0x8126230, parms=0xbffff8c8, mconfig=0x0, args=0xbfffd86d "") at http_config.c:799
#4 0x8099fcb in ap_handle_command (parms=0xbffff8c8, config=0x8153904, l=0xbfffd858 "TransferLog /dev/null")
at http_config.c:994
#5 0x809a05c in ap_srm_command_loop (parms=0xbffff8c8, config=0x8153904) at http_config.c:1007
#6 0x809a44c in ap_process_resource_config (s=0x8152ba4, fname=0x8150250 "/usr/src/apache/modperl/t/conf/httpd.conf",
p=0x8152b7c, ptemp=0x8154b8c) at http_config.c:1187
#7 0x809ad0a in ap_read_config (p=0x8152b7c, ptemp=0x8154b8c,
confname=0x8150250 "/usr/src/apache/modperl/t/conf/httpd.conf") at http_config.c:1466
#8 0x80a477a in main (argc=6, argv=0xbffff984) at http_main.c:4575
[ask@embla modperl]$ perl -V
Summary of my perl5 (5.0 patchlevel 5 subversion 54) configuration:
Platform:
osname=linux, osvers=2.2.1, archname=i686-linux
uname='linux embla.valueclick.com 2.2.1 #2 smp sat feb 13 18:57:58 pst 1999 i686 unknown '
config_args='-DPERL_POLLUTE -des'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
use64bits=undef usemultiplicity=undef
Compiler:
cc='cc', optimize='-O2', gccversion=2.7.2.3
cppflags='-Dbool=char -DHAS_BOOL'
ccflags ='-Dbool=char -DHAS_BOOL'
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
libc=, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Built under linux
Compiled at Feb 14 1999 14:46:34
@INC:
/usr/lib/perl5/5.00554/i686-linux
/usr/lib/perl5/5.00554
/usr/lib/perl5/site_perl/5.00554/i686-linux
/usr/lib/perl5/site_perl/5.00554
.
- ask
--
ask bjoern hansen - <http://www.netcetera.dk/~ask/>