httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Re: httpd -h causing segmentation fault
Date Tue, 01 Oct 1996 08:04:14 GMT
Roy T. Fielding wrote:
> 
> > Roy T. Fielding wrote:
> >> 
> >> For no particular reason, I tested this on my just-updated-from-CVS
> >> source, configured with SOLARIS2 and STATUS.
> >> 
> >>    % httpd -h
> >>    Segmentation fault (core dumped)
> >> 
> >> before opening any logfiles.
> > 
> > I'll betcha this is because I lazily didn't handle NULLs, try changing:
> > 
> > 	    printf("%s\t%s\t%s\t",pc->name,pc->errmsg,module_names[t-n-1]);
> > 
> > in http_main to:
> > 
> > 	    printf("%s\t%s\t%s\t",pc->name,pc->errmsg ? pc->errmsg : "",module_names[t-n-1]);
> 
> Yes, that fixes the problem.  However, the new output format looks like
> garbage.  Would you mind if I arranged the output so that it is on
> multiple lines, and thus readable?  Does anything depend on the current format?

The main reason for putting it all on one line was to make it easy to process
with other Unix tools. Perhaps we should have two output formats?

Cheers,

Ben.

> 
> I'll commit the bugfix first.
> 
> .....Roy
> 
> 

-- 
Ben Laurie                  Phone: +44 (181) 994 6435
Freelance Consultant and    Fax:   +44 (181) 994 6472
Technical Director          Email: ben@algroup.co.uk
A.L. Digital Ltd,           URL: http://www.algroup.co.uk
London, England.            Apache Group member (http://www.apache.org)

Mime
View raw message