You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Bob Lo <bo...@yahoo.com> on 2001/03/27 09:21:24 UTC
general/7469: httpd crash
>Number: 7469
>Category: general
>Synopsis: httpd crash
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Mon Mar 26 23:30:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: bob_lo_blo@yahoo.com
>Release: 1.3.19
>Organization:
apache
>Environment:
gcc
>Description:
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i586-pc-linux-gnu"...
(gdb) run
Starting program: /local/source/apache/apache_1.3.19/src/./httpd
Program received signal SIGSEGV, Segmentation fault.
0x8087843 in ap_get_local_host (a=0x80d3bec) at util.c:2051
2051 if (p->h_addr_list[0]) {
>How-To-Repeat:
This occured because I did not have my hostname configured properly in
DNS.
str[sizeof(str) - 1] = '\0';
if ((!(p = gethostbyname(str)))
|| (!(server_hostname = find_fqdn(a, p)))) {
/* Recovery - return the default servername by IP: */
if (p->h_addr_list[0]) {
You should do another check to make sure p is not null.
>Fix:
str[sizeof(str) - 1] = '\0';
if ((!(p = gethostbyname(str)))
|| (!(server_hostname = find_fqdn(a, p)))) {
/* Recovery - return the default servername by IP: */
if (p->h_addr_list[0]) {
You should do another check to make sure p is not null.
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]