You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Ben Laurie <be...@gonzo.ben.algroup.co.uk> on 1996/10/01 10:04:14 UTC
Re: httpd -h causing segmentation fault
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)