apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bennett, Tony - CNF" <Bennett.T...@cnf.com>
Subject apr_sockaddr_info_get() produces syslog messages on AIX
Date Wed, 29 Sep 2004 21:55:40 GMT
Note: I posted a similar question on comp.unix.aix

Platform: Aix 5.1

We are using Apache 2.0.42.  We have written a module
which calls apr_sockaddr_info_get() which, in turn, 
performs a getaddrinfo() call.

Every call by Apache to getaddrinfo() generates the following 
syslog message:
    "The user option is different from the address family passed into
the API."

Here are the arguments passed by apr_sockaddr_info_get() to
  hostname:   "my.fullyqualified.host.com"
  servername: NULL
     ai_flags     = 0
     ai_family    = 0  (AF_UNSPEC)
     ai_socktype  = 1  (SOCK_STREAM)
     ai_protocol  = 0
     ai_addrlen   = 0
     ai_canonname = NULL 
     ai_addr =      NULL
     ai_next =      NULL 
  res:         &my_res (address of a "struct addrinfo *my_res)"

In case anyone needs a backtrace:
   (dbx) where
   syslog(0x4, 0xf005c0d8, 0x18, 0x2020695c, 0x0, 0x10000001,
       at 0xd02575fc
   ho_byname2(??, ??, ??) at 0xd02949a4
   gethostbyname2(??, ??) at 0xd025ca00
   getaddrinfo2(??, ??, ??, ??) at 0xd0324f9c
   getaddrinfo(??, ??, ??, ??) at 0xd0325f38
   call_resolver(0x2ff11ee0, 0x20214318, 0x0, 0x2b6c2b6c, 0x0,
       line 336 in "sockaddr.c"
   find_addresses(0x2ff11ee0, 0x20214318, 0x0, 0x2b6c2b6c, 0x0,
       line 430 in "sockaddr.c"
   apr_sockaddr_info_get(0x2ff11ee0, 0x20214318, 0x0, 0x2b6c2b6c, 0x0,
       0x202142e0), line 567 in "sockaddr.c"

My questions are:
    - Why is this happening...?
    - What can I do to stop it..?


View raw message