Re: signal 11 on AIX: 7.4.2

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: signal 11 on AIX: 7.4.2
Дата
Msg-id 22416.1082073179@sss.pgh.pa.us
обсуждение исходный текст
Ответ на signal 11 on AIX: 7.4.2  (Andrew Sullivan <ajs@crankycanuck.ca>)
Ответы Re: signal 11 on AIX: 7.4.2  (Andrew Sullivan <ajs@crankycanuck.ca>)
Список 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 по дате отправления:

Предыдущее
От: Kevin Brown
Дата:
Сообщение: Re: PostgreSQL configuration
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PostgreSQL configuration