Re: signal 11 on AIX: 7.4.2 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: signal 11 on AIX: 7.4.2
Date
Msg-id 22416.1082073179@sss.pgh.pa.us
Whole thread Raw
In response to signal 11 on AIX: 7.4.2  (Andrew Sullivan <ajs@crankycanuck.ca>)
Responses Re: signal 11 on AIX: 7.4.2
List pgsql-hackers
Andrew Sullivan <ajs@crankycanuck.ca> writes:
> We've had a backend crash with sig 11 during connection.  My guess is
> there's something up with (maybe) the IPv6 support on AIX.

> (gdb) bt
> #0  0xd01d7778 in memmove () from /usr/lib/libc.a(shr.o)
> #1  0xd0326e1c in getaddrinfo2 () from /usr/lib/libc.a(shr.o)
> #2  0xd0327b6c in getaddrinfo () from /usr/lib/libc.a(shr.o)
> #3  0x1005860c in getaddrinfo_all (hostname=0x34e0 "", 
>     servname=0x74696f <Address 0x74696f out of bounds>, hintp=0xf03a2e80, 
>     result=0x74696f) at ip.c:78
> #4  0x101f9330 in parse_hba (line=0x202ae198, port=0x202a6988, 
>     found_p=0x2ff1f810 "", error_p=0x2ff1f811 "") at hba.c:669

Hm, a crash inside the system-supplied getaddrinfo routine would suggest
that there's something wrong with the values we are passing into it.
The most likely bet is that we don't agree with libc about the layout of
"struct addrinfo".  The configure script goes out of its way to be
paranoid about this, because we've seen it get confused by add-on
libbind installations (see also the head comment in
src/include/getaddrinfo.h) ... but I'll bet that AIX has found another
way to trip it up.

I can see from your trace that you are using the getaddrinfo code from
libc, but where is configure finding a header that declares struct
addrinfo?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Kevin Brown
Date:
Subject: Re: PostgreSQL configuration
Next
From: Tom Lane
Date:
Subject: Re: PostgreSQL configuration