httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 16317] - 64 bits build on HP-UX logs all IP addresses as 0.0.0.0
Date Fri, 24 Jan 2003 12:01:41 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16317>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16317

64 bits build on HP-UX logs all IP addresses as 0.0.0.0





------- Additional Comments From trawick@apache.org  2003-01-24 12:01 -------
Something pretty close to this should work with gcc and gdb...

add --enable-maintainer-mode to configure options so that Apache and
APR are built for debug

run Apache like this:

gdb /path/to/httpd
(gdb) break apr_sockaddr_ip_get
(gdb) r -DONE_PROCESS

during Apache start up, keep doing "continue" command when you hit the breakpoing

now, send a request to Apache and you'll hit the breakpoint again

Breakpoint 1, apr_sockaddr_ip_get (addr=0x81c1d28, sockaddr=0x81c1c68) at
sockaddr.c:185
185         *addr = apr_palloc(sockaddr->pool, sockaddr->addr_str_len);
(gdb) p *sockaddr
$1 = {pool = 0x81c1bf8, hostname = 0x8107190 "0.0.0.0", servname = 0x0, port = 8080,
  family = 2, sa = {sin = {sin_family = 2, sin_port = 36895, sin_addr = {
        s_addr = 16777343}, sin_zero = "\000@]\000\000\000"}, sin6 =
{sin6_family = 2,
      sin6_port = 36895, sin6_flowinfo = 16777343, sin6_addr = {in6_u = {
          u6_addr8 = "\000@]", '\000' <repeats 11 times>, u6_addr16 = {16384,
52061, 0,
            0, 0, 0, 0, 0}, u6_addr32 = {3411886080, 0, 0, 0}}}}}, salen = 16,
  ipaddr_len = 4, addr_str_len = 16, ipaddr_ptr = 0x81c1c80, next = 0x0}

use the "next" command until after the call to apr_inet_ntop(), then
display the string built by apr_inet_ntop()

(gdb) n
186         apr_inet_ntop(sockaddr->family,
(gdb) n
191         if (sockaddr->family == AF_INET6 &&
(gdb) p *addr
$2 = 0x81c2040 "127.0.0.1"

Update the PR with the output of your debug session, making sure we
see gdb's display of *sockaddr and *addr.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message