You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Ke...@wdr.com on 2000/03/01 19:13:04 UTC

Bug report re httpd -S

Hi

When I run httpd -S against any configuration file containing a 
VirtualHost directive within a Perl Section, libhttpd.ep receives 
SIGSEGV and dumps core.  (This happens whether I use full Perl syntax 
or $PerlConfig.)  The stack trace from the core file is :

(dbx) where                                                           
       
  [1] strlen(0x0, 0x0, 0xef720c78, 0x7efefeff, 0x81010100, 0xff0000), 
at 0xef4a4614
  [2] _doprnt(0xef720c7c, 0x0, 0x0, 0x0, 0xefffb62b, 0xefff963b), at 
0xef4da504
  [3] _fprintf(0xef526c18, 0xef720c70, 0xef52a76c, 0x23d80, 0x0, 
0x0), at 0xef4e356c
=>[4] ap_sub_req_method_uri(method = 0xef526c18 "", new_file = 
0x23880 "", r = 0x23b78), line 750 in "http_request.c"
  [5] 0xef6c6c30(0x22df8, 0x22e20, 0x22df8, 0x26e28, 0x0, 0x0), at 
0xef6c6c2f
  [6] invoke_cmd(cmd = 0x22df8, parms = 0x26e28, mconfig = 
0xef7349f0, args = 0xef7eddfc ""), line 867 in "http_config.c"
  [7] show_compile_settings(), line 3737 in "http_main.c"
  [8] 0x10ab4(0x4, 0xefffbcac, 0xefffbcc0, 0x20c00, 0x0, 0x0), at 
0x10ab3



The details of my configuration are as follows:

Apache configuration file
=========================
LoadModule	perl_module libexec/libperl_500503.so
ClearModuleList
AddModule	mod_so.c
AddModule	mod_perl.c

ErrorLog	/work/apache/apache_error.log
Group		nobody
LockFile	/work/apache/accept.lock
PidFile	/work/apache/httpd.pid
ServerName	ln16p1166swk
User		nobody

<Perl>
$VirtualHost{'172.16.125.46'} = { ServerName => 'ln16p1166swk' };
</Perl>



httpd -v
========
Server version: Apache/1.3.11 (Unix)
Server built:   Jan 24 2000 15:49:44



perl -v
=======
This is perl, version 5.005_03 built for sun4-solaris

Copyright 1987-1999, Larry Wall

Perl may be copied only under the terms of either the Artistic 
License or the
GNU General Public License, which may be found in the Perl 5.0 source 
kit.

Complete documentation for Perl, including FAQ lists, should be found 
on
this system using `man perl' or `perldoc perl'.  If you have access 
to the
Internet, point your browser at http://www.perl.com/, the Perl Home 
Page.



perl -V
=======
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
    osname=solaris, osvers=2.6, archname=sun4-solaris
    uname='sunos ln13d66cmp 5.6 generic sun4u sparc 
sunw,ultra-enterprise '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags=''
    ccflags =''
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, 
longdblsize=16
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =''
    libpth=/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-KPIC', lddlflags='-G'


Characteristics of this binary (from libperl): 
  Built under solaris
  Compiled at Jul  2 1999 13:09:53
  %ENV:
    
PERLLIB="/home/ruscoekm/wa_tree/lib:/home/ruscoekm/atlas_tree/lib:/hom
e/ruscoekm/phoenix_tree/lib:/home/ruscoekm/wire_tree/lib:/home/ruscoek
m/3ps/perl_modules/install/lib/site_perl:/home/ruscoekm/3ps/perl_modul
es/install/lib/site_perl/sun4-solaris"
  @INC:
    /home/ruscoekm/wa_tree/lib
    /home/ruscoekm/atlas_tree/lib
    /home/ruscoekm/phoenix_tree/lib
    /home/ruscoekm/wire_tree/lib
    /home/ruscoekm/3ps/perl_modules/install/lib/site_perl
    /home/ruscoekm/3ps/perl_modules/install/lib/site_perl/sun4-solaris
    /sbcimp/run/pd/perl/5.005_03/lib/sun4-solaris
    /sbcimp/run/pd/perl/5.005_03/lib
    /sbcimp/run/pd/perl/5.005_03/lib/site_perl/sun4-solaris
    /sbcimp/run/pd/perl/5.005_03/lib/site_perl
    .



Other Versions
==============
modperl	v1.21
OS		Solaris 2.6



Cheers

Kevin


This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


Re: Bug report re httpd -S

Posted by Doug MacEachern <do...@pobox.com>.
On Wed, 1 Mar 2000 Kevin.Ruscoe@wdr.com wrote:

> Hi
> 
> When I run httpd -S against any configuration file containing a 
> VirtualHost directive within a Perl Section, libhttpd.ep receives 
> SIGSEGV and dumps core.  (This happens whether I use full Perl syntax 
> or $PerlConfig.)  The stack trace from the core file is :
> 
> (dbx) where                                                           
>        
>   [1] strlen(0x0, 0x0, 0xef720c78, 0x7efefeff, 0x81010100, 0xff0000), 
> at 0xef4a4614
>   [2] _doprnt(0xef720c7c, 0x0, 0x0, 0x0, 0xefffb62b, 0xefff963b), at 
> 0xef4da504
>   [3] _fprintf(0xef526c18, 0xef720c70, 0xef52a76c, 0x23d80, 0x0, 
> 0x0), at 0xef4e356c
> =>[4] ap_sub_req_method_uri(method = 0xef526c18 "", new_file = 
> 0x23880 "", r = 0x23b78), line 750 in "http_request.c"
>   [5] 0xef6c6c30(0x22df8, 0x22e20, 0x22df8, 0x26e28, 0x0, 0x0), at 
> 0xef6c6c2f
>   [6] invoke_cmd(cmd = 0x22df8, parms = 0x26e28, mconfig = 
> 0xef7349f0, args = 0xef7eddfc ""), line 867 in "http_config.c"
>   [7] show_compile_settings(), line 3737 in "http_main.c"
>   [8] 0x10ab4(0x4, 0xefffbcac, 0xefffbcc0, 0x20c00, 0x0, 0x0), at 
> 0x10ab3

hmm, -S shouldn't produce that stack, show_compile_settings() is only
called with -V
 
> 
> 
> The details of my configuration are as follows:
> 
> Apache configuration file
> =========================
> LoadModule	perl_module libexec/libperl_500503.so

maybe that's the problem, have you tried with a static mod_perl?
 
> <Perl>
> $VirtualHost{'172.16.125.46'} = { ServerName => 'ln16p1166swk' };
> </Perl>

I dropped this in mod_perl-1.21_01-dev/t/conf/httpd.conf
and ran with no problem:

% ../apache-1.3/src/httpd -d `pwd`/t -f `pwd`/t/conf/httpd.conf -S
VirtualHost configuration:
172.16.125.46:8529     ln16p1166swk ((null):0)