httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roy T. Fielding" <field...@kiwi.ICS.UCI.EDU>
Subject Re: httpd -h causing segmentation fault
Date Tue, 01 Oct 1996 00:08:53 GMT
> 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?

I'll commit the bugfix first.

.....Roy



Mime
View raw message